puppetdb not picking up the server_urls from config file
Hi,
In my config file I have server URL listed like this
cat /etc/puppetlabs/puppet/puppetdb.conf
[main]
server_urls = https://webserver:8081
but when I run the 'puppet agent --test' command its picking
'server_urls': https://puppetdb:8081
Where is piking up the wrong URL. I am getting below error.
# puppet agent --test
Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: Error 500 on SERVER: Server Error: Could not retrieve facts for webserver: Failed to find facts from PuppetDB at puppet:8140: Failed to execute '/pdb/query/v4/nodes/webserver/facts' on at least 1 of the following 'server_urls': https://puppetdb:8081
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching facts for webserver
Info: 'replace_facts' command for webserver submitted to PuppetDB with UUID d90c18fd-28b9-496d-9084-a5fe352ad1a7
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Failed to execute '/pdb/cmd/v1?checksum=fb53810f67e7f80f68d79ba917b9e4cd81e07a46&version=5&certname=webserver&command=replace_facts' on at least 1 of the following 'server_urls': https://puppetdb:8081
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run