M~ above Aug 21 20:46:44 exemption in initAndListen: 10309 can not come create/open up lock file: /data/db/mongod.lock errno:13 Permissitop top denied Is a mongod instance currently running?, terminatingyet ns access civil liberties must be solved by now:

blah:~$ls -hal /data/db/total 8.0Kdrwxr-xr-x 2 mongodb mongodb 4.0K Auns 21 19:56 .drwxr-xr-x 3 mongodb mongodb 4.0K Auns 21 19:56 ..and:

blah:~$lns -hal /data/drwxr-xr-x 2 mongodb mongodb 4.0K Aug 21 19:56 dbtherefore why can"t mongodb open/develop the lock file?


native ns Concern description it shows up friend to be to run mongod indigenous her very own accounting (user: makan).

your invocation the mongod without specifying a configuration Documents or --dbpath would certainly call for this user come have read/create perobjectives because that ns default dbpath magazine (/data/db). Due to the fact that /data/db ins just writmay be through user mongodb, a permission error is expected once mongod tries to create a document running with ns permissions of makan:

lock file: /data/db/mongod.lock errno:13 Permission denied Ins a mongod circumstances already running?, terminating

the normal means come start/speak mongod ins utilizing the business definition, i m sorry runs as the user and team mongodb using sucarry out organization mongod start.

You are watching: Attempted to create a lock file on a read-only directory: /data/db, terminating

the company supplies a construction Documents (/etc/mongod.conf) and a data magazine (/var/lib/mongodb) which should already have ns correct perobjectives after installation.

enhance thins prize
reply Auns 31 "17 in ~ 12:55

61077 silver badges1212 bronze badges
include a commenns |

your price

thanks because that contributinns an answer to ask Ubuntu!

you"re welcome be sure come prize ns question. Administer details and also share her research!

but avoid

questioning for help, clarification, or respondinns to other answers.Makinns statements based on opinion; back them up through recommendations or personal experience.

come Learn more, see ours tips top top composing great answers.

See more: Bank Of America Horarios De Atención, Bank Of America En Español 1

draft saved
breeze discarded

authorize uns or log in

sign uns making use of Google
authorize uns using FacePublication
sign uns using email and also Password

article together a guest

email Required, however never before shown

write-up as a guest


Required, yet never before shown

article her answer Dismap

by click “short article your Answer”, girlfriend agree come our regards to service, privacy policy and also cookie policy

not the prize you're lookinns for? browse various other questions tagged perobjectives mongodb or ask her own question.

ns Overflow Blog in
Featured top top Meta
installation that MongoDB using Softwarecenter failure
can not come install in mongodb
unable to develop lock Documents as soon as founding mongod by means of upstart
can not come install mongodb
unable to install mongodb indigenous mongodb repons
unable come connect to mongoDB obtaining error
unable come affix mongodb
Cannot open up MongoDB Compass in Ubuntu 18.10
hot Netjob-related inquiries even more hot questions

Inquiry feeding
subscribe come RSs
Concern feeding to subscribe come this RSs feed, copy and paste this URtogether right into her RSs reader.

asking Ubuntu
ridge Exadjust Netjob-related
website design / logo design © 2021 ridge Exadjust Inc; user contributions a license is granted under cc by-sa. Rev2021.9.17.40238

Ubuntu and also Canonical to be registered trademarkns the Canonical Ltd.
questioning Ubuntu functions finest with Javascript enabled

her privacy

through clicking “accept all cookies”, girlfriend agree ridge Exadjust deserve to save cookies top top her device and also disclose information in accordance through ours Cookin other words Policy.