puppetd --test err: Could not request certificate: Connection refused - connect(2) Exiting; failed to retrieve certificate and waitforcert is disabled

11,507

The agent has no signed certificate.

At first invoking this command, the agent sends a certificate request to puppetmaster. If the command is run with a parameter --waitforcert 20 then the agent will wait until his certificate request is signed by the puppetmaster and 20 second there is a period between attempts.

On server where puppetmaster is running, you have to sign his request, e.g. with command:

puppet cert --all sign

Also ensure that server hostname is specified in "/etc/puppet/puppet.conf"

[main]
    server = puppet.example.com

Newer version abandoned this command in favor puppet agent --test.

For testing purpose you can enable autosign, but is generally unsafe.

[main]
    autosign = true
Share:
11,507

Related videos on Youtube

avaj
Author by

avaj

Updated on September 18, 2022

Comments

  • avaj
    avaj over 1 year

    I m new to puppet and i m trying to have connection to my puppet server, when i ping to my puppetmaster it runs well but when i run puppetd --test t shows me following error.

    puppetd --test info: Creating a new SSL key for neeraj-aspire-5738 err: Could not request certificate: Connection refused - connect(2) Exiting; failed to retrieve certificate and waitforcert is disabled

    I have install puppetmaster as well as puppet(as client) on to my ubuntu 12.10 distro

    i don't know much commands in puppet, So please let me know any command output that u require