Replies: 3 comments 3 replies
-
Ping. Please help with this. I have been stuck with this issue for a very long time now. |
Beta Was this translation helpful? Give feedback.
-
Sorry for the long delay, but I am limited on when I can bring this server down to do this type of work. But here are the results of what you asked me to try. When running the uninstall command for node, I get this error:
Also, before attempting the config.json changes I wanted to ask for more info. Specifically why if this is incorrect did my mesh install function normally before the upgrade that seemed to break its ability to run as a service, and why is it running fine now when started manually if these are incorrect? I'm not trying to be argumentative, but I'm reluctant to change something that seems to be working, at least until I've resolved the service issue. I don't want to introduce changes that werent there before it stopped working. |
Beta Was this translation helpful? Give feedback.
-
Well, oddly enough both the service uninstall and reinstall worked on a later try. I tried the uninstall multiple times and it failed every time, but then I started gathering information to make the post above this one reporting the failure. After I made that post, I started the server the manual way, then shut it back down again, and then just as one last chance I tried the uninstall command again and it worked this time. I didnt even retype it, I used the up arrow and command history, so I know previous attempts were not a typo... and this time it worked. Then I did the install again and it worked also and the service started properly after that !!!!! YAY!!!! Thanks for the help! |
Beta Was this translation helpful? Give feedback.
-
I'm having an issue that started like 6 releases back where my meshcentral crashes if it is started as a service. I kept hoping that it was a problem that would resolve in a couple of releases but it has not. This is a 100% local installation with the default local database. Originally when it stopped loading, I found that some threshold for java memory had been crossed and I edited meshcentral.service config to include --max-old-space-size=4096 since this finally got mesh to start when starting it manually from the command line. Before adding that to the command line, it would not even start from manual CLI once it started failing. But even after updating the meshcentral.service, mesh no longer starts as a service for me. Above question was posted on reddit, and I was asked to repost here with additional information:
Server specs = Ubuntu 22.04 running in a VM assigned 4 cores and 8GB of RAM and 40GB of disk space (vm is dedicated to mesh)
Command that works when starting manually. This is also the same command in the meshcentral.service file, but when starting manually I start a screen session and the sudo the following command:
node --max-old-space-size=4096 /home/myuser/meshcentral/node_modules/meshcentral
meshcentral.service file:
Config.json:
Beta Was this translation helpful? Give feedback.
All reactions