Skip to content

"value is not defined" error when trying to install #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
tlcarpenter opened this issue Nov 30, 2020 · 2 comments
Open

"value is not defined" error when trying to install #13

tlcarpenter opened this issue Nov 30, 2020 · 2 comments

Comments

@tlcarpenter
Copy link

tlcarpenter commented Nov 30, 2020

I was interested in testing this plugin. I'm running MC2 0.7.8 on Windows 10 Enterprise x64. I've tried logging in to MC2 as the primary server "admin" user (my MC2 server is configured with additional domains besides the default), opening "My Server | Plugiins | Download Plugin" and entering the URL

https://raw.githubusercontent.com/ryanblenis/MeshCentral-RoutePlus/master/config.json

but an error is returned

"Plugin Error - value is not defined"

p.s. maybe I should have read #11 first - wondering now if my multi-domain configuration is an issue. Also, noted this in the code for an earlier version of routeplus.js

var db = require('SimpleDataStore').Shared();

I use MariaDB instead of the default; is routeplus compatible with MC2 using MariaDB?

@ryanblenis
Copy link
Owner

Hi @tlcarpenter ,

All of my plugins are currently only available with MongoDB and NeDB. I wrote a bridge to make the two's calls synonymous to make coding for them easier. Since NeDB handles up to 1K devices and Mongo is good for potentially hundreds of thousands, I have yet to update them since MC's introduction of Mysql/MariaDB, sorry!

This is likely the error you're experiencing (the plugin doesn't know where to look for its data due to a different DB type it isn't prepared for)

@tlcarpenter
Copy link
Author

tlcarpenter commented Dec 1, 2020

Just reinstalled MC2 and set it up to use NeDB and installed your plugin. Looks very promising; not sure what my issue was trying to use meshcmd but your plugin just worked. Much better solution for connecting to Macs than noVNC, IMO; don't have the dot cursor issues I did with noVNC, also don't need a VNC password (connecting to a Mac using Remmina). Hopefully support for MariaDB will come to be; would like to use MC2 more widely and think that would necessitate using something other than NeDB given the number of endpoints in our environment. If I understand the licensing issues, looks like at-rest encryption for MongoDB is a paid feature but you can get that for free in MariaDB; my university's budget is pretty tight at the moment, like most/all of them, so, I'm trying to use an opensource solution if possible. Thanks for your work on this plugin and MC2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants