Skip to content

Instantly share code, notes, and snippets.

@phrawzty
Created June 14, 2011 16:33
Show Gist options
  • Save phrawzty/1025280 to your computer and use it in GitHub Desktop.
Save phrawzty/1025280 to your computer and use it in GitHub Desktop.
how to debug this mcollective error ?
2011-06-14T18:20:49.00000+02:00 [hostname.here] mcollectived[7774]: agents.rb:126:in `dispatch' Execution of test failed: Could not create instance of plugin test_agent: /usr/lib/ruby/1.8/mcollective/rpc/ddl.rb:46:in `initialize': (eval):57:in `initialize': compile error
2011-06-14T18:20:49.00000+02:00 [hostname.here] mcollectived[7774]: agents.rb:127:in `dispatch' /usr/lib/ruby/1.8/mcollective/pluginmanager.rb:69:in `[]'
2011-06-14T18:20:49.92722+02:00 [hostname.here] /usr/lib/ruby/1.8/mcollective/agents.rb: 103:in `timeout'
2011-06-14T18:20:49.92722+02:00 [hostname.here] /usr/lib/ruby/1.8/mcollective/agents.rb: 113:in `dispatch'
2011-06-14T18:20:49.92722+02:00 [hostname.here] /usr/lib/ruby/1.8/mcollective/agents.rb: 111:in `initialize'
2011-06-14T18:20:49.92722+02:00 [hostname.here] /usr/lib/ruby/1.8/mcollective/agents.rb: 111:in `new'
2011-06-14T18:20:49.92722+02:00 [hostname.here] /usr/lib/ruby/1.8/mcollective/agents.rb: 111:in `dispatch'
2011-06-14T18:20:49.92722+02:00 [hostname.here] /usr/lib/ruby/1.8/mcollective/runner.rb: 99:in `agentmsg'
2011-06-14T18:20:49.92722+02:00 [hostname.here] /usr/lib/ruby/1.8/mcollective/runner.rb: 79:in `run'
2011-06-14T18:20:49.92804+02:00 [hostname.here] /usr/lib/ruby/1.8/mcollective/runner.rb: 57:in `loop'
2011-06-14T18:20:49.92804+02:00 [hostname.here] /usr/lib/ruby/1.8/mcollective/runner.rb: 57:in `run'
2011-06-14T18:20:49.92804+02:00 [hostname.here] /usr/sbin/mcollectived: 49
2011-06-14T18:20:49.92804+02:00 [hostname.here] /usr/lib/ruby/1.8/mcollective/runner.rb: 41:in `daemonize'
2011-06-14T18:20:49.92804+02:00 [hostname.here] /usr/lib/ruby/1.8/mcollective/runner.rb: 33:in `fork'
2011-06-14T18:20:49.92804+02:00 [hostname.here] /usr/lib/ruby/1.8/mcollective/runner.rb: 33:in `daemonize'
2011-06-14T18:20:49.92804+02:00 [hostname.here] /usr/sbin/mcollectived: 40
metadata :name => 'Brass Monkey',
:description => 'Deploy packages. Unleash the Brass Monkey.',
:author => '[email protected]',
:license => 'other',
:version => '1.2',
:url => 'none',
:timeout => 30
action buildgem, :description => 'Build a Gem project' do
input :name,
:prompt => 'Project name',
:description => 'Name of the Gem project',
:type => :string,
:optional => false
input :repo_dir,
:prompt => 'Repo dir',
:description => 'Directory containing the Git repo',
:type => :string,
:optional => false
### it goes on, but it's just the same things over and over...
module MCollective
module Agent
class Test<RPC::Agent
metadata :name => 'Brass Monkey',
:description => 'Deploy packages. Unleash the Brass Monkey.',
:author => '[email protected]',
:license => 'other',
:version => '1.2',
:url => 'none',
:timeout => 30
action 'buildgem' do
buildgem
end
### that worked BEFORE i tried to implement the .ddl goes here....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment