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

Komponente Agent bakery
Titel Agent TLS registration: Fix '500 Internal Server Error' during register and status
Datum 12.04.2023
Checkmk Edition Checkmk Raw (CRE)
Checkmk-Version 2.1.0p26 2.2.0b4 2.3.0b1
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen

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'

Zur Liste aller Werks