Puppet automated O & M troubleshooting case
Recently, the following error is reported for a group of Puppet Agent machines maintained by Alibaba Cloud:
[Root @ client src] # puppetd -- test -- server server.bkjia.com
Notice: Run of Puppet configuration client already in progress; skipping
Solution:
Previously, use the online method to delete the puppet. lock file. The command is as follows:
Rm/var/lib/puppet/state/puppet. lock
The fault persists. Later, it was found that the fault occurred due to/etc/puppet/manifests/site. if the pp configuration file is not correctly written, we can correct it. In fact, it will be like the site in puppet server. pp and init. when there are major changes to the pp, it is best to first check with the puppet parser validate command, for example:
[Root @ server manifests] # puppet parser validate site. pp
Err: cocould not parse for environment production: Syntax error at 'source'; expected'}'
/Etc/puppet/manifests/site. pp: 8
Err: Try 'puppet help parser validate' for usage
As shown above, it is obvious that there is an error in line 8th of site. pp, prompting us to correct the error and troubleshooting after correction. In fact, the puppet parser validate command is very useful in puppet server syntax, for example:
Puppet parser validate node. pp
The node. pp syntax is incorrect. The error code} is missing in row 10th. The error message is as follows:
Err: cocould not parse for environment production: Syntax error at end of file; expected '}' at/etc/puppet/manifests/node. pp: 10
Err: Try 'puppet help parser validate' for usage
Puppet Learning Series:
Puppet Learning 1: Installation and simple instance applications
Puppet 2: simple module configuration and application
Research on three Backup Recovery solutions for Puppet agent
Register your Puppet node in a safer way
Deep understanding of Puppet syntax and working mechanism through SSH Configuration
Puppet uses Nginx multiple ports for Load Balancing
C/S mode instance of Puppet in CentOS (5 and 6)
For more information about Puppet, click here.
Puppet: click here
This article permanently updates the link address: