Could not retrieve catalog from remote server: Error 500

I have an issue on my agents like following:

Error: Could not retrieve catalog from remote server: Error 500 on SERVER:
Server Error: Could not find node 'mynode.domain.tld'; cannot compile
Warning: Not using cache on failed catalog Error: Could not retrieve
catalog; skipping run

This is a puppet/puppetdb setup where i can visit my puppetdb dashboard and
see data.

My puppetversion on both master and agent are 4.7.0

In forman I get back a report that the agent has runned but failed as in
the log above, hostnames and such are right so to say.

I'm really out of options as I have tested and recheked everything out.

Any idea on this one ?

Thanks,

Matt

I found out the following:

2016-10-10 12:18:00,535 WARN [qtp1893758583-67] [c.p.p.ShellUtils]
Executed an external process which logged to STDERR: Could not send facts
to Foreman: SSL_connect returned=1 errno=0 state=SSLv3 read server
certificate B: certificate verify failed

2016-10-10 12:18:00,555 INFO [qtp1893758583-67] [puppetserver] Puppet Not
Found: Could not find node mynode.domain.tld
2016-10-10 12:18:06,427 INFO [qtp1893758583-67] [puppetserver] Puppet
'replace_facts' command for mynode.domain.tld submitted to PuppetDB with
UUID 2861b82d-e655-46b3-9d99-1a3f858098ba
2016-10-10 12:18:07,157 WARN [qtp1893758583-67] [c.p.p.ShellUtils]
Executed an external process which logged to STDERR: Could not send facts
to Foreman: SSL_connect returned=1 errno=0 state=SSLv3 read server
certificate B: certificate verify failed

2016-10-10 12:18:07,159 ERROR [qtp1893758583-67] [puppetserver] Puppet
Server Error: Could not find node 'mynode.domain.tld'; cannot compile

The strange thing here is that requesting and signing the cert is no issue
at all and time is the same (synced with ntpdate) on both servers.

DNS is OK, PTR is ok, so I'm out of options.

Any idea ?

··· Op zondag 9 oktober 2016 02:25:56 UTC+2 schreef yamaka...@gmail.com: > > I have an issue on my agents like following: > > > Error: Could not retrieve catalog from remote server: Error 500 on SERVER: > Server Error: Could not find node 'mynode.domain.tld'; cannot compile > Warning: Not using cache on failed catalog Error: Could not retrieve > catalog; skipping run > > > This is a puppet/puppetdb setup where i can visit my puppetdb dashboard > and see data. > > > My puppetversion on both master and agent are 4.7.0 > > > In forman I get back a report that the agent has runned but failed as in > the log above, hostnames and such are right so to say. > > > I'm really out of options as I have tested and recheked everything out. > > > Any idea on this one ? > > > Thanks, > > > Matt >

I found my issue, my 3rd party certificates for the webgui mess this up,
it's also shown in this thread:

https://groups.google.com/forum/#!topic/foreman-users/ien1_UV5oho

When I set back the foreman generated ones, all is fine again.

Is this a bug ?

··· Op maandag 10 oktober 2016 12:22:55 UTC+2 schreef yamaka...@gmail.com: > > I found out the following: > > 2016-10-10 12:18:00,535 WARN [qtp1893758583-67] [c.p.p.ShellUtils] > Executed an external process which logged to STDERR: Could not send facts > to Foreman: SSL_connect returned=1 errno=0 state=SSLv3 read server > certificate B: certificate verify failed > > 2016-10-10 12:18:00,555 INFO [qtp1893758583-67] [puppetserver] Puppet Not > Found: Could not find node mynode.domain.tld > 2016-10-10 12:18:06,427 INFO [qtp1893758583-67] [puppetserver] Puppet > 'replace_facts' command for mynode.domain.tld submitted to PuppetDB with > UUID 2861b82d-e655-46b3-9d99-1a3f858098ba > 2016-10-10 12:18:07,157 WARN [qtp1893758583-67] [c.p.p.ShellUtils] > Executed an external process which logged to STDERR: Could not send facts > to Foreman: SSL_connect returned=1 errno=0 state=SSLv3 read server > certificate B: certificate verify failed > > 2016-10-10 12:18:07,159 ERROR [qtp1893758583-67] [puppetserver] Puppet > Server Error: Could not find node 'mynode.domain.tld'; cannot compile > > The strange thing here is that requesting and signing the cert is no issue > at all and time is the same (synced with ntpdate) on both servers. > > DNS is OK, PTR is ok, so I'm out of options. > > Any idea ? > > > > > > Op zondag 9 oktober 2016 02:25:56 UTC+2 schreef yamaka...@gmail.com: >> >> I have an issue on my agents like following: >> >> >> Error: Could not retrieve catalog from remote server: Error 500 on >> SERVER: Server Error: Could not find node 'mynode.domain.tld'; cannot >> compile Warning: Not using cache on failed catalog Error: Could not >> retrieve catalog; skipping run >> >> >> This is a puppet/puppetdb setup where i can visit my puppetdb dashboard >> and see data. >> >> >> My puppetversion on both master and agent are 4.7.0 >> >> >> In forman I get back a report that the agent has runned but failed as in >> the log above, hostnames and such are right so to say. >> >> >> I'm really out of options as I have tested and recheked everything out. >> >> >> Any idea on this one ? >> >> >> Thanks, >> >> >> Matt >> >