Code Monkey home page Code Monkey logo

Comments (5)

ryanblenis avatar ryanblenis commented on May 30, 2024

Hi @hchkim,

I'm having trouble replicating the exact issue, but while testing it does look like a prior pull request to MeshCentral caused an issue with newly installed or removed plugins. I've submitted a PR for that here.

Your particular error makes me believe the database was not loaded.

  1. Does the issue persist if you restart your MeshCentral server?
  2. If 1 does not solve the issue, can you confirm that the db.js file exists in your /meshcentral-data/plugins/filedist/ folder?

Thank you.

from meshcentral-filedistribution.

hchkim avatar hchkim commented on May 30, 2024

Thank you for reply. I found a solution.
I just commented "require ('promise')" in the /meshcentral-data/plugins/filedist/db.js file. I guess it caused by nodejs version difference.

from meshcentral-filedistribution.

ryanblenis avatar ryanblenis commented on May 30, 2024

Thanks for the info. If you don't mind, what is your Node version so I can test / update the code accordingly? Thank you.

from meshcentral-filedistribution.

hchkim avatar hchkim commented on May 30, 2024

OK. Thank you.
It runs on Ubuntu 16.04.6 LTS

$ node -v
v10.16.3

from meshcentral-filedistribution.

cfoellmann avatar cfoellmann commented on May 30, 2024

I got the "same" error. I use the docker deployment for meshcentral with the official container image.

In my case the error is only in the mesherrors.txt and the plugin tab only shows Internal Server Error.

-------- 5/10/2023, 8:24:56 AM ---- 1.1.4 --------

TypeError: Cannot read properties of null (reading 'getFileMapsForNode')
    at obj.handleAdminReq (/opt/meshcentral/meshcentral-data/plugins/filedist/filedist.js:147:20)
    at obj.handleAdminReq (/opt/meshcentral/meshcentral/pluginHandler.js:521:40)
    at obj.handlePluginAdminReq (/opt/meshcentral/meshcentral/webserver.js:5971:34)
    at Layer.handle [as handle_request] (/opt/meshcentral/meshcentral/node_modules/express/lib/router/layer.js:95:5)
    at next (/opt/meshcentral/meshcentral/node_modules/express/lib/router/route.js:144:13)
    at Route.dispatch (/opt/meshcentral/meshcentral/node_modules/express/lib/router/route.js:114:3)
    at Layer.handle [as handle_request] (/opt/meshcentral/meshcentral/node_modules/express/lib/router/layer.js:95:5)
    at /opt/meshcentral/meshcentral/node_modules/express/lib/router/index.js:284:15
    at Function.process_params (/opt/meshcentral/meshcentral/node_modules/express/lib/router/index.js:346:12)
    at next (/opt/meshcentral/meshcentral/node_modules/express/lib/router/index.js:280:10)

there in no promise requirement to comment out anymore. Since I have no skills when it comes to JS I am not seeing the underlying issue here

from meshcentral-filedistribution.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.