Docker Plugin Not Working on Ubuntu 20.04

CMK version: Checkmk Raw Edition 2.1.0p20
OS version: Ubuntu 20.04 LTS

Error message: Plugin exception in MKDockerClient.__init__: Error while fetching server API version: request() got an unexpected keyword argument 'chunked'

Output of “cmk --debug -vvn hostname”: N/A

We have an issue running the Docker plugin specifically on Ubuntu 20.04 systems. The plugin works properly on both Ubuntu 18.04 and Ubuntu 22.04, but on 20.04 it returns the error message shown above.

The error message is the same when running the plugin script from the command prompt, regardless of whether or not the user executing the script has permissions to access the Docker daemon. It is also the same regardless of whether we use the latest (v6.0.1) version of the python docker library or a known-good version (v5.0.3).

Is this a known issue? Are there some troubleshooting steps we are missing?

Any help or advice is appreciated.

Thanks in advance,
Jason

Based on this GitHub issue, it seems the issue is caused by recent versions of pip packages:

Running the following command downgraded the relevant packages and got the plugin working for us:

sudo pip3 install --force-reinstall 'requests<2.29.0' 'urllib3<2.0'

Hope this saves someone else some time if they run into the same issue.

Regards,
Jason

2 Likes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.