I think whilst trying to correct agent certificate on the master that I have caused another issue with the master not running correctly.
**puppet agent -t**
Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: Connection refused - connect(2)
Info: Retrieving pluginfacts
Error: /File[/var/lib/puppet/facts.d]: Failed to generate additional resources using 'eval_generate': Connection refused - connect(2)
Error: /File[/var/lib/puppet/facts.d]: Could not evaluate: Could not retrieve file metadata for puppet://puppet/pluginfacts: Connection refused - connect(2)
Wrapped exception:
Connection refused - connect(2)
Info: Retrieving plugin
Error: /File[/var/lib/puppet/lib]: Failed to generate additional resources using 'eval_generate': Connection refused - connect(2)
Error: /File[/var/lib/puppet/lib]: Could not evaluate: Could not retrieve file metadata for puppet://puppet/plugins: Connection refused - connect(2)
Wrapped exception:
Connection refused - connect(2)
Error: Could not retrieve catalog from remote server: Connection refused - connect(2)
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
Error: Could not send report: Connection refused - connect(2)
Master service is running
[root@XXX /etc/puppet]# sudo puppet master --verbose --no-daemonize
Notice: Starting Puppet master version 3.7.4
^C
Notice: Caught INT; calling stop
#### started puppet service
[root@XXX /etc/puppet]# sudo puppet resource service puppet ensure=running enable=true
Notice: /Service[puppet]/ensure: ensure changed 'stopped' to 'running'
service { 'puppet':
ensure => 'running',
enable => 'true',
}
**Nothing is running on port 8140**
netstat -anpl | grep 8140
lsof -i :8140
**What are the steps to correctly restart the master so that port 8140 is correctly active?**
↧