Unable to change the dbpath in mongodb through mongodb.conf

I am getting the following message
exception in initAndListen std::exception: boost::filesystem::exists: Permission denied: "/vol/mongodb", terminating

in /var/log/mongodb/mongodb.log

ls -al /vol/mongodb gives -
drwxrwxrwx 2 mongodb mongodb 4096 2011-08-07 12:10 ./

When I change the dbpath, back to the default, which is /var/lib/mongodb - it works fine.

How do I solve this?

-------------Problems Reply------------

I had the same problem initially and found it was caused by the mongodb user not having appropriate permissions on the parent directory.

I'd recommend checking /vol to ensure that the mongodb user can at least read files from that directory. May also need execute permissions too, and I suspect this will hold for each subsequent parent directory up to root.

Category:exception Views:0 Time:2011-08-07

Related post

  • Django + MongoDB using mongodb-engine gives multipleobjectreturned 2011-07-09

    when i access localhost:8000/admin gives me the error 'MultipleObjectsReturned at /admin/ get() returned more than one Session -- it returned 2! Lookup parameters were {'session_key': 'ee5a8be487352e42a89f962ee4ab22a6', 'expire_date__gt': datetime.da

  • Why am I unable to find a record by _id in mongodb 2011-07-29

    I am trying to find a record in mongoDB by it's MongoID "_id" field. I have found examples on how to do it, but can not get it to work. Example: $recID = "010101010101011"; //would be a valid mongodb _id $recID = new MongoId((string)$recID); // I hav

  • Unable to display celery tasks in djcelery admin (mongodb back end) 2012-01-23

    my environment is composed of django, celery and mongodb as a back end. I managed to create a periodic tasks using djcelery admin interface and after starting celerybeat I can see it runs. This task is simple: it just makes an addition of 2 integers

  • Properly Abstract OId in MongoDB with MongoDB-CSharp 2010-08-20

    I'm trying to use MongoDB with my POCOs. Using mongodb-csharp library (http://github.com/samus/mongodb-csharp), I've got everything working, but I have to have my Ids set to OIds which requires me to reference the mongodb-csharp library from within m

  • NodeJS + MongoDB - Starting mongodb server instance installed from npm 2012-01-09

    I'm running node.js on OSX and have just installed mongodb using command npm install mongodb under myapp/node_modules directory. According to mongodb official documenation, to start a mongodb you just have to execute ./mongodb/bin/mongo on the comman

  • Nodejs, MongoDB (node-mongodb-native). FindAndModify finds doc, but doesn't update it 2013-06-14

    I'm trying to use findAndModify operation to find and update doc. Query: {'socket_id': data.socket_id, 'weapons.type': selectedWeapon, 'battleWeapons.type':selectedWeapon} Update: {'$inc':{'weapons.$.nums':-1, 'battleWeapons.$.nums':-1}} I got Doc in

  • Cannot restart mongodb on Ubuntu 11.04 2012-04-09

    I have installed mongodb and when i typing the following command i am getting these messages [email protected]:~# service mongodb status mongodb stop/waiting [email protected]:~# service mongodb restart restart: Unknown instance: [email protected]:~# service mongodb stop

  • How to install mongoDB on windows? 2010-03-08

    I am trying to test out mongoDB and see if it is anything for me. I downloaded the 32bit windows version, but have no idea on how to continue from now on. I normally use the WAMP services for developing on my local computer. Can i run mongoDB on Wamp

  • How to run MongoDB as windows service? 2010-03-13

    How to setup MongoDB so it can run as windows service? Thanks --------------Solutions------------- I think if you run it with the --install command line switch, it installs it as a Windows Service. mongod --install It might be worth reading this thre

  • MongoDB as a cache for frequent joins and queries from MySQL 2010-10-24

    Im thinking about doing the following and need suggestions if it makes sense to approach it this way. Basically since I am able to do queries in MongoDB and MongoDb is wicked fast at these since the hotspots of the data are cached in memory. I was th

  • mongodb: - is not a valid Win32 application 2011-02-08

    When i try to install mongodb as a windows service using the following command: c:\wamp\bin\mongodb\bin>mongod --bind_ip 127.0.0.1 --logpath c:\wamp\bin\mongodb \logs --logappend --dbpath c:\wamp\bin\mongodb\data --directoryperdb --install it says

  • MongoDB only works when run as root on Ubuntu - data directory issue 2011-03-14

    I installed MongoDB with the official packages (mongodb-stable), and followed the Quickstart guide which includes: By default MongoDB will store data in /data/db, but it won't automatically create that directory. To create it, do: $ sudo mkdir -p /da

  • Does MongoDB have a shell history file? 2011-04-22

    Does MongoDB have something like a .bash_history file? I recently typed in a long command, closed & re-opened the shell, and want to retrieve it. Pressing up doesn't work as it seems that the history of the last shell is not accessible in the new

  • Changing MongoDB data store directory 2011-05-11

    Until now I have not been specifying a MongoDB data directory and have had only one 30 GB primary partition. I just ran out of space and added a new hard disk. How can I transfer my data (that is apparently in /var/lib/mongodb/) and configure MongoDB

  • can't start mongodb as sudo 2011-07-25

    mongodb is returning errors related to access files when trying to start: [email protected]:~# sudo service mongodb start mongodb start/running, process 4118 [email protected]:~# Mon Jul 25 17:03:54 [initandlisten] MongoDB starting : pid=4118 port=27017 dbpath

  • Trying to setup Mongodb on Debian 2011-10-03

    I am trying to setup the database client MongoDB and am running into some problems getting it to startup. What I have done: I downloaded the 2.0 version of mongoDB from http://fastdl.mongodb.org/linux/mongodb-linux-i686-2.0.0.tgz I extracted it (tar

  • Mongodb replica set polluted logs and arbiter in "initial startup" 2012-03-15

    I'm running a replica set on with MongoBD v.2.0.3, here is the latest status: +-----------------------------------------------------------------------------------------------------------------------+ | Member |id|Up| cctime |Last heartbeat|Votes|Prio

  • MongoDB Cursor Timeout on Update 2014-01-07

    I'm currently writing a PHP script to compile data from a number of different CSVs and import the combined document into Mongo. During this process, I'm running into an error with my cursor timing out during an update. Seen here (with included var_du

  • How to solve "The ChannelDispatcher is unable to open its IChannelListener" error? 2009-08-10

    I'm trying to communicate between WCF hosted in Windows Service and my service GUI. The problem is when I'm trying to execute OperationContract method I'm getting "The ChannelDispatcher at 'net.tcp://localhost:7771/MyService' with contract(s) '"ICont

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.150 (s). 11 q(s)