MeshCentral - Unable to update
-
Ubuntu 18.10 on vultr
Setup MeshCentral with mongodb using the the Increased Security Install on 4.8 of Users guide.
So far all is working fine except for updating.Following the instructions for updating manually is not working wondering if anyone else has run into this same issue.
mesh1:~$ sudo systemctl stop meshcentral.service mesh1:~$ cd /opt/meshcentral mesh1::/opt/meshcentral$ sudo npm install npm WARN saveError ENOENT: no such file or directory, open '/opt/meshcentral/pac kage.json' npm WARN enoent ENOENT: no such file or directory, open '/opt/meshcentral/packag e.json' npm WARN meshcentral No description npm WARN meshcentral No repository field. npm WARN meshcentral No README data npm WARN meshcentral No license field. up to date in 1.794s mesh1::/opt/meshcentral$ sudo chown -R meshcentral:meshcentral /opt/meshcentral mesh1:/opt/meshcentral$ sudo systemctl start meshcentral.service mesh1:/opt/meshcentral$
In MeshCentral, I check server version and this is what I get.
There is a /opt/meshcentral/package-lock.json and wondering if that is stopping the upgrade.
Any clues?
-
I kinda have a similar issue.
If I do the update via the GUI, it just never updates...it goes through the motions, disconnects. Next time you login the current version shows the same thing & never changes.If I update manually, via terminal, that works. But when I check the version (using the GUI) it says there's an update available?
-
How do I find the current version from the prompt?
-
@pmoncho said in MeshCentral - Unable to update:
How do I find the current version from the prompt?
Hmm, I completely forgot to try that & verify the running version!!
-
I've been looking through the Installers and User Guide's and poking around inside a few files to see if I can find the version. No luck yet.
-
Non-MongoDB install here. Update went smoothly.
-
@scottalanmiller said in MeshCentral - Unable to update:
Non-MongoDB install here. Update went smoothly.
Didn't mongoDB just change their license too, to something so practically insane that using MongoDB for even free and open source projects makes it worthless to consider?
-
@DustinB3403 said in MeshCentral - Unable to update:
@scottalanmiller said in MeshCentral - Unable to update:
Non-MongoDB install here. Update went smoothly.
Didn't mongoDB just change their license too, to something so practically insane that using MongoDB for even free and open source projects makes it worthless to consider?
Nope. They just made it only make sense for open source projects.
-
Thanks, I will keep digging.
-
Any guides for installing MeshCentral?
I looked under:
https://mangolassi.it/tags/meshcentralI didn't see anything.
-
@Curtis none written yet.
-
I was hoping I could (finally) contribute one but that is now shot to shit!
-
@pmoncho why is it shot?
-
Well, I cannot figure out how to update and I tried to get Let's Encrypt setup but that is blowing up with errors also.
May not be totally shot just delayed.
-
@pmoncho said in MeshCentral - Unable to update:
Well, I cannot figure out how to update and I tried to get Let's Encrypt setup but that is blowing up with errors also.
May not be totally shot just delayed.
What errors?
-
I would get the following after enabling the letsencrypt setting.
This is from syslog.Jan 4 16:12:42 host_mesh1 systemd[1]: Stopping MeshCentral Server... Jan 4 16:12:42 host_mesh1 systemd[1]: Stopped MeshCentral Server. Jan 4 16:12:49 host_mesh1 systemd[1]: Started MeshCentral Server. Jan 4 16:12:50 host_mesh1 node[10024]: Installing greenlock... Jan 4 16:12:51 host_mesh1 node[10024]: ERROR: Unable to install missing package 'greenlock', make sure npm is installed. Jan 4 16:13:02 host_mesh1 systemd[1]: meshcentral.service: Service RestartSec=1 0s expired, scheduling restart. Jan 4 16:13:02 host_mesh1 systemd[1]: meshcentral.service: Scheduled restart jo b, restart counter is at 1. Jan 4 16:13:02 host_mesh1 systemd[1]: Stopped MeshCentral Server.
I'm contemplating installing again without the increased security or MongoDB and go from there.
-
@pmoncho Oh, I saw this happen. I got around it by firing it off manually, it installed what was needed, then it could go back to running automatically.
-
Are you saying you just installed greenlock on its own or ran the letsencrypt part on its own?
-
@pmoncho said in MeshCentral - Unable to update:
Are you saying you just installed greenlock on its own or ran the letsencrypt part on its own?
Neither. I just ran MechCentral manually, rather than with the systemctl script. It takes care of everything on its own otherwise. You can see it install GreenLock when you do that.
-
I installed generic instance of MC without secure install and with NeDB.
It still doesn't update properly but running it manually like you did, it did install the greenlock and le-acme-core.