linux - Cannot start mongodb service -
i tried start mongodb service root user , fails on error cannot open file j._8, checked permissions well. working fine before.
couldn't open /data/mongodb/mongodb/data/journal/j._8 errno:13 permission denied assertion: 13544:recover error couldn't open /data/mongodb/mongodb/data/journal/j._8 0xaf8c41 0xabedb9 0xabef3c 0x7400a2 0x740305 0x740828 0x740a82 0x72c8ef 0x55ca94 0x55d6cd 0x5641ae 0x565789 0x7f1bd649f76d 0x557c59 /usr/bin/mongod(_zn5mongo15printstacktraceerso+0x21) [0xaf8c41] /usr/bin/mongod(_zn5mongo11msgassertedeipkc+0x99) [0xabedb9] /usr/bin/mongod() [0xabef3c] /usr/bin/mongod(_zn5mongo3dur11recoveryjob11processfileen5boost11filesystem210basic_pathissns3_11path_traitseee+0x292) [0x7400a2] /usr/bin/mongod(_zn5mongo3dur11recoveryjob2goerst6vectorin5boost11filesystem210basic_pathissns4_11path_traitseeesais7_ee+0xc5) [0x740305] /usr/bin/mongod(_zn5mongo3dur8_recoverev+0x1a8) [0x740828] /usr/bin/mongod(_zn5mongo3dur7recoverev+0x22) [0x740a82] /usr/bin/mongod(_zn5mongo3dur7startupev+0x7f) [0x72c8ef] /usr/bin/mongod(_zn5mongo14_initandlistenei+0x434) [0x55ca94] /usr/bin/mongod(_zn5mongo13initandlistenei+0x1d) [0x55d6cd] /usr/bin/mongod() [0x5641ae] /usr/bin/mongod(main+0x9) [0x565789] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7f1bd649f76d] /usr/bin/mongod(__gxx_personality_v0+0x469) [0x557c59] dbexception during recovery: 13544 recover error couldn't open /data/mongodb/mongodb/data/journal/j._8 exception in initandlisten: 13544 recover error couldn't open /data/mongodb/data/journal/j._8, terminating dbexit: shutdown: going close listening sockets... shutdown: going flush diaglog... shutdown: going close sockets... shutdown: waiting fs preallocator... shutdown: lock final commit... shutdown: final commit... shutdown: closing files... closeallfiles() finished shutdown: removing fs lock... dbexit: exiting
this journal folder.
root@mongo-0:/data/mongodb/mongodb/data/journal# ls -lah total 1.7g drwxr-xr-x 2 mongodb mongodb 4.0k jun 9 23:56 . drwxrwx--- 3 mongodb mongodb 4.0k jun 13 00:29 .. -rw------- 1 mongodb mongodb 1.1g jun 9 23:56 j._7 -rw------- 1 mongodb mongodb 695m jun 13 00:22 j._8 -rw------- 1 mongodb mongodb 88 jun 13 00:22 lsn
i cannot open file j._8 cat or less root. please fix this.
thanks in advance
chmod -r 777 /data/db
solved issue me.
Comments
Post a Comment