[chef] Re: Chef-solo Redmine is not working


Chronological Thread 
  • From: Venkatesh Ainalli < >
  • To:
  • Subject: [chef] Re: Chef-solo Redmine is not working
  • Date: Fri, 27 Jun 2014 17:39:53 +0530

REDMINE on CentOS getting following error.

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Apache Server at 10.10.3.101 Port 80



roles]$ sudo chef-solo -j redmine-kpuME-Role.json -ldebug
[sudo] password for itapp:
[2014-06-27T04:32:30-07:00] WARN: *****************************************
[2014-06-27T04:32:30-07:00] WARN: Did not find config file: /etc/chef/solo.rb, using command line options.
[2014-06-27T04:32:30-07:00] WARN: *****************************************
[2014-06-27T04:32:30-07:00] INFO: Forking chef instance to converge...
[2014-06-27T04:32:30-07:00] DEBUG: Fork successful. Waiting for new chef pid: 19910
[2014-06-27T04:32:30-07:00] DEBUG: Forked instance now converging
[2014-06-27T04:32:30-07:00] WARN:
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
SSL validation of HTTPS requests is disabled. HTTPS connections are still
encrypted, but chef is not able to detect forged replies or man in the middle
attacks.

To fix this issue add an entry like this to your configuration file:

```
  # Verify all HTTPS connections (recommended)
  ssl_verify_mode :verify_peer

  # OR, Verify only connections to chef-server
  verify_api_cert true
```

To check your SSL configuration, or troubleshoot errors, you can use the
`knife ssl check` command like so:

```
  knife ssl check -c /etc/chef/solo.rb
```

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Starting Chef Client, version 11.12.8
[2014-06-27T04:32:30-07:00] INFO: *** Chef 11.12.8 ***
[2014-06-27T04:32:30-07:00] INFO: Chef-client pid: 19910
[2014-06-27T04:32:30-07:00] DEBUG: Chef-client request_id: f3ff98cb-dbd8-4f5b-a813-d41ca18400d0
[2014-06-27T04:32:33-07:00] DEBUG: Building node object for a01admin792
[2014-06-27T04:32:33-07:00] DEBUG: Extracting run list from JSON attributes provided on command line
[2014-06-27T04:32:33-07:00] DEBUG: Re-raising exception: NoMethodError - undefined method `delete' for role[redmine-kpuME-Role]:Chef::Role
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/node.rb:330:in `consume_run_list'
  /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/node.rb:307:in `consume_attributes'
  /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/node.rb:295:in `consume_external_attrs'
  /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/policy_builder/expand_node_object.rb:118:in `build_node'
  /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/client.rb:259:in `build_node'
  /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/client.rb:420:in `do_run'
  /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/client.rb:213:in `block in run'
  /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/client.rb:207:in `fork'
  /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/client.rb:207:in `run'
  /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/application.rb:217:in `run_chef_client'
  /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/application/solo.rb:221:in `block in run_application'
  /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/application/solo.rb:213:in `loop'
  /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/application/solo.rb:213:in `run_application'
  /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/application.rb:67:in `run'
  /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/bin/chef-solo:25:in `<top (required)>'
  /usr/bin/chef-solo:23:in `load'
  /usr/bin/chef-solo:23:in `<main>'
[2014-06-27T04:32:33-07:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2014-06-27T04:32:33-07:00] DEBUG: NoMethodError: undefined method `delete' for role[redmine-kpuME-Role]:Chef::Role
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/node.rb:330:in `consume_run_list'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/node.rb:307:in `consume_attributes'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/node.rb:295:in `consume_external_attrs'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/policy_builder/expand_node_object.rb:118:in `build_node'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/client.rb:259:in `build_node'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/client.rb:420:in `do_run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/client.rb:213:in `block in run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/client.rb:207:in `fork'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/client.rb:207:in `run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/application.rb:217:in `run_chef_client'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/application/solo.rb:221:in `block in run_application'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/application/solo.rb:213:in `loop'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/application/solo.rb:213:in `run_application'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/application.rb:67:in `run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/bin/chef-solo:25:in `<top (required)>'
/usr/bin/chef-solo:23:in `load'
/usr/bin/chef-solo:23:in `<main>'
Chef Client failed. 0 resources updated in 2.850488342 seconds
[2014-06-27T04:32:33-07:00] ERROR: undefined method `delete' for role[redmine-kpuME-Role]:Chef::Role
[2014-06-27T04:32:33-07:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)




