Error Dbpath /data/db/ Does Not Exist
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might error dbpath ( data db ) does not exist. windows have Meta Discuss the workings and policies of this site error: insufficient free space for journal files About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting
Chown Id U
ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7
Couldn't Remove Fs Lock Errno:9 Bad File Descriptor
million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up How to resolve error :dbpath (/data/db/) does not exist permanently in MongoDB up vote 39 down vote favorite 14 I have installed mongodb in my Ubuntu 10.04. I know that when it comes to start the mongodb server failed to unlink socket file /tmp/mongodb-27017.sock errno:13 permission denied with the command "mongod",then it expects /data/db folder and it can be easily resolved by creating "/data/db/". One more way is to provide your own path using mongod --dbpath "path",when we intend to give our own custom path for db. But while going through http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/ link i found that there is a configuration file. I made the following changes to it. # mongodb.conf dbpath=/EBS/Work/mongodb/data/db/ logpath=/EBS/Work/mongodb/mongodb.log logappend=true But still when I try to start the server with "mongod" it throws the same error i.e error :dbpath (/data/db/) does not exist . I wanted to know that how can I permanently redirect my dbpath to my own custom folder cause everytime you don't want to type the path using "mongod --dbpath path".Rather we look to make some changes in configuration file. mongodb share|improve this question asked Sep 13 '12 at 6:44 Abhinav 67231126 add a comment| 4 Answers 4 active oldest votes up vote 53 down vote accepted Assuming you have followed the instr
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any
How To Uninstall Mongodb In Ubuntu
questions you might have Meta Discuss the workings and policies failed to unlink socket file /tmp/mongodb-27017.sock errno:1 operation not permitted of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring unit mongod service failed to load no such file or directory developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu http://stackoverflow.com/questions/12400808/how-to-resolve-error-dbpath-data-db-does-not-exist-permanently-in-mongodb users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top ERROR: dbpath does not exist up vote 2 down vote favorite I set dbpath in mongodb config file: #dbpath=/var/lib/mongodb http://askubuntu.com/questions/359244/error-dbpath-does-not-exist dbpath=~/data/db Then try start mongodb but got error: ERROR: dbpath (~/data/db) does not exist. Allthough I can check existance of ~/data/db easy: # cd ~/data/db user@server:~/data/db# pwd /root/data/db When I run it... # mongod --dbpath ~/data/db ... got output: Tue Oct 15 05:05:49.040 [initandlisten] MongoDB starting : pid=3786 port=27017 dbpath=/root/data/db 64-bit host=callzone2 Tue Oct 15 05:05:49.040 [initandlisten] db version v2.4.6 Tue Oct 15 05:05:49.040 [initandlisten] git version: b9925db5eac369d77a3a5f5d98a145eaaacd9673 Tue Oct 15 05:05:49.041 [initandlisten] build info: Linux ip-10-2-29-40 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_49 Tue Oct 15 05:05:49.041 [initandlisten] allocator: tcmalloc Tue Oct 15 05:05:49.041 [initandlisten] options: { dbpath: "/root/data/db" } Tue Oct 15 05:05:49.044 [initandlisten] exception in initAndListen std::exception: locale::facet::_S_create_c_locale name not valid, terminating Tue Oct 15 05:05:49.044 dbexit: Tue Oct 15 05:05:49.044 [initandlisten] shutdown: going to close listening sockets... Tue Oct 15 05:05:49.044 [initandlisten] shutdown: going to flush diaglog... Tue Oct 15 05:05:49.044 [initandlisten] shutdown: going to close sockets... Tue Oct 15 05:05:49.044 [ini
PHP I personally use Arch Linux, sometimes I switch to my Mac mini. Last time, when I tried to get Mongo https://log.axcoto.com/article/1051 up and run on my mac in a quick and dirty way I got this error: [code] mongod -help for help and startup options Mon Aug 20 16:03:51 [initandlisten] http://grokbase.com/t/gg/mongodb-user/151k9q908w/mongodb-first-time-user-trying-to-run MongoDB starting : pid=15416 port=27017 dbpath=/data/db/ 64-bit host=loho Mon Aug 20 16:03:51 [initandlisten] db version v2.0.6, pdfile version 4.5 Mon Aug 20 16:03:51 [initandlisten] git version: e1c0cbc25863f6356aa4e31375add7bb49fb05bc Mon Aug failed to 20 16:03:51 [initandlisten] build info: Darwin erh2.10gen.cc 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386 BOOST_LIB_VERSION=1_40 Mon Aug 20 16:03:51 [initandlisten] options: {} Mon Aug 20 16:03:51 [initandlisten] exception in initAndListen: 10296 dbpath (/data/db/) does not exist, terminating Mon Aug 20 16:03:51 dbexit: Mon Aug 20 16:03:51 [initandlisten] shutdown: going to close listening does not exist sockets… Mon Aug 20 16:03:51 [initandlisten] shutdown: going to flush diaglog… Mon Aug 20 16:03:51 [initandlisten] shutdown: going to close sockets… Mon Aug 20 16:03:51 [initandlisten] shutdown: waiting for fs preallocator… Mon Aug 20 16:03:51 [initandlisten] shutdown: lock for final commit… Mon Aug 20 16:03:51 [initandlisten] shutdown: final commit… Mon Aug 20 16:03:51 [initandlisten] shutdown: closing all files… Mon Aug 20 16:03:51 [initandlisten] closeAllFiles() finished Mon Aug 20 16:03:51 dbexit: really exiting now [/code] I guess the instruction is missing some extra steps to create db or maybe I missed something myself. I am not much familiar with Mac. I guess I can change the dbpath parameter but since I want to get it in a quick and dirty way I just run these command: [code] sudo mkdir -p /data/db sudo chown `whoami` /data/db [/code] And then run, mongod afterward to start the mongo daemon. Everything is just fine and you can run mongo client now. Also read... Wifi stops to work on Arch Linux Secret Paypal - Sell your downloadable product in
first time user's install issues?Any help would be greatly appreciated.*1) I run 'mongod' and I get the following:**********************************************************************ERROR: dbpath (/data/db) does not exist.Create this directory or give existing directory in --dbpath.See http://dochub.mongodb.org/core/startingandstoppingmongo*********************************************************************, terminating*2) Where do I go to set this? I look into /etc/mongod.conf and see thefollowing line: (how should I change this?)*dbpath=/var/lib/mongodb*3) When I attempt to run mong I get the following:*2015-01-19T01:02:38.625-0700 warning: Failed to connect to 127.0.0.1:27017,reason: errno:111 Connection refused2015-01-19T01:02:38.625-0700 Error: couldn't connect to server127.0.0.1:27017 (127.0.0.1), connection attempt failed atsrc/mongo/shell/mongo.js:146exception: connect failed*4) Also, I am not running on 127.0.0.1 so do I also change/set this fromthe mongod.conf file or set this elsewhere?*--You received this message because you are subscribed to the Google Groups "mongodb-user"group.For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.---You received this message because you are subscribed to the Google Groups "mongodb-user" group.To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user+unsubscribe@googlegroups.com.To post to this group, send email to mongodb-user@googlegroups.com.Visit this group at http://groups.google.com/group/mongodb-user.To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/9eaa4d15-950d-4d50-8754-c408019e823e%40googlegroups.com.For more options, visit https://groups.google.com/d/optout. reply Tweet Search Discussions Search All Groups MongoDB mongodb-user 1 response Oldest Nested Константин Кошеляев Try '-f /etc/mongodb.conf' as mongod to use config file. That will solve 1 (not using cfg), 2 (not using cfg) and 3 (can't connect to not running mongo). 4. Change 'bind_ip = 0.0.0.0' to whatever you need. 127.0.0.1 is a loopback and you will connect to default mongo running on the same server. Tip. If you installed mongo from system package you should have init script or systemd service. Start mongo by 'service mongod start' or 'systemctl start mongod.service'. -- You received this message Константин Кошеляев at Jan 20