Ask Your Question
0

Warning when I run puppet agent -t --server server1

asked 2016-06-22 07:43:07 -0600

Linkback gravatar image

updated 2016-06-22 10:12:59 -0600

Hi,

When I run puppet agent -t --server server1, I'm getting below warning:

Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: undefined method `include?' for nil:NilClass

But after the command successful completed, I had run it again, this warning is gone. I also checked the auth.conf file and it do included below contents in top of this file.

# allow nodes to retrieve their own node definition
path ~ ^/node/([^/]+)$
method find
allow $1

So I would need some help on this to see if I can fix this warning issue when I first time run this?

Thanks Link

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2016-06-26 04:51:28 -0600

We don't what version of Puppet you're running. It is likely that either something changed on your Puppet Master after the first run and before the second one, or you are encountering a weird bug. It's going to be very hard to get to the bottom of this unless you can reproduce the issue.

edit flag offensive delete link more

Comments

Thanks, and my puppet master and agent version are: 3.8.7 Yes, I can reproduce this problem by using the new server that trying to run puppet agent -t --server server1 and it give me those warnings in first time, after that, when I run it again, it gone. Thanks Lingfei

Linkback gravatar imageLinkback ( 2016-06-27 07:59:44 -0600 )edit
0

answered 2016-09-08 13:34:45 -0600

camlow325 gravatar image

My experience with this has been the same. It only happens on the first agent run for a node against the master but does not happen again after that. I filed PUP-6691 in the Puppet JIRA tracker for this issue.

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: 2016-06-22 07:43:07 -0600

Seen: 295 times

Last updated: Sep 08 '16