Problem
Remote execution runs create a false positive error message HTTP 401 after the completion of a run when attempting to update the status endpoint. The task-worker.log shows the following error:
00:37:17.259440Z","id":"xxx","name":"agent-run","stream":"stdout"}
[ERROR] core: Unexpected HTTP response code: method=PUT url=https://REDACTED/api/agent/status status=401","@module":"task-worker.executor.task-output","@timestamp":"2024-07-26T20:37:17.306084Z","id":"dcdbb96e-27d7-4d0c-8280-5e8ddac20bee","name":"agent-run","stream":"stdout"}
Prerequisites (if applicable)
- Starting from TFE 202406-1 and onwards
Cause
Our Engineering is aware about the false positive error message and working on a fix.
Solutions:
- For now the error message can be ignored at the end of the run.
- Also you need to adjust any dependent monitoring accordingly.