Skip to content

Instantly share code, notes, and snippets.

@mediocretes
Created March 13, 2012 21:29
Show Gist options
  • Save mediocretes/2031750 to your computer and use it in GitHub Desktop.
Save mediocretes/2031750 to your computer and use it in GitHub Desktop.
josefrichter: guys, getting this error when trying to start mongodb on mac exception in initAndListen: 10296 dbpath (/data/db/) does not exist, terminating
[9:17pm] nodokodo joined the chat room.
[9:18pm] josefrichter: any hints please? I'm not good at low level stuff
[9:18pm] mediocretes: well, does the dbpath (/data/db) exist?
[9:19pm] ascarter left the chat room. (Quit: Computer has gone to sleep.)
[9:19pm] linsys: yes do this mkdir -p /data/db
[9:19pm] linsys: chown -R mongodb:mongodb /data/db
[9:19pm] linsys: or chown -R mongod:mongod /data/db
[9:19pm] mediocretes: or put it somewhere else, if you're not comfortable with that
[9:20pm] nofxx left the chat room. (Read error: Connection reset by peer)
[9:20pm] nofxx joined the chat room.
[9:21pm] cloke_ joined the chat room.
[9:21pm] josefrichter: linsys where should I be to run those commands, please?
[9:21pm] robo_ left the chat room. (Read error: Connection reset by peer)
[9:21pm] ascarter joined the chat room.
[9:22pm] josefrichter: mediocretes I don't know tbh
[9:22pm] fr0zen left the chat room. (Remote host closed the connection)
[9:22pm] ascarter left the chat room. (Client Quit)
[9:22pm] linsys: as root
[9:22pm] linsys: you can run them from anywhere
[9:22pm] linsys: but make sure you are root
[9:23pm] zircote left the chat room. (Remote host closed the connection)
[9:24pm] ascarter joined the chat room.
[9:24pm] cloke left the chat room. (Ping timeout: 260 seconds)
[9:24pm] cloke_ is now known as cloke.
[9:25pm] mediocretes: this is going to end badly
[9:26pm] jkoppe left the chat room.
[9:26pm] josefrichter: linsys chown fails with "invalid argument" error
[9:27pm] linsys: hmm your on a mac
[9:27pm] linsys: sorry
[9:27pm] linsys: once u make the directory try and start mongo
[9:28pm] linsys: and see if that fixes it, i bet your going to get some permission error
[9:28pm] linsys: damn macs
[9:28pm] josefrichter: linsys exception in initAndListen: 10309 Unable to create/open lock file: /data/db/mongod.lock errno:13 Permission denied Is a mongod instance already running?, terminating
[9:28pm] linsys: do this
[9:28pm] linsys: grep mongo /etc/passwd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment