Hello, I am trying to connect puppet master node(Centos-7) from fresh puppet agent node (Centos-7), but getting below errors while executing "puppet agent -t".
[root@puppet_client_1 ~]# puppet agent -t Info: Creating a new SSL key for puppet_client_1 Error: Could not request certificate: execution expired Exiting; failed to retrieve certificate and waitforcert is disabled Requesting to go through with attached logs to resolve this issue. Please let me know if you need any info for the same. Best Regards, Deepankar A -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAD33ukGmU_NKBgRcEMGGDQ_LHziHOsUd54yxmJx_4HFF4EEpJw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Puppet v3.8.7 [root@puppet_client_1 ~]# puppet agent -t Info: Creating a new SSL key for puppet_client_1 Error: Could not request certificate: execution expired Exiting; failed to retrieve certificate and waitforcert is disabled [root@puppet_client_1 puppet]# puppet agent --test --trace Error: Could not request certificate: execution expired /usr/share/ruby/net/http.rb:878:in `initialize' /usr/share/ruby/net/http.rb:878:in `open' /usr/share/ruby/net/http.rb:878:in `block in connect' /usr/share/ruby/net/http.rb:877:in `connect' /usr/share/ruby/net/http.rb:862:in `do_start' /usr/share/ruby/net/http.rb:851:in `start' /usr/share/ruby/net/http.rb:1373:in `request' /usr/share/ruby/vendor_ruby/puppet/network/http/connection.rb:208:in `execute_request' /usr/share/ruby/vendor_ruby/puppet/network/http/connection.rb:176:in `block (2 levels) in request_with_redirects' /usr/share/ruby/vendor_ruby/puppet/network/http/connection.rb:219:in `block in with_connection' /usr/share/ruby/vendor_ruby/puppet/network/http/nocache_pool.rb:15:in `with_connection' /usr/share/ruby/vendor_ruby/puppet/network/http/connection.rb:218:in `with_connection' /usr/share/ruby/vendor_ruby/puppet/network/http/connection.rb:173:in `block in request_with_redirects' /usr/share/ruby/vendor_ruby/puppet/network/http/connection.rb:170:in `upto' /usr/share/ruby/vendor_ruby/puppet/network/http/connection.rb:170:in `request_with_redirects' /usr/share/ruby/vendor_ruby/puppet/network/http/connection.rb:76:in `get' /usr/share/ruby/vendor_ruby/puppet/indirector/rest.rb:83:in `http_request' /usr/share/ruby/vendor_ruby/puppet/indirector/rest.rb:62:in `http_get' /usr/share/ruby/vendor_ruby/puppet/indirector/rest.rb:96:in `block in find' /usr/share/ruby/vendor_ruby/puppet/indirector/rest.rb:190:in `block in do_request' /usr/share/ruby/vendor_ruby/puppet/indirector/request.rb:263:in `do_request' /usr/share/ruby/vendor_ruby/puppet/indirector/rest.rb:190:in `do_request' /usr/share/ruby/vendor_ruby/puppet/indirector/rest.rb:90:in `find' /usr/share/ruby/vendor_ruby/puppet/indirector/certificate/rest.rb:12:in `find' /usr/share/ruby/vendor_ruby/puppet/indirector/indirection.rb:201:in `find' /usr/share/ruby/vendor_ruby/puppet/ssl/host.rb:206:in `certificate' /usr/share/ruby/vendor_ruby/puppet/ssl/host.rb:36:in `localhost' /usr/share/ruby/vendor_ruby/puppet/ssl/validator/default_validator.rb:29:in `initialize' /usr/share/ruby/vendor_ruby/puppet/ssl/validator.rb:27:in `new' /usr/share/ruby/vendor_ruby/puppet/ssl/validator.rb:27:in `default_validator' /usr/share/ruby/vendor_ruby/puppet/network/http_pool.rb:35:in `http_instance' /usr/share/ruby/vendor_ruby/puppet/indirector/rest.rb:57:in `network' /usr/share/ruby/vendor_ruby/puppet/indirector/rest.rb:82:in `http_request' /usr/share/ruby/vendor_ruby/puppet/indirector/rest.rb:62:in `http_get' /usr/share/ruby/vendor_ruby/puppet/indirector/rest.rb:96:in `block in find' /usr/share/ruby/vendor_ruby/puppet/indirector/rest.rb:190:in `block in do_request' /usr/share/ruby/vendor_ruby/puppet/indirector/request.rb:263:in `do_request' /usr/share/ruby/vendor_ruby/puppet/indirector/rest.rb:190:in `do_request' /usr/share/ruby/vendor_ruby/puppet/indirector/rest.rb:90:in `find' /usr/share/ruby/vendor_ruby/puppet/indirector/certificate/rest.rb:12:in `find' /usr/share/ruby/vendor_ruby/puppet/indirector/indirection.rb:201:in `find' /usr/share/ruby/vendor_ruby/puppet/ssl/host.rb:206:in `certificate' /usr/share/ruby/vendor_ruby/puppet/ssl/host.rb:326:in `wait_for_cert' /usr/share/ruby/vendor_ruby/puppet/application/agent.rb:483:in `wait_for_certificates' /usr/share/ruby/vendor_ruby/puppet/application/agent.rb:324:in `run_command' /usr/share/ruby/vendor_ruby/puppet/application.rb:381:in `block (2 levels) in run' /usr/share/ruby/vendor_ruby/puppet/application.rb:507:in `plugin_hook' /usr/share/ruby/vendor_ruby/puppet/application.rb:381:in `block in run' /usr/share/ruby/vendor_ruby/puppet/util.rb:496:in `exit_on_fail' /usr/share/ruby/vendor_ruby/puppet/application.rb:381:in `run' /usr/share/ruby/vendor_ruby/puppet/util/command_line.rb:146:in `run' /usr/share/ruby/vendor_ruby/puppet/util/command_line.rb:92:in `execute' /usr/bin/puppet:8:in `<main>' Exiting; failed to retrieve certificate and waitforcert is disabled [root@puppet_client_1 puppet]# [root@puppet_client_1 puppet]# ls -ld /var /var/lib /var/lib/puppet /var/lib/puppet/ssl /var/lib/puppet/ssl/private_keys drwxr-xr-x. 19 root root 4096 May 13 18:30 /var drwxr-xr-x. 29 root root 4096 May 13 18:49 /var/lib drwxr-x--- 11 puppet puppet 4096 May 13 18:53 /var/lib/puppet drwxrwx--x 7 puppet puppet 4096 May 13 18:53 /var/lib/puppet/ssl drwxr-x--- 2 puppet puppet 4096 May 13 18:53 /var/lib/puppet/ssl/private_keys [root@puppet_client_1 puppet]# [root@puppet_client_1 puppet]# puppetd -t -bash: puppetd: command not found [root@puppet_client_1 ssl]# puppet agent --configprint server puppetmaster.ittest.net [root@puppet_client_1 puppet]# getent passwd root root:x:0:0:root:/root:/bin/bash [root@puppet_client_1 puppet]# [root@puppet_client_1 puppet]# getent group 0 root:x:0: