Ask Your Question
1

PE 3.2: Mcollective generates runtime error

asked 2014-06-06 11:00:05 -0500

Kuowinta' gravatar image

updated 2014-06-06 11:17:42 -0500

I receive the following error when I attempt to execute mco ping:

Failed to generate application list: RuntimeError: Cannot find config file '/etc/puppetlabs/mcollective/client.cfg'

edit retag flag offensive close merge delete

Comments

Di you check if the file exists?

Renan Vicente gravatar imageRenan Vicente ( 2014-06-06 14:13:30 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
2

answered 2014-06-10 13:34:56 -0500

Jeff Johnson gravatar image

Try switching to the peadmin user:

jjohnson@puppet01-qa01:~$ sudo -i -u peadmin

From here, you should be able to execute your mco command:

peadmin@puppet01-qa01:~$ mco ping

The peadmin user has special privileges/permissions set up that allow it to work with mcollective. You can read more about it here. I've found that if I try to execute an mco command as a user other than peadmin, I get the error you mentioned above.

edit flag offensive delete link more

Comments

It worked! Thanks a lot.

Kuowinta' gravatar imageKuowinta' ( 2014-06-16 14:20:26 -0500 )edit
0

answered 2014-11-15 16:39:24 -0500

vmule gravatar image

updated 2014-11-15 16:39:53 -0500

Hello, you could also copy the .mcollective with the config you need doing this:

[root@localhost ~]# cp /var/lib/peadmin/.mcollective ~/

and then will work:

[root@localhost ~]# whoami
root
[root@localhost ~]# mco ping
master.puppetlabs.vm                     time=111.98 ms
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-06-06 11:00:05 -0500

Seen: 2,277 times

Last updated: Nov 15 '14