Puppet automated O & M troubleshooting case

Source: Internet
Author: User

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:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.