[GH-ISSUE #1234] Linux agents not updating automatically #760

Closed
opened 2026-03-02 02:18:49 +03:00 by kerem · 11 comments
Owner

Originally created by @LPJon on GitHub (Aug 2, 2022).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/1234

Server Info (please complete the following information):

  • OS: Debian 10
  • Browser: Firefox 103.0 x64
  • RMM Version (as shown in top left of web UI): 0.14.5

Installation Method:

  • Standard <-----This one
  • Docker

Agent Info (please complete the following information):

  • Agent version (as shown in the 'Summary' tab of the agent from web UI): 2.2.1
  • Agent OS: XCP-ng (XenServer 8.2 CentOS 8 Based), FreePBX (CentOS 7 Based)
    Describe the bug
    Quite Simply I have now gone through two updates of the TacticalRMM server and no linux agents are automatically updating

To Reproduce
Steps to reproduce the behavior:

  1. Have a running instance of TacticalRMM
  2. Run a server update with provided "Update.sh" file from the DOCs
  3. No linux agents update. They simply say "Pending Agent Action" in the web-ui but never actually update

Expected behavior
They update just as the windows agent do and are automatically installed upon connection to TacticalRMM

Screenshots
If applicable, add screenshots to help explain your problem.
N/A

Additional context
Add any other context about the problem here.

Originally created by @LPJon on GitHub (Aug 2, 2022). Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/1234 **Server Info (please complete the following information):** - OS: Debian 10 - Browser: Firefox 103.0 x64 - RMM Version (as shown in top left of web UI): 0.14.5 **Installation Method:** - [ ] Standard <-----This one - [ ] Docker **Agent Info (please complete the following information):** - Agent version (as shown in the 'Summary' tab of the agent from web UI): 2.2.1 - Agent OS: XCP-ng (XenServer 8.2 CentOS 8 Based), FreePBX (CentOS 7 Based) **Describe the bug** Quite Simply I have now gone through two updates of the TacticalRMM server and no linux agents are automatically updating **To Reproduce** Steps to reproduce the behavior: 1. Have a running instance of TacticalRMM 2. Run a server update with provided "Update.sh" file from the DOCs 3. No linux agents update. They simply say "Pending Agent Action" in the web-ui but never actually update **Expected behavior** They update just as the windows agent do and are automatically installed upon connection to TacticalRMM **Screenshots** If applicable, add screenshots to help explain your problem. N/A **Additional context** Add any other context about the problem here.
kerem closed this issue 2026-03-02 02:18:49 +03:00
Author
Owner

@silversword411 commented on GitHub (Aug 2, 2022):

Are you code signed?

Because if you're not, that is absolutely correct...linux agents will not automatically update.

<!-- gh-comment-id:1202019260 --> @silversword411 commented on GitHub (Aug 2, 2022): Are you code signed? Because if you're not, that is absolutely correct...linux agents will not automatically update.
Author
Owner

@wh1te909 commented on GitHub (Aug 2, 2022):

@silversword411 he is code signed. @LPJon any errors in /var/log/tacticalagent.log

<!-- gh-comment-id:1202050951 --> @wh1te909 commented on GitHub (Aug 2, 2022): @silversword411 he is code signed. @LPJon any errors in `/var/log/tacticalagent.log`
Author
Owner

@LPJon commented on GitHub (Aug 2, 2022):

This is all that is in the log of the XCP-ng (CentOS 8 Based) agent:

time="2022-07-23T14:03:34-05:00" level=info msg="Agent service started"
time="2022-07-23T14:40:34-05:00" level=info msg="Agent service started"
time="2022-07-27T14:41:34-05:00" level=info msg="Agent service started"
time="2022-07-27T15:01:14-05:00" level=info msg="Agent service started"
time="2022-08-01T21:35:03-05:00" level=info msg="Agent service started"
time="2022-08-01T21:42:35-05:00" level=info msg="Agent service started"

This is from a FreePBX (CentOS7 Based) agent:

time="2022-07-23T14:09:54-05:00" level=info msg="Agent service started"
time="2022-07-23T14:15:46-05:00" level=info msg="Agent service started"
time="2022-07-23T14:22:57-05:00" level=info msg="Agent service started"
time="2022-07-23T14:28:55-05:00" level=info msg="Agent service started"
time="2022-07-23T14:44:25-05:00" level=info msg="Agent service started"
time="2022-07-27T14:45:13-05:00" level=info msg="Agent service started"
time="2022-07-27T15:03:54-05:00" level=info msg="Agent service started"
time="2022-08-01T21:38:42-05:00" level=info msg="Agent service started"
time="2022-08-01T21:53:43-05:00" level=info msg="Agent service started"
<!-- gh-comment-id:1202062501 --> @LPJon commented on GitHub (Aug 2, 2022): This is all that is in the log of the XCP-ng (CentOS 8 Based) agent: ``` time="2022-07-23T14:03:34-05:00" level=info msg="Agent service started" time="2022-07-23T14:40:34-05:00" level=info msg="Agent service started" time="2022-07-27T14:41:34-05:00" level=info msg="Agent service started" time="2022-07-27T15:01:14-05:00" level=info msg="Agent service started" time="2022-08-01T21:35:03-05:00" level=info msg="Agent service started" time="2022-08-01T21:42:35-05:00" level=info msg="Agent service started" ``` This is from a FreePBX (CentOS7 Based) agent: ``` time="2022-07-23T14:09:54-05:00" level=info msg="Agent service started" time="2022-07-23T14:15:46-05:00" level=info msg="Agent service started" time="2022-07-23T14:22:57-05:00" level=info msg="Agent service started" time="2022-07-23T14:28:55-05:00" level=info msg="Agent service started" time="2022-07-23T14:44:25-05:00" level=info msg="Agent service started" time="2022-07-27T14:45:13-05:00" level=info msg="Agent service started" time="2022-07-27T15:03:54-05:00" level=info msg="Agent service started" time="2022-08-01T21:38:42-05:00" level=info msg="Agent service started" time="2022-08-01T21:53:43-05:00" level=info msg="Agent service started" ```
Author
Owner

@wh1te909 commented on GitHub (Aug 2, 2022):

As the root user, please edit /etc/systemd/system/tacticalagent.service and find the line that looks like this

ExecStart=/usr/local/bin/tacticalagent -m svc

and change it to this

ExecStart=/usr/local/bin/tacticalagent -m svc -log debug

then

systemctl daemon-reload
systemctl restart tacticalagent.service

Then in the web UI please try triggering a manual agent update cycle from Agents > Update Agents and tail the same log file to see if any errors there and if so please post them (make sure to redact tokens/domains etc)

<!-- gh-comment-id:1202076182 --> @wh1te909 commented on GitHub (Aug 2, 2022): As the root user, please edit `/etc/systemd/system/tacticalagent.service` and find the line that looks like this ``` ExecStart=/usr/local/bin/tacticalagent -m svc ``` and change it to this ``` ExecStart=/usr/local/bin/tacticalagent -m svc -log debug ``` then ``` systemctl daemon-reload systemctl restart tacticalagent.service ``` Then in the web UI please try triggering a manual agent update cycle from Agents > Update Agents and tail the same log file to see if any errors there and if so please post them (make sure to redact tokens/domains etc)
Author
Owner

@LPJon commented on GitHub (Aug 2, 2022):

I'm not seeing any thing that looks like an error but here is the log anyway:

time="2022-07-23T14:03:34-05:00" level=info msg="Agent service started"
time="2022-07-23T14:40:34-05:00" level=info msg="Agent service started"
time="2022-07-27T14:41:34-05:00" level=info msg="Agent service started"
time="2022-07-27T15:01:14-05:00" level=info msg="Agent service started"
time="2022-08-01T21:35:03-05:00" level=info msg="Agent service started"
time="2022-08-01T21:42:35-05:00" level=info msg="Agent service started"
time="2022-08-02T01:50:15-05:00" level=debug msg="{<> Arch: AgentID:<>BaseURL:https://<> ApiURL:<> Token:<> AgentPK:4 Cert: ProgramDir:<>SystemDrive: MeshInstaller:meshagent.exe MeshSystemEXE:<> MeshSVC:mesh agent PyBin:TacticalAgent/py38-x64/python.exe Headers:map[Authorization:Token <> Content-Type:application/json] Logger:0xc0000ba080 Version:2.2.1 Debug:true rClient:0xc0002821e0 Proxy: LogTo: LogFile:<nil> Platform:linux GoArch:amd64 ServiceConfig:<> NatsServer:wss://<>:443 NatsProxyPath:natsws NatsProxyPort:443}\n"
time="2022-08-02T01:50:15-05:00" level=info msg="Agent service started"
time="2022-08-02T01:50:15-05:00" level=debug msg="CheckRunner() init sleeping for 17 seconds"
time="2022-08-02T01:50:15-05:00" level=debug msg="AgentSvc() sleeping for 19 seconds"
time="2022-08-02T01:50:32-05:00" level=debug msg="Checkrunner sleeping for 120"
time="2022-08-02T01:50:34-05:00" level=debug msg="agent-hello {<> 2.2.1}"
time="2022-08-02T01:50:34-05:00" level=debug msg="No core libraries or services have been updated."
time="2022-08-02T01:50:34-05:00" level=debug msg="Reboot is probably not necessary."
time="2022-08-02T01:50:34-05:00" level=debug msg="{Status:{Cmd:/bin/bash PID:4933 Complete:true Exit:0 Error:<nil> StartTs:<> StopTs:<> Runtime:<> Stdout:[] Stderr:[]} Stdout:No core libraries or services have been updated.\nReboot is probably not necessary.\n Stderr:}\n"
time="2022-08-02T01:50:34-05:00" level=debug msg="agent-agentinfo {<> root <> Xcp-Ng 8.2.1 x86_64 4.19.0+1 linux 3 1659407698 false amd64}"
time="2022-08-02T01:50:34-05:00" level=debug msg="agent-disks {<> [{/dev/sdb1 ext3 17.6 GB 5.2 GB 11.5 GB 31} {/dev/sdb5 ext3 3.8 GB 70.8 MB 3.5 GB 1} {/dev/mapper/XSLocalEXT<> ext4 219.9 GB 60.0 MB 208.7 GB 0}]}"
time="2022-08-02T01:50:35-05:00" level=debug msg="agent-winsvc {<> []}"
time="2022-08-02T01:50:35-05:00" level=debug msg="PublicIP start"
time="2022-08-02T01:50:35-05:00" level=debug msg="PublicIP not valid "
time="2022-08-02T01:50:35-05:00" level=debug msg="PublicIP return:  <>"
time="2022-08-02T01:50:35-05:00" level=debug msg="agent-publicip {<> <>}"
time="2022-08-02T01:50:36-05:00" level=debug msg="agent-wmi {<> map[cpus:[Intel(R) Core(TM) i3-7100U CPU @ 2.40GHz] disks:[Unknown SSD dm-0 223.6 GB Unknown SSD dm-1 4.0 MB Unknown SSD dm-2 120.2 GB Unknown SSD dm-3 501.0 GB ATA DOGFISH_SSD_240GB SCSI SSD sda 223.6 GB ATA CT1000MX500SSD1 SCSI SSD sdb 931.5 GB Micron Crucial_X6_SSD SCSI HDD sdc 931.5 GB Unknown Unknown tda 120.0 GB Unknown Unknown tdb 500.0 GB] gpus:[] local_ips:[<> <> <> <> <> <>] make_model:Default string Default string]}"
time="2022-08-02T01:50:36-05:00" level=debug msg="Getting mesh node id"
time="2022-08-02T01:50:36-05:00" level=debug msg=<>
time="2022-08-02T01:50:36-05:00" level=debug msg="{Status:{Cmd:<> PID:4948 Complete:true Exit:0 Error:<nil> StartTs:<> StopTs:<> Runtime:0.101911592 Stdout:[] Stderr:[]} Stdout:<>6\n Stderr:}\n"
time="2022-08-02T01:50:36-05:00" level=debug msg="Stdout: <>\n"
time="2022-08-02T01:50:36-05:00" level=debug msg="Stderr: "
time="2022-08-02T01:50:38-05:00" level=debug msg="Checking for windows updates"
time="2022-08-02T01:51:23-05:00" level=debug msg="agent-hello {<> 2.2.1}"
time="2022-08-02T01:52:08-05:00" level=debug msg="agent-hello {<> 2.2.1}"
time="2022-08-02T01:52:32-05:00" level=debug msg="Checkrunner sleeping for 120"
<!-- gh-comment-id:1202098894 --> @LPJon commented on GitHub (Aug 2, 2022): I'm not seeing any thing that looks like an error but here is the log anyway: ``` time="2022-07-23T14:03:34-05:00" level=info msg="Agent service started" time="2022-07-23T14:40:34-05:00" level=info msg="Agent service started" time="2022-07-27T14:41:34-05:00" level=info msg="Agent service started" time="2022-07-27T15:01:14-05:00" level=info msg="Agent service started" time="2022-08-01T21:35:03-05:00" level=info msg="Agent service started" time="2022-08-01T21:42:35-05:00" level=info msg="Agent service started" time="2022-08-02T01:50:15-05:00" level=debug msg="{<> Arch: AgentID:<>BaseURL:https://<> ApiURL:<> Token:<> AgentPK:4 Cert: ProgramDir:<>SystemDrive: MeshInstaller:meshagent.exe MeshSystemEXE:<> MeshSVC:mesh agent PyBin:TacticalAgent/py38-x64/python.exe Headers:map[Authorization:Token <> Content-Type:application/json] Logger:0xc0000ba080 Version:2.2.1 Debug:true rClient:0xc0002821e0 Proxy: LogTo: LogFile:<nil> Platform:linux GoArch:amd64 ServiceConfig:<> NatsServer:wss://<>:443 NatsProxyPath:natsws NatsProxyPort:443}\n" time="2022-08-02T01:50:15-05:00" level=info msg="Agent service started" time="2022-08-02T01:50:15-05:00" level=debug msg="CheckRunner() init sleeping for 17 seconds" time="2022-08-02T01:50:15-05:00" level=debug msg="AgentSvc() sleeping for 19 seconds" time="2022-08-02T01:50:32-05:00" level=debug msg="Checkrunner sleeping for 120" time="2022-08-02T01:50:34-05:00" level=debug msg="agent-hello {<> 2.2.1}" time="2022-08-02T01:50:34-05:00" level=debug msg="No core libraries or services have been updated." time="2022-08-02T01:50:34-05:00" level=debug msg="Reboot is probably not necessary." time="2022-08-02T01:50:34-05:00" level=debug msg="{Status:{Cmd:/bin/bash PID:4933 Complete:true Exit:0 Error:<nil> StartTs:<> StopTs:<> Runtime:<> Stdout:[] Stderr:[]} Stdout:No core libraries or services have been updated.\nReboot is probably not necessary.\n Stderr:}\n" time="2022-08-02T01:50:34-05:00" level=debug msg="agent-agentinfo {<> root <> Xcp-Ng 8.2.1 x86_64 4.19.0+1 linux 3 1659407698 false amd64}" time="2022-08-02T01:50:34-05:00" level=debug msg="agent-disks {<> [{/dev/sdb1 ext3 17.6 GB 5.2 GB 11.5 GB 31} {/dev/sdb5 ext3 3.8 GB 70.8 MB 3.5 GB 1} {/dev/mapper/XSLocalEXT<> ext4 219.9 GB 60.0 MB 208.7 GB 0}]}" time="2022-08-02T01:50:35-05:00" level=debug msg="agent-winsvc {<> []}" time="2022-08-02T01:50:35-05:00" level=debug msg="PublicIP start" time="2022-08-02T01:50:35-05:00" level=debug msg="PublicIP not valid " time="2022-08-02T01:50:35-05:00" level=debug msg="PublicIP return: <>" time="2022-08-02T01:50:35-05:00" level=debug msg="agent-publicip {<> <>}" time="2022-08-02T01:50:36-05:00" level=debug msg="agent-wmi {<> map[cpus:[Intel(R) Core(TM) i3-7100U CPU @ 2.40GHz] disks:[Unknown SSD dm-0 223.6 GB Unknown SSD dm-1 4.0 MB Unknown SSD dm-2 120.2 GB Unknown SSD dm-3 501.0 GB ATA DOGFISH_SSD_240GB SCSI SSD sda 223.6 GB ATA CT1000MX500SSD1 SCSI SSD sdb 931.5 GB Micron Crucial_X6_SSD SCSI HDD sdc 931.5 GB Unknown Unknown tda 120.0 GB Unknown Unknown tdb 500.0 GB] gpus:[] local_ips:[<> <> <> <> <> <>] make_model:Default string Default string]}" time="2022-08-02T01:50:36-05:00" level=debug msg="Getting mesh node id" time="2022-08-02T01:50:36-05:00" level=debug msg=<> time="2022-08-02T01:50:36-05:00" level=debug msg="{Status:{Cmd:<> PID:4948 Complete:true Exit:0 Error:<nil> StartTs:<> StopTs:<> Runtime:0.101911592 Stdout:[] Stderr:[]} Stdout:<>6\n Stderr:}\n" time="2022-08-02T01:50:36-05:00" level=debug msg="Stdout: <>\n" time="2022-08-02T01:50:36-05:00" level=debug msg="Stderr: " time="2022-08-02T01:50:38-05:00" level=debug msg="Checking for windows updates" time="2022-08-02T01:51:23-05:00" level=debug msg="agent-hello {<> 2.2.1}" time="2022-08-02T01:52:08-05:00" level=debug msg="agent-hello {<> 2.2.1}" time="2022-08-02T01:52:32-05:00" level=debug msg="Checkrunner sleeping for 120" ```
Author
Owner

@wh1te909 commented on GitHub (Aug 2, 2022):

Just realized you're already on the latest agent version lol (2.2.1) even in your first post. So looks like it did work?

<!-- gh-comment-id:1202105234 --> @wh1te909 commented on GitHub (Aug 2, 2022): Just realized you're already on the latest agent version lol (2.2.1) even in your first post. So looks like it did work?
Author
Owner

@LPJon commented on GitHub (Aug 2, 2022):

I manually updated those agents by hand just a few hours ago. I don't have any agents that are the previous v2.1.2 now. I can try a downgrade test later and see what the results are but I'm in the states and right now it's 2:16am so I will give it a try later today if you like?

<!-- gh-comment-id:1202109485 --> @LPJon commented on GitHub (Aug 2, 2022): I manually updated those agents by hand just a few hours ago. I don't have any agents that are the previous v2.1.2 now. I can try a downgrade test later and see what the results are but I'm in the states and right now it's 2:16am so I will give it a try later today if you like?
Author
Owner

@wh1te909 commented on GitHub (Aug 2, 2022):

sounds good yea if you could manually downgrade on an agent with debug logging then let the rmm try to update it let's see what it logs

<!-- gh-comment-id:1202111392 --> @wh1te909 commented on GitHub (Aug 2, 2022): sounds good yea if you could manually downgrade on an agent with debug logging then let the rmm try to update it let's see what it logs
Author
Owner

@LPJon commented on GitHub (Aug 2, 2022):

Will do....I keep track of the linux agents just for this purpose. I also do the same with meshcentral agents. Just seems to make this process easier.

<!-- gh-comment-id:1202117002 --> @LPJon commented on GitHub (Aug 2, 2022): Will do....I keep track of the linux agents just for this purpose. I also do the same with meshcentral agents. Just seems to make this process easier.
Author
Owner

@LPJon commented on GitHub (Aug 2, 2022):

Okay now I am confused. It immediately updated without issues and the log looks just as before. I guess this isn't an issue.....maybe I installed the agent wrong the first time. When the agent is installed with the Script from TacticalRMM does it set any specific permissions on the binary file other than making it executable?

<!-- gh-comment-id:1202969093 --> @LPJon commented on GitHub (Aug 2, 2022): Okay now I am confused. It immediately updated without issues and the log looks just as before. I guess this isn't an issue.....maybe I installed the agent wrong the first time. When the agent is installed with the Script from TacticalRMM does it set any specific permissions on the binary file other than making it executable?
Author
Owner

@wh1te909 commented on GitHub (Aug 4, 2022):

nope no special perms. yea weird idk maybe there were network issues or something causing download to fail. i'll close this for now but if it happens again please re-open and provide the logs thanks.

<!-- gh-comment-id:1204612563 --> @wh1te909 commented on GitHub (Aug 4, 2022): nope no special perms. yea weird idk maybe there were network issues or something causing download to fail. i'll close this for now but if it happens again please re-open and provide the logs thanks.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tacticalrmm#760
No description provided.