Hello,
I have a separate
1. master running apache+passenger,
2. puppetDB on a separate server running postgresql
3. dashboard on a separate server.
Total of 3 servers - Master, puppetdb. dashboard.
This is the error message I get when I run puppet agent from any of the servers.
## I have changed the hostnames in the output below ##
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to submit 'replace facts' command for
puppetmaster.domain.com to PuppetDB at
puppetDB.domain.com:8081: [400 Bad Request] Missing required query parameter 'payload'
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
[server ~]# nc -v
puppetdb.domain.com 8081
Connection to
puppetdb.domain.com 8081 port [tcp/tproxy] succeeded!
From the messages file on the master (after I've run puppet agent -t --noop --debug) I see this :
May 21 10:55:23 <3.3>
puppetmaster.domain.com puppet-agent[8158]: (/File[/var/lib/puppet/lib]) Failed to generate additional resources using 'eval_generate': Connection refused - connect(2)
May 21 10:55:23 <3.3>
puppetmaster.domain.com puppet-agent[8158]: (/File[/var/lib/puppet/lib]) Could not evaluate: Could not retrieve file metadata for puppet://
puppetdb.domain.com/plugins: Connection refused - connect(2)
May 21 10:55:23 <3.3>
puppetmaster.domain.com puppet-agent[8158]: (/File[/var/lib/puppet/lib]) Wrapped exception:
May 21 10:55:23 <3.3>
puppetmaster.domain.com puppet-agent[8158]: (/File[/var/lib/puppet/lib]) Connection refused - connect(2)
May 21 10:55:23 <3.3>
puppetmaster.domain.com puppet-agent[8158]: Could not retrieve catalog from remote server: Connection refused - connect(2)
May 21 10:55:23 <3.5>
puppetmaster.domain.com puppet-agent[8158]: Using cached catalog
May 21 10:55:23 <3.6>
puppetmaster.domain.com puppet-agent[8158]: Applying configuration version '1399548635'
May 21 10:55:23 <3.5>
puppetmaster.domain.com puppet-agent[8158]: Finished catalog run in 0.02 seconds
May 21 10:55:23 <3.3>
puppetmaster.domain.com puppet-agent[8158]: Could not send report: Connection refused - connect(2)
the /var/lib/puppet/lib directory is empty on both the master and the puppetdb server.
Please let me know what configurational files you require to help me solve this issue.
Thank you.