Cmk Update Agent wrong Update URL

CMK version: 2.5.0p20
OS version: Debian-13

Error message:

[31379] DEBUG: Caught Exception:
Traceback (most recent call last):
  File "cmk_update_agent.py", line 3023, in main
  File "cmk_update_agent.py", line 1464, in run
  File "cmk_update_agent.py", line 2233, in _run_mode
  File "cmk_update_agent.py", line 1916, in _run_update_mode
  File "cmk_update_agent.py", line 1975, in _maybe_update_agent
  File "cmk_update_agent.py", line 2027, in _get_target_state
  File "cmk_update_agent.py", line 2089, in _fetch_agent_info
  File "cmk_update_agent.py", line 562, in fetch_data_from_server
  File "cmk_update_agent.py", line 555, in fetch_data_from_server
  File "cmk_update_agent.py", line 589, in _do_request
  File "site-packages/requests/api.py", line 115, in post
  File "site-packages/requests/api.py", line 59, in request
  File "site-packages/requests/sessions.py", line 575, in request
  File "site-packages/requests/sessions.py", line 498, in prepare_request
  File "site-packages/requests/models.py", line 368, in prepare
  File "site-packages/requests/models.py", line 445, in prepare_url
requests.exceptions.InvalidURL: Invalid URL 'https:///example.domain.de/check_mk/deploy_agent.py': No host supplied
2026-11-18 12:17:14,778 [31379] ERROR: Invalid URL 'https:///example.domain.de/check_mk/deploy_agent.py': No host supplied
sudo cmk-agent-ctl register -s $SERVER -i $SITE -U $AUTOMATION_USER -H $HOST -P $SECRET
Attempting to register at example.domain.de, port 8000. Server certificate details:

PEM-encoded certificate:
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----

Issued by:
        Site 'sitename' local CA
Issued to:
        sitename
Validity:
        From Wed, 18 Nov 2026 09:10:46 +0000
        To   Tue, 18 Nov 2036 09:10:46 +0000

Do you want to establish this connection? [Y/n]
> Y
Registration complete.
Attempting to register Agent Updater...
Agent Updater registration complete.

Hey there, somehow the update agent url gets generated with a third “/”. The agent registration was successful, host finds all agent services. Only those Check_Mk Agent Details appear as warnings:

...
Update error: Invalid URL 'https:///example.domain.de/check_mk/deploy_agent.py': No host supplied WARN
No successful connect to server yet WARN
Update URL: https:///example.domain.de/check_mk
Hostname used by cmk-update-agent: example-hostname
...

Appeared to me for the first time. Any idea what to look out for? Maybe some new configs in the v2.5?

Thank you in advance!

looks like the URL in your site config is missing the hostname part. check the “url_prefix” or “site_url” setting in your main.mk or via the GUI. make sure it’s https //example.domain.de/ not https ///example.domain.de. after fixing restart the agent update