Comments (5)
Is there any more to the error output other than just the message you posted above?
from motherbrain.
This is the full output with the option -v
[2014-05-14T07:58:13Z] PID[4667] TID[oxvzwh2ss] INFO: motherbrain starting...
[2014-05-14T07:58:14Z] PID[4667] TID[oxvzwxays] INFO: Host ConnectorSupervisor pool starting with size: 25
Loading logstash-cookbook plugin from: /Users/cedric/Documents/motherbrain
using logstash-cookbook (0.1.7)
[2014-05-14T07:58:16Z] PID[4667] TID[oxvzydjlk] INFO: Job (d6ceae55-1952-410d-853d-000000170000) running:
[2014-05-14T07:58:16Z] PID[4667] TID[oxvzydjlk] INFO: Job (d6ceae55-1952-410d-853d-000000170000) status: Searching for environment
[2014-05-14T07:58:16Z] PID[4667] TID[oxvzydjlk] INFO: Job (d6ceae55-1952-410d-853d-000000170000) status: Starting bootstrap of nodes on: logstash
[2014-05-14T07:58:16Z] PID[4667] TID[oxw07yrgc] INFO: Locking chef_environment:logstash
[2014-05-14T07:58:16Z] PID[4667] TID[oxvzydjlk] INFO: Job (d6ceae55-1952-410d-853d-000000170000) status: Locking chef_environment:logstash
[2014-05-14T07:58:17Z] PID[4667] TID[oxvzydjlk] INFO: Job (d6ceae55-1952-410d-853d-000000170000) status: Setting cookbook versions
[2014-05-14T07:58:20Z] PID[4667] TID[oxw07yrgc] INFO: Setting cookbook versions {"ant"=>"= 1.0.2", "apt"=>"= 2.3.10", "ark"=>"= 0.8.2", "build-essential"=>"= 2.0.0", "chef_handler"=>"= 1.1.6", "dmg"=>"= 2.2.0", "elasticsearch"=>"= 0.3.8", "erlang"=>"= 1.5.4", "git"=>"= 4.0.2", "java"=>"= 1.22.0", "logrotate"=>"= 1.5.0", "logstash"=>"= 0.8.1", "logstash-cookbook"=>"= 0.1.7", "monit"=>"= 0.7.1", "python"=>"= 1.4.6", "rabbitmq"=>"= 3.2.0", "runit"=>"= 1.5.10", "windows"=>"= 1.30.2", "xml"=>"= 1.2.4", "yum"=>"= 3.2.0", "yum-epel"=>"= 0.3.6", "yum-erlang_solutions"=>"= 0.2.0"}
[2014-05-14T07:58:21Z] PID[4667] TID[oxvzydjlk] INFO: Job (d6ceae55-1952-410d-853d-000000170000) status: Unlocking chef_environment:logstash
[2014-05-14T07:58:22Z] PID[4667] TID[oxvzydjlk] FATAL: Job (d6ceae55-1952-410d-853d-000000170000) failure: undefined method `match' for nil:NilClass
This is the application.log
[2014-05-14T07:58:12Z] PID[4667] TID[oxvzwh2ss] WARN: Error loading mysql gear: cannot load such file -- mysql2
[2014-05-14T07:59:17Z] PID[4786] TID[ouj4mump4] WARN: Error loading mysql gear: cannot load such file -- mysql2
[2014-05-14T07:59:19Z] PID[4786] TID[ouj4mump4] ANY:
[2014-05-14T07:59:19Z] PID[4786] TID[ouj4mump4] ANY:
[2014-05-14T07:59:19Z] PID[4786] TID[ouj4mump4] ANY: logstash-cookbook bootstrap bootstrap.json -e logstash
[2014-05-14T07:59:19Z] PID[4786] TID[ouj4mump4] ANY:
[2014-05-14T07:59:25Z] PID[4786] TID[ouj4x3yf8] FATAL: Job (0eced69b-0611-4aa1-8aed-000000160000) failure: undefined method `match' for nil:NilClass
from motherbrain.
Sorry for the run around. Can you run with -d
to get debug output? I believe we will get a stack trace if you do so.
from motherbrain.
No problem! Here is the debug output where it fails:
[2014-05-20T06:48:50Z] PID[821] TID[owbxefpl0] DEBUG: request env: #<struct Faraday::Env method=:delete, body="{\"name\":\"data_bag_item__motherbrain_locks__chef_environment-acalogstash\",\"json_class\":\"Chef::DataBagItem\",\"chef_type\":\"data_bag_item\",\"data_bag\":\"_motherbrain_locks_\",\"raw_data\":{\"id\":\"chef_environment-acalogstash\",\"type\":\"chef_environment\",\"name\":\"ACAlogstash\",\"client_name\":\"cedric_vandewalle\",\"process_id\":821,\"time\":\"2014-05-20 08:48:44 +0200\"}}", url=#<Addressable::URI:0x3fe2176803d8 URI:https://<chef url>/data/_motherbrain_locks_/chef_environment-acalogstash>, request=#<Faraday::RequestOptions (empty)>, request_headers={"Accept"=>"application/json", "Content-Type"=>"application/json", "X-Chef-Version"=>"11.4.0", "User-Agent"=>"Ridley v3.1.0", "X-OPS-SIGN"=>"algorithm=sha1;version=1.0;", "X-OPS-USERID"=>"cedric_vandewalle", "X-OPS-TIMESTAMP"=>"2014-05-20T06:48:49Z", "X-OPS-CONTENT-HASH"=>"2jmj7l5rSw0yVb/vlWAYkK/YBwk=", "X-OPS-AUTHORIZATION-1"=>"DfrUUVugA1YEOfs1BWLLTa3NTIHYVgPVinVpKJbqX7XGmjNyd7igITtnVPc4", "X-OPS-AUTHORIZATION-2"=>"Gl13JUi9yPqjC57p0q7ggbOl5dT2Y6PacflbFLw86FI4P+C5XuDqfG+PPCs1", "X-OPS-AUTHORIZATION-3"=>"XDCvCmRL8rKg+TSDTHGqn0LTPSMEPJgExbiiyvDhu4mzNm6skRLNANqWCdwq", "X-OPS-AUTHORIZATION-4"=>"f8+HKMWdC4CB2ZMix9HDDYDd4NWAr4a6BOhxtm3OFxLWZ0JkG6fmZU66gxpW", "X-OPS-AUTHORIZATION-5"=>"rbf6yBszEkldbMxUFSQxsAukf4QTmDzcbMUPduUnQCokWzZhDp7O7LAYzpAI", "X-OPS-AUTHORIZATION-6"=>"N+SCxHI9tFSecPICyyOMK42OCwcGDqtXWiyDQrcCnQ==", "HOST"=>”<chef url>”}, ssl=#<Faraday::SSLOptions verify=true>, parallel_manager=nil, params=nil, response=nil, response_headers={"server"=>"nginx/1.2.3", "date"=>"Tue, 20 May 2014 06:48:49 GMT", "content-type"=>"application/json", "transfer-encoding"=>"chunked", "connection"=>"keep-alive", "x-ops-api-info"=>"flavor=osc;version=11.0.2;erchef=1.2.6"}, status=200>
[2014-05-20T06:48:50Z] PID[821] TID[owbxefpl0] DEBUG: ==> parsing Chef response body as JSON
[2014-05-20T06:48:50Z] PID[821] TID[owbxx3ez0] FATAL: Job (cfc98702-0e3a-4704-8e2c-000000160000) failure: undefined method `match' for nil:NilClass
[2014-05-20T06:48:50Z] PID[821] TID[owbxx3ez0] DEBUG: job (cfc98702-0e3a-4704-8e2c-000000160000) transitioning to 'failure'
[2014-05-20T06:48:50Z] PID[821] TID[owbxd37r0] DEBUG: Config Manager stopping...
[2014-05-20T06:48:50Z] PID[821] TID[owbxeqjg0] DEBUG: Upgrade Manager stopping...
[2014-05-20T06:48:50Z] PID[821] TID[owbxem1yo] DEBUG: Provision Manager stopping...
[2014-05-20T06:48:50Z] PID[821] TID[owbxf43jo] DEBUG: Bootstrap Manager stopping...
[2014-05-20T06:48:50Z] PID[821] TID[owbxe1a8c] DEBUG: Job Manager stopping...
[2014-05-20T06:48:50Z] PID[821] TID[owbxe4rk0] DEBUG: Lock Manager stopping...
[2014-05-20T06:48:50Z] PID[821] TID[owbxeit0o] DEBUG: Command Invoker stopping...
[2014-05-20T06:48:50Z] PID[821] TID[owbxdvwo0] DEBUG: Plugin Manager stopping...
[2014-05-20T06:48:50Z] PID[821] TID[owbxxzi40] DEBUG: Node Querier stopping...
[2014-05-20T06:48:50Z] PID[821] TID[owbxy177g] DEBUG: Environment Manager stopping...
from motherbrain.
I've done a tcp dump, and this is what chef returns:
_motherbrain_locks_(1):{"error":["Cannot load data bag _motherbrain_locks_"]}
The data bag is created, but it's empty.
from motherbrain.
Related Issues (20)
- If the chef client key configured in mb is incorrect, purge, disable, enable will hang HOT 1
- Lock cookbook versions based on Berksfile.lock HOT 17
- Authentication errors cause #node_name to return nil
- Upgrade should support a max concurrent nodes option HOT 1
- Upgrade should respect the stack_order HOT 2
- Add documentation for gears HOT 1
- Broken tests from #672
- Support ssh gateway HOT 2
- When a file in the config file is not found, mb can hang. HOT 1
- Squiggles and Berkshelf Beta dependency on mb 1.1.1 HOT 4
- Issues running init... HOT 1
- mb do not modify run_list on chef server HOT 2
- mb is not registering the node in chef HOT 3
- When finding nodes, we should bail on nodes without a proper hostname HOT 2
- MB API jobs endpoint broken HOT 4
- No connector ports open HOT 2
- Pin buff-config version to >= 1.0.0 HOT 3
- uninitialized constant in environments_endpoint.rb HOT 1
- unable to parse aws response
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from motherbrain.