ryanblenis / MeshCentral-ScriptTask

Scripting plugin for MeshCentral
Apache License 2.0
54 stars 14 forks source link

Cannot use script task #47

Open RSud-devops opened 8 months ago

RSud-devops commented 8 months ago

Hi, The meshcentral server is running in an orchestration environment with the meshcentral-data folder as persistent volume (1.1.20). The installation of the latest 'script task' module (0.0.19) seems to go well, but when I tried to use it, I had this problem from the mesh node client: _TypeError: Cannot read properties of null (reading 'getScriptTree') at obj.handleAdminReq (/opt/meshcentral/meshcentral-data/plugins/scripttask/scripttask.js:224:20) at obj.handleAdminReq (/opt/meshcentral/meshcentral/pluginHandler.js:521:40) at obj.handlePluginAdminReq (/opt/meshcentral/meshcentral/webserver.js:5993: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/nodemodules/express/lib/router/index.js:280:10) Did anyone get this issue before?

phirestalker commented 3 months ago

I am getting the same issue. I am running meshcentral in docker. I wonder if I am supposed to attach a volume somewhere that I am not?