MKDockerClient error

CMK version: Checkmk Raw Edition 2.3.0p9
OS version: Ubuntu 22.04 LTS (server) and Ubuntu 24.04 LTS (monitored)

Error message:

./mk_docker.py -vvv
DEBUG: (line 128) parsed args: Namespace(debug=False, verbose=3, config_file=‘docker.cfg’)
DEBUG: (line 134) trying to read ‘docker.cfg’
INFO: (line 136) read configration file(s):
DEBUG: (line 21) Trying paths: [‘/root/.docker/config.json’, ‘/root/.dockercfg’]
DEBUG: (line 28) No config file found
DEBUG: (line 21) Trying paths: [‘/root/.docker/config.json’, ‘/root/.dockercfg’]
DEBUG: (line 28) No config file found
INFO: (line 179) handling exception: Error while fetching server API version: HTTPConnection.request() got an unexpected keyword argument ‘chunked’
<<<docker_node_info:sep(124)>>>
@docker_version_info|{“PluginVersion”: “0.1”, “DockerPyVersion”: “5.0.3”}
<<<docker_node_info:sep(0)>>>
{“Unknown”: “Plug-in exception in MKDockerClient.init: Error while fetching server API version: HTTPConnection.request() got an unexpected keyword argument ‘chunked’”}

Hey,

I updated two of my hosts from Ubuntu 22.04 LTS to Ubuntu 24.04 LTS. After updating I’m getting the error above. All Docker checks there aren’t working.

Additionally I’m running those hosts with podman 4.9.3 which should be compatible to docker.

I found this thread but I can’t downgrade the pages since the OS brings them with it.

What can I do?

1 Like

This is a bug in Ubuntu’s Python Docker package. See this bug entry on Launchpad. Unfortunately it hasn’t been fixed yet.

Personally I don’t care enough & have remove the vanished Docker services for Ubuntu 24.04 hosts until this issue’s been fixed via proper upstream packages (meaning those from Ubuntu). I’m not a big fan of force-downgrading things or doing system-wide installations of Python packages with pip. Those often pose more problems in the long run than they solve in the short one.

1 Like