Hello,
puppetserver version: 7.8.0 (CentOS 7) |
hostname:
puppet-staging-srv
puppet agent: 7.19
puppetdb: 7.11.0-1focal (Ubuntu 20.04) | hostname: puppet-staging-srv-db
Postgres: 12.12-0ubuntu0.20.04.1
Foreman is enabled on Puppetserver.
Postgres is configured to work with SSL.
Getting the below error from ANY VM on the network whenever I try to sync with Puppet master server.
Error message:
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Failed to execute '/pdb/cmd/v1?checksum=a0d1b67028ed455a4d8b15fd5fc846ca54d4c0a6&version=5&certname=vm-ubuntu20&command=replace_facts&producer-timestamp=2022-09-30T07:47:13.621Z' on at least 1 of the following 'server_urls':
https://puppet-staging-srv-db:8081Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
However, When I remove the configuration files(puppetdb.conf , values from puppet.conf, routes.yaml) from the Puppet master $CONF dir, everything is back to normal and sync works.
Connection between Puppet master and puppetdb and vice vesra:
[root@puppet-staging-srv puppet]
nc -zvw10 puppet-staging-srv-db 8081Ncat: Version 7.50 (
https://nmap.org/ncat )
Ncat:
Connected to 10.111.8.77:8081.
root@puppet-staging-srv-db:~#
nc -zvw10 puppet-staging-srv 8140Connection to puppet-staging-srv 8140 port [tcp/puppet] succeeded!
PuppetDB website is UP and shows zero data on 'Active Nodes' and most of the fields(see screenshot snap-1.png.)
Thanks in advanced!