ryanblenis / MeshCentral-FileDistribution

File Distribution plugin for MeshCentral
Apache License 2.0
21 stars 5 forks source link

Plugin Error #5

Open baclaeys opened 2 years ago

baclaeys commented 2 years ago

I am trying to install plugins for MeshCentral, but I keep getting the following error:

"Plugin Error: Error getting plugin config: connect ETIMEOUT 185.199.109.133:443"

That IP address resolves to github. I am behind a corporate proxy, but I do not have any problems regarding the proxy from the console of the server. For example, I am able to execute git clone commands without any issues.

If I enable the proxy in the MeshCentral config file, I get the following error:

"Plugin Error: Error getting plugin config: self signed certificate in certificate chain"

Has anyone seen this before? I am not sure what else I can try at this point. Maybe there is a method to manually install the plugins.

Thanks, Brian

ryanblenis commented 2 years ago

So you can git clone the repo from cli on the MC server via the https clone address (not ssh)?

baclaeys commented 2 years ago

You are correct.

ryanblenis commented 2 years ago

I know you said:

If I enable the proxy in the MeshCentral config file, I get the following error:

From looking at the https://github.com/Ylianst/MeshCentral/blob/master/sample-config-advanced.json , there are several locations for a proxy to be configured, and "plugins" does NOT have a proxy attribute listed in the sample (I don't know why it wouldn't just have one place, or use the system settings, but oh well), however, looking at MC's code at this line: https://github.com/Ylianst/MeshCentral/blob/3c03bd3b0785a925bc51ae5a82682d80431ab0e5/pluginHandler.js#L246 shows that plugins [can] have their own proxy set. Do you have a "proxy" in your config.json specifically under the plugins key with your proxy listed?

baclaeys commented 2 years ago

This is what I have in the config file to produce the error regarding the certificate. If I remove the proxy config I get the timeout error. "Plugins": { "enabled": true, "proxy":"http://*****:****/" }

baclaeys commented 2 years ago

Is there a way to install plugins from the cli?