https://github.com/Ylianst/MeshCentral/issues/4379

silversword411 committed Aug 9, 2022 at 22:48 UTC a3f1c0fa24d37f844e935c643521c000f298e87f
1 file changed +32
docs/docs/meshcentral/debugging.md
+32
@@ -21,6 +21,38 @@ Make sure you understand how MeshCentral works with your browser using chrome de
21 "AgentWsCompression": false,
22 ```
23
24 +### Unable to update server
25 +
26 +Generally the problem is that MeshCentral can't find the npm tool and so, can't run it to see if there is a new version. You can fix this by setting the path to npm in the config.json like this:
27 +
28 +```json
29 +{
30 + "settings": {
31 + "npmPath": "c:\\npm.exe",
32 + "npmProxy": "http://1.2.3.4:80"
33 + }
34 +}
35 +```
36 +
37 +The problem could also be that you need a proxy, the configuration line to that is above.
38 +
39 +You can also manually update. Just stop your server and so this:
40 +
41 +```bash
42 +mv node_modules node_modules_bak
43 +npm install meshcentral
44 +node node_modules/meshcentral
45 +```
46 +
47 +Then wait for all optional modules to install, then once the server starts hit ctrl-c and start up the server again. You can also use the following to help you start/stop the server:
48 +
49 +```bash
50 +node node_modules/meshcentral --install
51 +node node_modules/meshcentral --uninstall
52 +node node_modules/meshcentral --start
53 +node node_modules/meshcentral --stop
54 +```
55 +
56 ### Port Troubleshooting on server
57
58 If you're getting a `port 4433 is not available` error, this is because someone else is using this port, very likely another instance of MeshCentral. If your MeshCentral server is bound to ports 81/444 MeshCentral could not get port 80/443 and got the next available ones.