Could not retrieve catalog from remote server: end of file reached

1,269 views
Skip to first unread message

Bret Wortman

unread,
Oct 1, 2014, 1:21:14 PM10/1/14
to puppet...@googlegroups.com
This is happening on some of my clients. It'll happen about 1 out of 20 runs, but it's really getting to be a problem. There's nothing indicative in /var/log/messages or any other server-side log that I can find, and this is all the output I'm seeing on the client:

# puppet agent - t
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Could not retrieve catalog from remote server: end of file reached
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
#

Any guidance on how to get more details out of Puppet about what's going wrong here? It's persistent, but again, doesn't happen 100% of the time. And it's only happening on certain agents, so I'm pretty sure it's related to a module somewhere that's doing something wrong, but for the life of me, I can't suss out which module is causing the problem.


Bret Wortman

Henrik Lindberg

unread,
Oct 1, 2014, 1:31:00 PM10/1/14
to puppet...@googlegroups.com
Are you using Webrick ? If so, there are versions of Puppet 3x that have
issues with concurrent operation (more than one agent at the same time)
that can cause all kinds of weird behavior - typically resulting in
truncated streams.

Try latest 3.6, or 3.7. The best fix is to stop using Webrick in favor
of Passenger. Webrick is really not for production use.

- henrik

--

Visit my Blog "Puppet on the Edge"
http://puppet-on-the-edge.blogspot.se/

Bret Wortman

unread,
Oct 1, 2014, 1:38:16 PM10/1/14
to puppet...@googlegroups.com
We're running through Passenger and Apache. Puppetdb back-end. Puppet 3.6.2-1 on F20 on the server, Puppet 3.7.1-1 C6.5 on the client. Hmmmm. Could the newer client be the problem?

Bret Wortman

unread,
Oct 1, 2014, 1:47:12 PM10/1/14
to puppet...@googlegroups.com
I guess not. I upgraded the server to match but the problem persists.

Josh Cooper

unread,
Oct 1, 2014, 6:24:07 PM10/1/14
to puppet...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/f159d59a-aa57-4648-8e34-cb39686469fa%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

You may be running into https://tickets.puppetlabs.com/browse/PUP-3238. Is the passenger KeepAliveTimeout shorter than the the puppet agent's timeout? If so, the server may close an idle connection, e.g. while the agent is running facter.


Josh

--
Josh Cooper
Developer, Puppet Labs

Bret Wortman

unread,
Oct 2, 2014, 7:09:08 AM10/2/14
to puppet...@googlegroups.com
Bingo! I set the timeout to 15s on server and agent both (some of our network links are pretty crappy) and now everyone's connecting as before. Thanks for the tip!
Reply all
Reply to author
Forward
0 new messages