We use cookies to ensure that we give you the best experience on our website.  Visit our Privacy Policy to learn more. If you continue to use this site, we will assume that you are okay with it.

Your choices regarding cookies on this site.
Your preferences have been updated.
In order for the changes to take effect completely please clear your browser cookies and cache. Then reload the page.

Werk #7164: cmk-update-agent: Add timeout handling for connection to server

ComponentAgent Bakery
Titlecmk-update-agent: Add timeout handling for connection to server
Date2019-02-18 08:40:51
Checkmk EditionCheckmk Enterprise Edition (CEE)
Checkmk Version1.4.0p39,1.6.0b1,1.5.0p13
LevelTrivial Change
ClassBug Fix
CompatibilityCompatible - no manual interaction needed

Previously, the connection from the agent updater to the Check_MK Server did not handle timeouts. This could lead to situations where the agent updater would run forever waiting for a response.

This was particularly noticeable when running the agent updater under Windows, because the agent updater would fail to start over again, showing an error like copying plugins\cmk-update-agent.exe to temp\cmk-update-agent.exe failed.

The agent updater now will cancel the connection if it freezes. The timeout limit is set to 120 seconds. This handling does not limit the overall connection time.
For a detailled explenation have a look at the Timeouts paragraph at the requests documentation!

Please note: This timeout is only active for connections handled by python-requests.
This fix won't apply if you are running the agent updater using cURL. (i.e. you are running the Check_MK Agent Updater 1.4 on a Linux/UNIX host and there is no python-requests module installed.)