MeshCentral icon indicating copy to clipboard operation
MeshCentral copied to clipboard

MeshAgent uninstall does NOT uninstall

Open DaanSelen opened this issue 8 months ago • 5 comments

Key details:

Everything is updated to the lastest version, Debian Linux with GNOME, running a newer kernel. And MeshCentral 1.1.43.

When I send an uninstall command to the Linux machine, it does NOT uninstall, it instead just kills the service. I can simply do a service meshagent start and its back... no uninstalling happenend. The directory and everything is also still there.

I propose a chain of command that have to be send to the agent but with the killing in mind, so to disown the process.

DaanSelen avatar Apr 09 '25 13:04 DaanSelen

yep already aware of this i was moving my machines from one server to another over the weekend and every time i used the uninstall from the web ui, it stopped the service but never actually removed it i think it just needs to run the -fulluninstall command to fix the issue 👍

si458 avatar Apr 09 '25 13:04 si458

Have you thought about the fact that the MeshAgent process is running its own uninstall? Will it not kill its own uninstall once it kills everything?

xy problem I mean.

DaanSelen avatar Apr 09 '25 13:04 DaanSelen

i dont know ill have to look into it as the code for the uninstall is actually a JS module built into the agent so its the meshagent repo i need to look into

si458 avatar Apr 09 '25 14:04 si458

I think yes:

https://github.com/Ylianst/MeshAgent/blob/master/modules/agent-installer.js

DaanSelen avatar Apr 09 '25 14:04 DaanSelen

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jun 12 '25 07:06 github-actions[bot]

I think yes:

https://github.com/Ylianst/MeshAgent/blob/master/modules/agent-installer.js

Yep. All it does right now is a process.exit(); In case of my distro there's still the systemd service, which didn't get disabled. Hence after the next reboot the service is up again :)

uhofemeier avatar Sep 04 '25 01:09 uhofemeier