Advertisement
Guest User

Untitled

a guest
Jan 1st, 2013
1,288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. $ mongo
  2. Error: couldn't connect to server 127.0.0.1:27017 src/mongo/shell/mongo.js:91
  3. exception: connect failed
  4.  
  5. $ service mongodb status
  6. mongodb stop/waiting
  7.  
  8. $ service mongodb restart
  9. stop: Unknown instance:
  10. start: Rejected send message, 1 matched rules; type="method_call",
  11. sender=":1.57" (uid=1000 pid=2227 comm="start mongodb ")
  12. interface="com.ubuntu.Upstart0_6.Job" member="Start" error name="(unset)"
  13. requested_reply="0"
  14. destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init")
  15.  
  16. $ tail /var/log/mongodb/mongodb.log
  17. [initandlisten] exception in initAndListen: 12596 old lock file, terminating
  18. dbexit:
  19. [initandlisten] shutdown: going to close listening sockets...
  20. [initandlisten] shutdown: going to flush diaglog...
  21. [initandlisten] shutdown: going to close sockets...
  22. [initandlisten] shutdown: waiting for fs preallocator...
  23. [initandlisten] shutdown: closing all files...
  24. [initandlisten] closeAllFiles() finished
  25. dbexit: really exiting now
  26.  
  27. sudo -u mongodb mongod --repair --dbpath /var/lib/mongodb/
  28. sudo service mongodb start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement