MongoDB Service not starting

(Tafsir) #1

Hi All,

MongoDB service is not starting. Here is the mongod.log

2019-01-21T02:54:09.823-0800 I CONTROL  [main] ***** SERVER RESTARTED *****
2019-01-21T02:54:09.829-0800 I CONTROL  [initandlisten] MongoDB starting : pid=6700 port=27017 dbpath=/var/lib/mongo 64-bit
2019-01-21T02:54:09.829-0800 I CONTROL  [initandlisten] db version v3.2.22
2019-01-21T02:54:09.829-0800 I CONTROL  [initandlisten] git version: 105acca0d443f9a47c1a5bd608fd7133840a58dd
2019-01-21T02:54:09.829-0800 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.0.1e-fips 11 Feb 2013
2019-01-21T02:54:09.829-0800 I CONTROL  [initandlisten] allocator: tcmalloc
2019-01-21T02:54:09.829-0800 I CONTROL  [initandlisten] modules: none
2019-01-21T02:54:09.829-0800 I CONTROL  [initandlisten] build environment:
2019-01-21T02:54:09.829-0800 I CONTROL  [initandlisten]     distmod: rhel70
2019-01-21T02:54:09.829-0800 I CONTROL  [initandlisten]     distarch: x86_64
2019-01-21T02:54:09.829-0800 I CONTROL  [initandlisten]     target_arch: x86_64
2019-01-21T02:54:09.829-0800 I CONTROL  [initandlisten] options: { config: "/etc/mongod.conf", net: { bindIp: "", port: 27017 }, processManagement: { fork: true, pidFilePath: "/var/run/mongodb/" }, storage: { dbPath: "/var/lib/mongo", journal: { enabled: true } }, systemLog: { destination: "file", logAppend: true, path: "/var/log/mongodb/mongod.log" } }
2019-01-21T02:54:09.849-0800 I -        [initandlisten] Detected data files in /var/lib/mongo created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
2019-01-21T02:54:09.849-0800 W -        [initandlisten] Detected unclean shutdown - /var/lib/mongo/mongod.lock is not empty.
2019-01-21T02:54:09.849-0800 W STORAGE  [initandlisten] Recovering data from the last clean checkpoint.
2019-01-21T02:54:09.849-0800 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=4G,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0),verbose=(recovery_progress),
2019-01-21T02:54:09.855-0800 E STORAGE  [initandlisten] WiredTiger (13) [1548068049:855924][6700:0x7efd0d264dc0], file:WiredTiger.wt, connection: /var/lib/mongo/WiredTiger.turtle: handle-open: open: Permission denied
2019-01-21T02:54:09.856-0800 I -        [initandlisten] Assertion: 28595:13: Permission denied
2019-01-21T02:54:09.856-0800 I STORAGE  [initandlisten] exception in initAndListen: 28595 13: Permission denied, terminating
2019-01-21T02:54:09.856-0800 I CONTROL  [initandlisten] dbexit:  rc: 100

Graylog version - 2.4.6
Elasticsearch Version - 5.6

Quick reply will be appreciated.



Give another try yourselves.
Check your log again. expressly your warning and error lines.
If you see the problems, please ask my best friend, he knows what you need to do.

After 3 minutes with google I find a lot of possible solutions for your problem. Please learn, as I did.

(Tess) #3

Also, perhaps you are better served with the MongoDB forums:

I can heartily recommend the MongoU online courses! M001 and M103 are a great start for those making their first steps with MongoDB.


I think 5 min with google faster then ask a question in a forum.

(Jan Doberstein) #5

I think reading the error message would be the fastest solution ^^

(Ben van Staveren) #6

exception in initAndListen: 28595 13: Permission denied, terminating

And there’s your problem. Mongo can’t write to it’s storage path. Fix left up for the end user.

(Tess) #7

Oh for sure…

But I always / often assume that people actually want to learn and understand the products they’re working with, which is why I suggested that OP @Tafsir_Alam check out the online MongoDB trainings.

Working with Graylog is what originally made me check out MongoU. In the mean time I’ve finished at least four of their courses and I’m considering their basic DB admin cert :slight_smile:


are you sure?
I think it can’t listen on port. eg. it is in use.

(Ben van Staveren) #9

Yes I’m sure :wink: Because:

2019-01-21T02:54:09.855-0800 E STORAGE [initandlisten] WiredTiger (13) [1548068049:855924][6700:0x7efd0d264dc0], file:WiredTiger.wt, connection: /var/lib/mongo/WiredTiger.turtle: handle-open: open: Permission denied

WiredTiger is the storage engine - part of the whole init part of initAndListen :wink:


thanks, I missed this part.

(Ben van Staveren) #11

Not a problem. Mongo isn’t always exactly clear on what’s going on :smiley:

(system) closed #12

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.