-
-
Notifications
You must be signed in to change notification settings - Fork 475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MacOS Agents Failing Tasks They Don't Have #2160
Comments
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? |
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 |
@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" ============================================================================== |
Server Info (please complete the following information):
Installation Method:
--insecure
flag at installAgent Info (please complete the following information):
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:
Failed Alert Image
Agent Task Tab
Additional Info:
The automation policy is enforced at the client level for all workstations.
The text was updated successfully, but these errors were encountered: