[GH-ISSUE #2160] MacOS Agents Failing Tasks They Don't Have #3281

Open
opened 2026-03-14 07:02:12 +03:00 by kerem · 3 comments
Owner

Originally created by @conlan0 on GitHub (Mar 5, 2025).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/2160

Server Info (please complete the following information):

  • OS: Ubuntu 20.04
  • Browser: chrome
  • RMM Version (as shown in top left of web UI): v1.0.0

Installation Method:

  • Standard
  • Standard with --insecure flag at install
  • Docker

Agent Info (please complete the following information):

  • Agent version (as shown in the 'Summary' tab of the agent from web UI): Agent v2.9.0
  • Agent OS: Darwin 15.3.1 arm64 24.3.0

Describe the bug
Right after updating multiple (10+) macos agents were reporting alerts for failed tasks
while they show no tasks assigned

Screenshots

Automation Policy Settings:

Image

Image

Image

Image

Failed Alert Image

Image

Agent Task Tab

Image

Additional Info:

The automation policy is enforced at the client level for all workstations.

Originally created by @conlan0 on GitHub (Mar 5, 2025). Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/2160 **Server Info (please complete the following information):** - OS: Ubuntu 20.04 - Browser: chrome - RMM Version (as shown in top left of web UI): v1.0.0 **Installation Method:** - [x] Standard - [ ] Standard with `--insecure` flag at install - [ ] Docker **Agent Info (please complete the following information):** - Agent version (as shown in the 'Summary' tab of the agent from web UI): Agent v2.9.0 - Agent OS: Darwin 15.3.1 arm64 24.3.0 **Describe the bug** Right after updating multiple (10+) macos agents were reporting alerts for failed tasks while they show no tasks assigned **Screenshots** **Automation Policy Settings:** ![Image](https://github.com/user-attachments/assets/1350d1e7-2b2c-4ce2-bbf4-f82f6cd4ed8e) ![Image](https://github.com/user-attachments/assets/92644618-a179-40de-8012-c46c9e86e4b4) ![Image](https://github.com/user-attachments/assets/0efeb56c-c7f5-4b8c-afda-6a18fd4ce54d) ![Image](https://github.com/user-attachments/assets/5655ded1-2a16-4c86-9a22-a5771a19310a) **Failed Alert Image** ![Image](https://github.com/user-attachments/assets/dd004d67-e99f-4bdc-8538-a735934eeaba) **Agent Task Tab** ![Image](https://github.com/user-attachments/assets/48e8187f-09b4-4458-a7eb-6fb2cdfba6dc) **Additional Info:** The automation policy is enforced at the client level for all workstations.
Author
Owner

@wh1te909 commented on GitHub (Mar 5, 2025):

haven't been able to reproduce based on the screenshots provided, but might be because it was an existing task. can you try disabling the policy and then re-enabling it, so the tasks are recreated and then see if same problem?

<!-- gh-comment-id:2701995310 --> @wh1te909 commented on GitHub (Mar 5, 2025): haven't been able to reproduce based on the screenshots provided, but might be because it was an existing task. can you try disabling the policy and then re-enabling it, so the tasks are recreated and then see if same problem?
Author
Owner

@conlan0 commented on GitHub (Mar 5, 2025):

i have disabled the policy and confirmed there were no checks or tasks listed on the agent but when the policy was recreated and I ran the task from the automation manager the same error alert was created for the agents

<!-- gh-comment-id:2702044399 --> @conlan0 commented on GitHub (Mar 5, 2025): i have disabled the policy and confirmed there were no checks or tasks listed on the agent but when the policy was recreated and I ran the task from the automation manager the same error alert was created for the agents
Author
Owner

@conlan0 commented on GitHub (Mar 5, 2025):

@wh1te909 Here is the debug entry from the agent when i run the task from automation manager

============================================================================== 2025/03/05 16:21:35.761164 DEBUG RESTY ============================================================================== ~~~ REQUEST ~~~ GET /api/v3/19/REDACTED/taskrunner/ HTTP/1.1 HOST : api.REDACTED.com HEADERS: Accept: application/json Authorization: Token REDACTED Content-Type: application/json User-Agent: go-resty/2.13.1 (https://github.com/go-resty/resty) BODY : ***** NO CONTENT ***** ------------------------------------------------------------------------------ ~~~ RESPONSE ~~~ STATUS : 200 OK PROTO : HTTP/1.1 RECEIVED AT : 2025-03-05T16:21:35.761088-05:00 TIME DURATION: 27.968898ms HEADERS : Allow: GET, PATCH, HEAD, OPTIONS Content-Length: 161 Content-Type: application/json Date: Wed, 05 Mar 2025 21:21:35 GMT Server: nginx Vary: origin X-Content-Type-Options: nosniff BODY : { "id": 19, "continue_on_error": true, "enabled": true, "task_actions": [ { "type": "cmd", "command": "dism /online /cleanup-image /checkhealth", "shell": "cmd", "timeout": 30 } ] } ============================================================================== 2025/03/05 16:21:35.896811 DEBUG RESTY ============================================================================== ~~~ REQUEST ~~~ PATCH /api/v3/19/REDACTED/taskrunner/ HTTP/1.1 HOST : api.REDACTED.com HEADERS: Accept: application/json Authorization: Token REDACTED Content-Type: application/json User-Agent: go-resty/2.13.1 (https://github.com/go-resty/resty) BODY : { "stdout": "", "stderr": "", "retcode": -1, "execution_time": 0.000315133 } ------------------------------------------------------------------------------ ~~~ RESPONSE ~~~ STATUS : 200 OK PROTO : HTTP/1.1 RECEIVED AT : 2025-03-05T16:21:35.896726-05:00 TIME DURATION: 135.059012ms HEADERS : Allow: GET, PATCH, HEAD, OPTIONS Content-Length: 4 Content-Type: application/json Date: Wed, 05 Mar 2025 21:21:35 GMT Server: nginx Vary: origin X-Content-Type-Options: nosniff BODY : "ok" ==============================================================================

<!-- gh-comment-id:2702111529 --> @conlan0 commented on GitHub (Mar 5, 2025): @wh1te909 Here is the debug entry from the agent when i run the task from automation manager ============================================================================== 2025/03/05 16:21:35.761164 DEBUG RESTY ============================================================================== ~~~ REQUEST ~~~ GET /api/v3/19/REDACTED/taskrunner/ HTTP/1.1 HOST : api.REDACTED.com HEADERS: Accept: application/json Authorization: Token REDACTED Content-Type: application/json User-Agent: go-resty/2.13.1 (https://github.com/go-resty/resty) BODY : ***** NO CONTENT ***** ------------------------------------------------------------------------------ ~~~ RESPONSE ~~~ STATUS : 200 OK PROTO : HTTP/1.1 RECEIVED AT : 2025-03-05T16:21:35.761088-05:00 TIME DURATION: 27.968898ms HEADERS : Allow: GET, PATCH, HEAD, OPTIONS Content-Length: 161 Content-Type: application/json Date: Wed, 05 Mar 2025 21:21:35 GMT Server: nginx Vary: origin X-Content-Type-Options: nosniff BODY : { "id": 19, "continue_on_error": true, "enabled": true, "task_actions": [ { "type": "cmd", "command": "dism /online /cleanup-image /checkhealth", "shell": "cmd", "timeout": 30 } ] } ============================================================================== 2025/03/05 16:21:35.896811 DEBUG RESTY ============================================================================== ~~~ REQUEST ~~~ PATCH /api/v3/19/REDACTED/taskrunner/ HTTP/1.1 HOST : api.REDACTED.com HEADERS: Accept: application/json Authorization: Token REDACTED Content-Type: application/json User-Agent: go-resty/2.13.1 (https://github.com/go-resty/resty) BODY : { "stdout": "", "stderr": "", "retcode": -1, "execution_time": 0.000315133 } ------------------------------------------------------------------------------ ~~~ RESPONSE ~~~ STATUS : 200 OK PROTO : HTTP/1.1 RECEIVED AT : 2025-03-05T16:21:35.896726-05:00 TIME DURATION: 135.059012ms HEADERS : Allow: GET, PATCH, HEAD, OPTIONS Content-Length: 4 Content-Type: application/json Date: Wed, 05 Mar 2025 21:21:35 GMT Server: nginx Vary: origin X-Content-Type-Options: nosniff BODY : "ok" ==============================================================================
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#3281
No description provided.