2017-08-16 89 views
0

我們的mongodb服務器在過去兩個月內運行時沒有任何錯誤。突然它墜毀在下面的是日誌。mongodb崩潰,權限被拒絕錯誤

2017-08-11T13:41:41.320+0100 E STORAGE [thread1] WiredTiger (13) [1502455301:320924][1281:0x7f11bce8e700], log-server: /var/lib/mongo/journal: opendir: Permission denied 
2017-08-11T13:41:41.320+0100 E STORAGE [thread1] WiredTiger (13) [1502455301:320991][1281:0x7f11bce8e700], log-server: dirlist journal prefix WiredTigerPreplog: Permission denied 
2017-08-11T13:41:41.321+0100 E STORAGE [thread1] WiredTiger (13) [1502455301:321013][1281:0x7f11bce8e700], log-server: log pre-alloc server error: Permission denied 
2017-08-11T13:41:41.321+0100 E STORAGE [thread1] WiredTiger (13) [1502455301:321021][1281:0x7f11bce8e700], log-server: log server error: Permission denied 
2017-08-11T13:41:42.000+0100 I -  [ftdc] Assertion: 13538:couldn't open [/proc/1281/stat] errno:13 Permission denied 
2017-08-11T13:41:42.000+0100 W FTDC  [ftdc] Uncaught exception in 'Location13538 couldn't open [/proc/1281/stat] errno:13 Permission denied' in full-time diagnostic data capture subsystem. Shutting down the full-time diagnostic data capture subsystem. 
2017-08-11T13:41:50.006+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:45196 #205521 (23 connections now open) 
2017-08-11T13:41:50.006+0100 I NETWORK [conn205521] end connection 127.0.0.1:45196 (22 connections now open) 
2017-08-11T13:42:36.004+0100 E STORAGE [thread2] WiredTiger (13) [1502455356:4361][1281:0x7f11bb68b700], file:WiredTiger.wt, WT_SESSION.checkpoint: WiredTiger.turtle: fstat: Permission denied 
2017-08-11T13:42:36.004+0100 E STORAGE [thread2] WiredTiger (13) [1502455356:4466][1281:0x7f11bb68b700], checkpoint-server: checkpoint server error: Permission denied 
2017-08-11T13:42:36.004+0100 E STORAGE [thread2] WiredTiger (-31804) [1502455356:4480][1281:0x7f11bb68b700], checkpoint-server: the process must exit and restart: WT_PANIC: WiredTiger library panic 
2017-08-11T13:42:36.004+0100 I -  [thread2] Fatal Assertion 28558 
2017-08-11T13:42:36.004+0100 I -  [thread2] 

***aborting after fassert() failure 

請問誰能告訴我它爲什麼墜毀。我們正在運行mongodb 3.2版。

+0

https://docs.mongodb.com/manual/reference/ulimit/#recommended-settings – sidgate

回答

-1

的/ var/lib中/蒙戈/日誌:執行opendir:權限被拒絕

的mongos進程沒有權限打開它的日誌文件這樣的過程中出現錯誤並退出。

+0

hi kailniris,tks爲您的答案。我應該怎麼做以避免將來出現這種錯誤。注意:mongodb在重啓後運行。我們沒有做任何事情,除了重新啓動 – sureshsgpm

+0

你確定嗎?是不是更新了mongodb或更改了任何權限組或更新了主機操作系統?無論如何,你應該使用這樣的東西 sudo chown -R mongodb:mongodb/var/lib/mongodb – kailniris

+0

在這種情況下,你能告訴我在運行過程中如何進入文件權限被更改。因爲它運行了兩個月沒有任何問題。 – sureshsgpm