katello installer occasionally fails due to cpinit timeout
Occasionally, the katello installer will fail with a "command exceeded timeout" error:
[DEBUG 2016-01-25 11:01:02 main] Executing '/usr/bin/wget --no-proxy --timeout=30 --tries=40 --wait=20 --retry-connrefused -qO- http://localhost:8080/candlepin/admin/init > /var/log/candlepin/cpinit.log 2>&1 && touch /var/lib/candlepin/cpinit_done' [ERROR 2016-01-25 11:06:01 main] Command exceeded timeout
Note that this is 5 minutes, not 13.33 minutes as the wget command would suggest. It appears that the puppet timeout is shorter than the wget timeout.
Fixes #13361: tell puppet to wait for wget to finish
The wget timeout was previously set to 13.33 minutes. However, puppet was not
aware that this command could take longer than 5 minutes, and would kill the
wget before candlepin was finished starting up.
I've seen 7 to 8 minutes for startup in some cases, depending on the
performance of the system.
#1 Updated by Chris Duryee about 5 years ago
- Status changed from New to Closed