Timeout::Error how to trouble shooting

asked 2016-09-07 05:35:20 -0500

dancewind gravatar image

Recently, there were so many Timeout::Error occurred. But we have no idea if it is because that the server loading is too heavy.

Could not retrieve catalog from remote server: Timeout::Error
Could not evaluate: Timeout::Error Could not retrieve file metadata for puppet:///modules/xxxx/xxx.zip: Timeout::Error

Could not retrieve catalog from remote server: Timeout::Error
Could not retrieve catalog; skipping run

Could not evaluate: Timeout::Error Could not retrieve file metadata for puppet:///modules/xxx/xxxx: Timeout::Error
Could not evaluate: Connection timed out - connect(2) Could not retrieve file metadata for puppet:///modules/xxxx/extjs/resources/themes/images/gray/form/exclamation.gif: Connection timed out - connect(2)

We observed the puppet master loading that maximum is 60% when the timeout happened. We can extend the configtimeout=600 to 10 min. but still the situation happens. We did run puppet master upon Apache server, and if we do the it one by one. The sync time doesn't cost too much.

Config Retrieval    96.24 seconds
Exec        0.00 seconds
File    102.20 seconds
Filebucket  0.00 seconds
Notify  0.01 seconds
Schedule    0.00 seconds
Service 0.06 seconds
Total   198.51 seconds

Any method to find out how did the Timeout happend?

edit retag flag offensive close merge delete

Comments

1

We usually see that issue when we have to many clients connecting to the puppetmaster, while still using the built in webrick server https://docs.puppet.com/puppet/latest/reference/services_master_webrick.html Previously the only option was using apache/passenger, and puppet 5 will be puppetserver

DarylW gravatar imageDarylW ( 2016-09-07 14:41:56 -0500 )edit

Thanks, we did run puppet master upon apache/passenger. I think I'll try tuning the optimization options of Passenger. Ref: https://www.phusionpassenger.com/library/config/apache/optimization/

dancewind gravatar imagedancewind ( 2016-09-07 22:52:13 -0500 )edit