Something about DataStage, DataStage Administration, Job Designing,Developing, DataStage troubleshooting, DataStage Installation & Configuration, ETL, DataWareHousing, DB2, Teradata, Oracle and Scripting.
Showing posts with label MongoDB. Show all posts
Showing posts with label MongoDB. Show all posts
Friday, June 05, 2015
Thursday, June 04, 2015
Error - mongod shell doesn't start, /data/db doesn't exsist
Error - mongod shell doesn't start, /data/db doesn't exsist
If you face this error while starting MongoDB (mongod), most probably there are 2 reasons for this -
a. /data/db is not exist at all
b. mongod process don't have access on /data/db
Solution :-
The default db path for mongodb is /data/db/.
So when you run:
Wednesday, June 03, 2015
MongoDB Configuration in Linux
1. Create a folder
named 'learn' ( or whatever you want to give )
$ mkdir -p /learn/mongodb /app/dbMongo
#
/learn/mongodb = Holds the MongoDB
source
2. Extract the Mongo DB zip file in /learn folder
$ tar -xvf
MongoDB.tar /learn/mongodb
3. change the permission of folder to user who run the db here- In my case User - atul and Group - atul
$ chown -R atul:atul /learn/mongodb /app/dbMongo
Monday, March 23, 2015
MongoDB is unable to start due to lock file
While starting MongoDB server, You are facing that MongoDB is not getting up with a exception says -
Sun Jan 18 12:27:03.884 [initandlisten] exception in initAndListen: 10310 Unable to lock file: /data/db/mongod.lock. Is a mongod instance already running?, terminating
Sun Jan 18 12:27:03.884 dbexit:
Normally, we are facing this issue due to 1. improper MongoDB server shutdown or 2. someone else is started the mongo server. In the second case, we dont have any issue, we can connect to out db without issue.
Sun Jan 18 12:27:03.884 [initandlisten] exception in initAndListen: 10310 Unable to lock file: /data/db/mongod.lock. Is a mongod instance already running?, terminating
Sun Jan 18 12:27:03.884 dbexit:
Normally, we are facing this issue due to 1. improper MongoDB server shutdown or 2. someone else is started the mongo server. In the second case, we dont have any issue, we can connect to out db without issue.
Subscribe to:
Posts
(
Atom
)

