Explore the latest product updates and best practices at our hybrid Checkmk Conference #12 from June 16-18, 2026 – Register here

Werk #15656: Agent TLS registration: Fix '500 Internal Server Error' during register and status

Component Agent bakery
Title Agent TLS registration: Fix '500 Internal Server Error' during register and status
Date Apr 12, 2023
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.3.0b1 Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Ultimate MT
2.2.0b4 Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Ultimate MT
2.1.0p26 Checkmk Community, Checkmk Pro, Checkmk Ultimate MT

When registering new agents (cmk-agent-ctl register) or querying the status of registered agents (cmk-agent-ctl status), users might have encountered the error

Error: Request failed with code 500 Internal Server Error: Internal Server Error (!!)

This happened if the path /opt/tmp existed on the monitoring server and the corresponding site user did not have read permissions for this path. If this happened, the log file var/log/agent-receiver/error.log contained errors such as

[ERROR] Exception in ASGI application
Traceback (most recent call last):
  ...
PermissionError: [Errno 13] Permission denied: '../../../tmp/check_mk/data_source_cache/push-agent/my-host'

To the list of all Werks