[chef] Re: Re: mongodb-error


Chronological Thread 
  • From: AJ Christensen < >
  • To: Indra k < >
  • Cc: " " < >
  • Subject: [chef] Re: Re: mongodb-error
  • Date: Tue, 30 Sep 2014 21:07:44 +1300

Hit this sucka with the incredible ban-hammer

--fujin

On Tue, Sep 30, 2014 at 8:32 PM, Indra k 
< >
 wrote:
> Hi  all,
>         This is my chef-stacktraceout,eventhough i ve comment a helpers line
> it shows a same error .I need to install mongodb cookbook in  ubuntu  or any
> other linux platform
>
>
>      Generated at 2014-09-30 07:07:23 +0200
> NoMethodError: undefined method `helpers' for Chef::Resource::Template
> /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/resource.rb:282:in
> `method_missing'
> /var/chef-solo/cookbooks/mongodb/definitions/mongodb.rb:147:in `block (2
> levels) in from_file'
> /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/dsl/recipe.rb:71:in
> `instance_eval'
> /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/dsl/recipe.rb:71:in
> `method_missing'
> /var/chef-solo/cookbooks/mongodb/definitions/mongodb.rb:139:in `block in
> from_file'
> /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/dsl/recipe.rb:48:in
> `instance_eval'
> /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/dsl/recipe.rb:48:in
> `method_missing'
> /var/chef-solo/cookbooks/mongodb/recipes/default.rb:39:in `from_file'
> /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/mixin/from_file.rb:30:in
> `instance_eval'
> /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/mixin/from_file.rb:30:in
> `from_file'
> /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/cookbook_version.rb:346:in
> `load_recipe'
> /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context.rb:151:in
> `load_recipe'
> /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context/cookbook_compiler.rb:139:in
> `block in compile_recipes'
> /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context/cookbook_compiler.rb:137:in
> `each'
> /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context/cookbook_compiler.rb:137:in
> `compile_recipes'
> /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context/cookbook_compiler.rb:74:in
> `compile'
> /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_context.rb:86:in
> `load'
> /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/client.rb:224:in
> `setup_run_context'
> /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/client.rb:467:in
> `do_run'
> /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/client.rb:200:in
> `run'
> /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/application.rb:190:in
> `run_chef_client'
> /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/application/solo.rb:239:in
> `block in run_application'
> /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/application/solo.rb:231:in
> `loop'
> /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/application/solo.rb:231:in
> `run_application'
> /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/application.rb:73:in
> `run'
> /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/bin/chef-solo:25:in
> `<top (required)>'
> /usr/bin/chef-solo:23:in `load'
> /usr/bin/chef-solo:23:in `<main>'
>
>
> Thanks  & regards,
>  indra k
>
> ________________________________
> From: Indra k 
> < >
> To: 
> " "
>  
> < >
> Sent: Friday, 26 September 2014 4:48 PM
> Subject: mongodb-error
>
> Hi,
>
>         When installing  mongodb cookbook  in ubuntu ,it shows  "No method
> error  undefined method  helpers for chef::resource::template
>
> 2014-09-26T10:45:34+01:00] INFO: Run List is [recipe[chef_handler],
> recipe[notification_handler], recipe[mongodb]]
> [2014-09-26T10:45:34+01:00] INFO: Run List expands to [chef_handler,
> notification_handler, mongodb]
> [2014-09-26T10:45:34+01:00] INFO: Starting Chef Run for
> 58720dc4-faad-4e64-b713-c4319ffbe78b
> [2014-09-26T10:45:34+01:00] INFO: Running start handlers
> [2014-09-26T10:45:34+01:00] INFO: Start handlers complete.
> [2014-09-26T10:45:34+01:00] INFO: ChefHandler light-weight provider already
> initialized -- overriding!
> [2014-09-26T10:45:34+01:00] INFO: ChefHandler light-weight resource already
> initialized -- overriding!
> [2014-09-26T10:45:34+01:00] INFO: Chef Handlers will be at:
> /var/chef/handlers
> [2014-09-26T10:45:34+01:00] INFO: Processing
> remote_directory[/var/chef/handlers] action create (chef_handler::default
> line 23)
> [2014-09-26T10:45:34+01:00] INFO: remote_directory[/var/chef/handlers]
> created directory /var/chef/handlers
> [2014-09-26T10:45:34+01:00] INFO: remote_directory[/var/chef/handlers] owner
> changed to 0
> [2014-09-26T10:45:34+01:00] INFO: remote_directory[/var/chef/handlers] group
> changed to 0
> [2014-09-26T10:45:34+01:00] INFO: remote_directory[/var/chef/handlers] mode
> changed to 755
> [2014-09-26T10:45:34+01:00] INFO: Processing
> cookbook_file[/var/chef/handlers/README] action create (dynamically defined)
> [2014-09-26T10:45:35+01:00] INFO: cookbook_file[/var/chef/handlers/README]
> mode changed to 644
> [2014-09-26T10:45:35+01:00] INFO: cookbook_file[/var/chef/handlers/README]
> created file /var/chef/handlers/README
> [2014-09-26T10:45:35+01:00] INFO: Processing directory[/var/chef/handlers]
> action create (notification_handler::default line 1)
> [2014-09-26T10:45:35+01:00] INFO: Processing
> cookbook_file[/var/chef/handlers/notification_handler.rb] action create
> (notification_handler::default line 7)
> [2014-09-26T10:45:35+01:00] INFO:
> cookbook_file[/var/chef/handlers/notification_handler.rb] mode changed to
> 755
> [2014-09-26T10:45:35+01:00] INFO:
> cookbook_file[/var/chef/handlers/notification_handler.rb] created file
> /var/chef/handlers/notification_handler.rb
> [2014-09-26T10:45:35+01:00] INFO: Processing
> chef_handler[Chef::Handler::NotificationHandler] action enable
> (notification_handler::default line 17)
> [2014-09-26T10:45:35+01:00] INFO: Enabling
> chef_handler[Chef::Handler::NotificationHandler] as a report handler
> [2014-09-26T10:45:35+01:00] INFO: Enabling
> chef_handler[Chef::Handler::NotificationHandler] as a exception handler
> [2014-09-26T10:45:35+01:00] ERROR: Running exception handlers
> [2014-09-26T10:45:35+01:00] ERROR: Exception handlers complete
> [2014-09-26T10:45:35+01:00] FATAL: Stacktrace dumped to
> /var/chef-solo/cache/chef-stacktrace.out
> [2014-09-26T10:45:35+01:00] FATAL: NoMethodError: undefined method `helpers'
> for Chef::Resource::Template
> ~
>
>
>
>
> Thanks  & regards,
>  indra k
> 29,1          Bot
>
>
>



Archive powered by MHonArc 2.6.16.

§