Error 500 on SERVER:Server Error:Failed to find dc.sc.com

Problem:
Start the puppet server and report an error
puppet-agent [24266]: failed to find dc.sc.com via exec: Execution of ‘/etc/puppetlabs/puppetnode.rb dc.sc.com’ retuned 1;
Expected outcome:

Foreman and Proxy versions:

Foreman and Proxy plugin versions:

Distribution and version:

Other relevant data:
Please, guys, I really don’t know how to solve this problem Please help me solve it. Thank you

Hey @zsy12

Please complete these fields:

Expected outcome:

Foreman and Proxy versions:

Foreman and Proxy plugin versions:

Distribution and version:

**Expected outcome:No error message, normal startup.
**Foreman and Proxy versions:2.0
**Foreman and Proxy plugin versions:2.0
puppet version:6.15.0

Have you tried to run /etc/puppetlabs/puppetnode.rb dc.sc.com manually?

I did. The result :
During fact upload occured an exception:SSL_connect returned=1 errno=0 state=error: certificate verify faied
Serving cached ENC:Could not send facts to Foreman:SSL_connect returned=1 errno=0 state=error: certificate verify failed
and there are also some parameters below

Have you changed anything in your SSL setup or could it be that your certificate has expired?

Likely the same issue as in Failed to start on puppet client there’s something wrong with your SSL setup.

1 Like

]Where can I see if the certificate has expired

Where to look at SSL settings

I checked by order. The certificate does not expire until 2036

The error does not indicate the expiration but rather that the CA in untrusted.

Yes! It didn’t expire. What’s next?

Sorry, this does not seem to be the Foreman issue, try to debug your SSL certificates using curl/openssl. You can find some tricks e.g. here