Skip to content

Instantly share code, notes, and snippets.

View nickstewart-zz's full-sized avatar

Nicholas Stewart nickstewart-zz

View GitHub Profile
Mongo::OperationFailure: E11000 duplicate key error index:
myapp_development.properties.$guid_1 dup key: { : 1708107 }
from /Users/nick/.rvm/gems/ruby-1.9.2-head/gems/mongo-0.20.1/lib/mongo/connection.rb:370:in `send_message_with_safe_check'
from /Users/nick/.rvm/gems/ruby-1.9.2-head/gems/mongo-0.20.1/lib/mongo/collection.rb:655:in `insert_documents'
from /Users/nick/.rvm/gems/ruby-1.9.2-head/gems/mongo-0.20.1/lib/mongo/collection.rb:235:in `insert'
from /Users/nick/.rvm/gems/ruby-1.9.2-head/gems/mongoid-2.0.0.beta2/lib/mongoid/collections/mimic.rb:38:in `block (3 levels) in proxy'
from /Users/nick/.rvm/gems/ruby-1.9.2-head/gems/mongoid-2.0.0.beta2/lib/mongoid/collections/mimic.rb:22:in `call'
from /Users/nick/.rvm/gems/ruby-1.9.2-head/gems/mongoid-2.0.0.beta2/lib/mongoid/collections/mimic.rb:22:in `attempt'
from /Users/nick/.rvm/gems/ruby-1.9.2-head/gems/mongoid-2.0.0.beta2/lib/mongoid/collections/mimic.rb:39:in `block (2 levels) in proxy'
from /Users/nick/.rvm/gems/ruby-1.9.2-head/gems/mongoid-2.0
defaults: &defaults
host: localhost
slaves:
- host: slave1.local
port: 27018
- host: slave2.local
port: 27019
development:
<<: *defaults
Wed Apr 21 13:24:12 Mongo DB : starting : pid = 2126 port = 27017 dbpath = /var/lib/mongodb/ master = 0 slave = 0 64-bit
warning: built with boost version <= 1.34, limited concurrency
Wed Apr 21 13:24:12 User Exception 10310:Unable to acquire lock for dbpath: /var/lib/mongodb/mongod.lock
Wed Apr 21 13:24:12 exception in initAndListen std::exception: Unable to acquire lock for dbpath: /var/lib/mongodb/mongod.lock, terminating
Wed Apr 21 13:24:12 dbexit:
Wed Apr 21 13:24:12 shutdown: going to close listening sockets...
Wed Apr 21 13:24:12 shutdown: going to flush oplog...
Wed Apr 21 13:24:12 shutdown: going to close sockets...
Wed Apr 21 13:24:12 shutdown: waiting for fs preallocator...