Ask Your Question
1

puppet kick failed: Error 400 on SERVER: no 'environments'

asked 2014-10-16 16:38:24 -0500

liang gravatar image

I wanna push change to the node. It works at the first time and second, but It will be failed when I use puppet kick at third time. If I restart puppet agent, it will work at first two times and still be failed at third time.

Puppet version is 3.7.1

[root@ana-poc-07 puppet]# puppet kick -p 10 --host puppet-01.test.com
Warning: Puppet kick is deprecated. See http://links.puppetlabs.com/puppet-kick-deprecation
Warning: Failed to load ruby LDAP library. LDAP functionality will not be available
Triggering puppet-01.test.com
Error: Host puppet-01.test.com failed: Error 400 on SERVER: no 'environments' in {:root_environment=>#<Puppet::Node::Environment:0x7ff86e1f5248 @watching=true, @name=:"*root*", @config_version=nil, @manifest=:no_manifest, @modulepath=[]>, :current_environment=>#<Puppet::Node::Environment:0x7ff86e1f5248 @watching=true, @name=:"*root*", @config_version=nil, @manifest=:no_manifest, @modulepath=[]>} at top of [[0, nil, nil]]

On puppet agent, I change two config files:

#puppet.conf

server = ana-poc-07.test.com
certname = puppet-01.test.com
listen = true
runinterval = 999999999

#auth.conf

path /run
auth any
method save
allow ana-poc-07.test.com

Anyone knows what may cause this problem?

edit retag flag offensive close merge delete

Comments

Is there a chance you're using a reserved environment name, such as master? This often happens with dynamic environments based on GIT branches since GIT creates a master branch by default.

cbarbour gravatar imagecbarbour ( 2014-10-20 15:03:03 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-03-18 03:25:26 -0500

same problem here. Is there any solution for this problem?

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-10-16 16:33:13 -0500

Seen: 610 times

Last updated: Oct 16 '14