gpt4 book ai didi

由于 WiredTiger.turtle 权限,Mongodb 无法启动

转载 作者:行者123 更新时间:2023-12-03 16:40:16 25 4
gpt4 key购买 nike

我正在尝试在 ubuntu 16.04 上启动 mongodb 4.0.4,但数据库拒绝了我的所有尝试。我检查了 mongodb 日志文件,发现名为 WiredTiger.turtle 的文件没有所需的权限。这里记录错误:

2018-11-26T15:14:32.438+0600 E STORAGE  [initandlisten] WiredTiger error (13) [1543223672:438144][32673:0x7fee423e3a40], wiredtiger_open: __posix_open_file, 715: /var/lib/mongodb/WiredTiger.turtle: handle-open: open: Permission denied Raw: [1543223672:438144][32673:0x7fee423e3a40], wiredtiger_open: __posix_open_file, 715: /var/lib/mongodb/WiredTiger.turtle: handle-open: open: Permission denied
2018-11-26T15:14:32.438+0600 E STORAGE [initandlisten] WiredTiger error (13) [1543223672:438429][32673:0x7fee423e3a40], wiredtiger_open: __posix_open_file, 715: /var/lib/mongodb/WiredTiger.turtle: handle-open: open: Permission denied Raw: [1543223672:438429][32673:0x7fee423e3a40], wiredtiger_open: __posix_open_file, 715: /var/lib/mongodb/WiredTiger.turtle: handle-open: open: Permission denied
2018-11-26T15:14:32.438+0600 E STORAGE [initandlisten] WiredTiger error (13) [1543223672:438594][32673:0x7fee423e3a40], wiredtiger_open: __posix_open_file, 715: /var/lib/mongodb/WiredTiger.turtle: handle-open: open: Permission denied Raw: [1543223672:438594][32673:0x7fee423e3a40], wiredtiger_open: __posix_open_file, 715: /var/lib/mongodb/WiredTiger.turtle: handle-open: open: Permission denied
2018-11-26T15:14:32.438+0600 W STORAGE [initandlisten] Failed to start up WiredTiger under any compatibility version.
2018-11-26T15:14:32.438+0600 F STORAGE [initandlisten] Reason: 13: Permission denied
2018-11-26T15:14:32.438+0600 F - [initandlisten] Fatal Assertion 28595 at src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp 646
2018-11-26T15:14:32.438+0600 F - [initandlisten]

***aborting after fassert() failure

我为/var/lib/mongodb/中的所有文件授予了所有权限。但是当我启动 mongodb WiredTiger.turtle 文件的权限时。只是为了检查我删除了这个文件,但文件再次出现并且错误重复。

最佳答案

与 WiredTiger.turtle 权限相同的问题。 Ubuntu 18.04
我的问题是我用 sudo 启动了一个 mongod 服务。这在我的数据库目录中创建了具有 root:root 所有权的文件。在没有 sudo 的情况下启动 mongod 服务时,我收到了权限被拒绝的错误。
解决方案是将 db 目录中所有文件的所有权改回 mongodb:mongodb
$ sudo chown -R mongodb:mongodb /var/lib/mongodb/*

关于由于 WiredTiger.turtle 权限,Mongodb 无法启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53478123/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com