Ask Your Question
0

PE 2015.2.2: Duplicate plugin name found, please specify a full path like agent/rpcutil

asked 2015-10-28 23:19:24 -0500

cm01 gravatar image

updated 2015-11-09 16:53:38 -0500

Hi Guys,

 mco plugin doc service

Duplicate plugin name found, please specify a full path like agent/rpcutil

mco plugin doc agent/service

The plugin application failed to run, use -v for full error backtrace details: No such file or directory @ rb_sysopen - /etc/mcollective/rpc-help.erb

mco plugin -v doc agent/service

The plugin application failed to run: No such file or directory @ rb_sysopen - /etc/mcollective/rpc-help.erb

No such file or directory @ rb_sysopen - /etc/mcollective/rpc-help.erb (Errno::ENOENT)
    from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/mcollective/ddl/base.rb:46:in `read'  <----
    from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/mcollective/ddl/base.rb:46:in `help'
    from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/mcollective/application/plugin.rb:252:in `doc_command'
    from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/mcollective/application/plugin.rb:363:in `main'
    from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/mcollective/application.rb:293:in `run'
    from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/mcollective/applications.rb:23:in `run'
    from /opt/puppetlabs/puppet/bin/mco:33:in `<main>'

As you can see it thinks there is a duplicate defn for 'service', but either its wrong or I can't seem to use the syntax suggested.

Chris

RE: mco plugin check:
Actually I run Centos so I just use su, not sudo (I'm old skool). I get different o/p depending on exactly how I connect to peadmin

su - peadmin 
peadmin@boole:~$ mco plugin doc netserv
Could not find a plugin named 'netserv' in any supported plugin type

su - peadmin mco plugin doc netserv
/opt/puppetlabs/puppet/bin/mco: line 5: .delete: command not found
/opt/puppetlabs/puppet/bin/mco: line 7: require: command not found
/opt/puppetlabs/puppet/bin/mco: line 10: exitcode: command not found
/opt/puppetlabs/puppet/bin/mco: line 12: Version: command not found
/opt/puppetlabs/puppet/bin/mco: line 13: known_applications: command not found
/opt/puppetlabs/puppet/bin/mco: mco: line 16: syntax error near unexpected token `('
/opt/puppetlabs/puppet/bin/mco: mco: line 16: `if $0 =~ /mc\-([a-zA-Z\-_\.]+)$/'

MCO cont (1):
Just realised that was my fault; I don't often use the latter syntax. I should have done

 su - peadmin -c 'mco plugin doc netserv'
Could not find a plugin named 'netserv' in any supported plugin type

which of course give me the same thing as actually logging in. Sorry about that distraction.

OK; so I tried manually adding the rpchelptemplate setting to the server.cfg and then restart. This is what happened

 service mcollective stop && sleep 2 && service mcollective start
Shutting down mcollective:                                 [  OK  ]
Starting mcollective: warn 2015/11/05 15:13:57: config.rb:129:in `block in loadconfig' Use of deprecated 'rpchelptemplate' option.  This option is ignored and should be removed from '/etc/puppetlabs/mcollective/server.cfg'
                                                           [  OK  ]

'deprecated option' eh??

RE ln:

[root@boole ~]# ls /etc/puppetlabs/mcollective
credentials    discovery-help.erb  metadata-help.erb  server.cfg
data-help.erb  facts.yaml          rpc-help.erb       ssl
[root@boole ~]# ls /etc/mcollective
ls: cannot access /etc/mcollective: No such file ...
(more)
edit retag flag offensive close merge delete

Comments

mco plugin doc agent/service is the correct command, but it's looking in the wrong place for the doc helper ERB file. What does the output of "find /etc /opt -name rpc-help.erb -print" return? This works fine on a PE 3.8 install, so maybe something is misconfigured in PE 2015.

GregLarkin gravatar imageGregLarkin ( 2015-11-02 13:42:16 -0500 )edit

find /etc /opt -name rpc-help.erb -print
/etc/puppetlabs/mcollective/rpc-help.erb

cm01 gravatar imagecm01 ( 2015-11-02 21:56:13 -0500 )edit

Remind me, has this machine been upgraded from one version of Puppet to another? Also, check the rpchelptemplate option in your server.cfg file and update if necessary: https://docs.puppetlabs.com/mcollective/reference/basic/configuration.html#configuration-files

GregLarkin gravatar imageGregLarkin ( 2015-11-03 16:37:54 -0500 )edit

1. upgrade from PE 201502 to PE 2015.2.2
2. that entry isn't in either of the server.cfg or client.cfg files ...
3. ... but the file rpc-help.erb is in the same dir as the .cfg files on both master & client

cm01 gravatar imagecm01 ( 2015-11-03 17:19:12 -0500 )edit

Can you run this command and post the output? sudo -iu peadmin mco plugin doc netserv

GregLarkin gravatar imageGregLarkin ( 2015-11-04 10:47:10 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-11-08 22:05:02 -0500

GregLarkin gravatar image

The short answer is that it seems PE 2015.2.x has a bug where the path /etc/mcollective is used somewhere in the software instead of /etc/puppetlabs/mcollective. I have opened a ticket with Engineering to find out what the problem is. In the meantime, this can be solved by running:

ln -s /etc/puppetlabs/mcollective /etc/mcollective

The rest of the errors reported seem to be system-specific, and there is no plugin named "netserv" in this version of Puppet Enterprise.

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: 2015-10-28 23:19:24 -0500

Seen: 218 times

Last updated: Nov 09 '15