On Fri, Jun 27, 2014 at 2:37 PM, < " target="_blank"> > wrote:
REDMINE on aws is not working getting following error despite loading all the
dependencies

[2014-06-27T08:12:32+00:00] DEBUG: Loading cookbook apache2's definitions from
/var/chef/cookbooks/apache2/definitions/apache_site.rb
[2014-06-27T08:12:32+00:00] DEBUG: Loading cookbook apache2's definitions from
/var/chef/cookbooks/apache2/definitions/web_app.rb
[2014-06-27T08:12:32+00:00] DEBUG: Loading Recipe redmine via include_recipe
[2014-06-27T08:12:32+00:00] DEBUG: Found recipe default in cookbook redmine
[2014-06-27T08:12:32+00:00] DEBUG: Loading Recipe redmine::source via
include_recipe
[2014-06-27T08:12:32+00:00] DEBUG: Found recipe source in cookbook redmine
[2014-06-27T08:12:32+00:00] DEBUG: Loading Recipe yum::epel via include_recipe

================================================================================
Recipe Compile Error
================================================================================


Chef::Exceptions::RecipeNotFound
--------------------------------
could not find recipe epel for cookbook yum


[2014-06-27T08:12:32+00:00] DEBUG: Re-raising exception:
Chef::Exceptions::RecipeNotFound - could not find recipe epel for cookbook yum
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/cookbook_version.rb:226:in
`load_recipe'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/run_context.rb:165:in
`load_recipe'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/run_context.rb:134:in
`block in include_recipe'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/run_context.rb:133:in
`each'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/run_context.rb:133:in
`include_recipe'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/dsl/include_recipe.rb:26:in
`include_recipe'
  /var/chef/cookbooks/redmine/recipes/source.rb:29:in `from_file'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/mixin/from_file.rb:30:in
`instance_eval'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/mixin/from_file.rb:30:in
`from_file'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/cookbook_version.rb:237:in
`load_recipe'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/run_context.rb:165:in
`load_recipe'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/run_context.rb:134:in
`block in include_recipe'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/run_context.rb:133:in
`each'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/run_context.rb:133:in
`include_recipe'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/dsl/include_recipe.rb:26:in
`include_recipe'
  /var/chef/cookbooks/redmine/recipes/default.rb:23:in `from_file'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/mixin/from_file.rb:30:in
`instance_eval'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/mixin/from_file.rb:30:in
`from_file'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/cookbook_version.rb:237:in
`load_recipe'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/run_context.rb:165:in
`load_recipe'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/run_context/cookbook_compiler.rb:140:in
`block in compile_recipes'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/run_context/cookbook_compiler.rb:138:in
`each'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/run_context/cookbook_compiler.rb:138:in
`compile_recipes'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/run_context/cookbook_compiler.rb:75:in
`compile'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/run_context.rb:88:in
`load'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/policy_builder/expand_node_object.rb:73:in
`setup_run_context'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/client.rb:265:in
`setup_run_context'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/client.rb:429:in
`do_run'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/client.rb:213:in
`block in run'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/client.rb:207:in
`fork'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/client.rb:207:in
`run'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/application.rb:217:in
`run_chef_client'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/application/solo.rb:221:in
`block in run_application'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/application/solo.rb:213:in
`loop'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/application/solo.rb:213:in
`run_application'

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/lib/chef/application.rb:67:in
`run'
  /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.8/bin/chef-solo:25:in
`<top (required)>'
  /usr/bin/chef-solo:23:in `load'
  /usr/bin/chef-solo:23:in `<main>'

Running handlers:
[2014-06-27T08:12:32+00:00] ERROR: Running exception handlers
Running handlers complete




Archive powered by MHonArc 2.6.16.

§