[SERVER-38247] WiredTiger.turtle has no required permission, access denied. Created: 26/Nov/18  Updated: 28/Nov/18  Resolved: 28/Nov/18

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 4.0.4
Fix Version/s: None

Type: Question Priority: Major - P3
Reporter: John Lemon [X] Assignee: Danny Hatcher (Inactive)
Resolution: Done Votes: 0
Labels: WiredTiger, mongodb
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu 16.04


Attachments: JPEG File 78945321.JPG    
Participants:

 Description   

I can't start my mongodb, because WiredTiger.turtle has no required permission. I tried to give full permission to this file, but after starting mongodb the file's permissions reset and error repeats. Just for check I deleted this file, but file appears itself again.



 Comments   
Comment by Danny Hatcher (Inactive) [ 28/Nov/18 ]

Hello John,

Do you still have problems if you follow our documentation on installing MongoDB on Ubuntu?

From your responses, I do not see anything to indicate a bug in the MongoDB server. If you still have issues, for MongoDB-related support discussion please post on the mongodb-user group or Stack Overflow with the mongodb tag. A question like this involving more discussion would be best posted on the mongodb-user group.

See also our Technical Support page for additional support resources.

Thank you,

Danny

Comment by John Lemon [X] [ 28/Nov/18 ]

@Daniel Hatcher

 

Hello Daniel,

 

Now I have other issue. I find out that inside mongod.service file were written some unusual script which does not let run mongodb properly. So I removed completely mongodb except var/lib/mongodb and reinstall it again. But my mongod.service file does not appear again. In the result the mongodb can't work as service on my ubuntu server. The server says there is no mongod or mongodb service to start.

 

markovs@smart-ubuntu:~$ sudo service mongod start
mongod: unrecognized service
markovs@smart-ubuntu:~$ sudo service mongodb start
mongodb: unrecognized service
markovs@smart-ubuntu:~$  

Comment by Danny Hatcher (Inactive) [ 27/Nov/18 ]

Hello John,

Can you confirm that the user running the mongod has the appropriate file permissions? It needs the ability to read, write, and execute on the dbpath.

id -un #for current user
id -gn #for current group
ls -la /var/lib/mongodb #for file permissions on dbpath

If the user has all the appropriate permissions, can you please confirm what filesystem you are using? The startup warning mentions that you are not using the recommended XFS.

Thank you,

Danny

Comment by John Lemon [X] [ 27/Nov/18 ]

@daniel.hatcher  

Hello Daniel

Here it is 

 

or text version:

 

 

2018-11-26T20:20:44.484+0600 I CONTROL [main] ***** SERVER RESTARTED *****
2018-11-26T20:20:44.499+0600 I CONTROL [initandlisten] MongoDB starting : pid=16155 port=27017 dbpath=/var/lib/mongodb 64-bit host=smart-ubuntu
2018-11-26T20:20:44.499+0600 I CONTROL [initandlisten] db version v4.0.4
2018-11-26T20:20:44.499+0600 I CONTROL [initandlisten] git version: f288a3bdf201007f3693c58e140056adf8b04839
2018-11-26T20:20:44.499+0600 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.2g 1 Mar 2016
2018-11-26T20:20:44.499+0600 I CONTROL [initandlisten] allocator: tcmalloc
2018-11-26T20:20:44.499+0600 I CONTROL [initandlisten] modules: none
2018-11-26T20:20:44.499+0600 I CONTROL [initandlisten] build environment:
2018-11-26T20:20:44.499+0600 I CONTROL [initandlisten] distmod: ubuntu1604
2018-11-26T20:20:44.499+0600 I CONTROL [initandlisten] distarch: x86_64
2018-11-26T20:20:44.499+0600 I CONTROL [initandlisten] target_arch: x86_64
2018-11-26T20:20:44.499+0600 I CONTROL [initandlisten] options: { config: "/etc/mongod.conf", net: { bindIp: "127.0.0.1", port: 27017 }, processManagement: { timeZoneInfo: "/usr/share/zoneinfo" }, storage: { dbPath: "/var/lib/mongodb", journal: { enabled: true } }, systemLog: { destination: "file", logAppend: true, path: "/var/log/mongodb/mongod.log" } }
2018-11-26T20:20:44.499+0600 I STORAGE [initandlisten] Detected data files in /var/lib/mongodb created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
2018-11-26T20:20:44.499+0600 I STORAGE [initandlisten] 
2018-11-26T20:20:44.499+0600 I STORAGE [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine
2018-11-26T20:20:44.499+0600 I STORAGE [initandlisten] ** See http://dochub.mongodb.org/core/prodnotes-filesystem
2018-11-26T20:20:44.499+0600 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=3479M,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),statistics_log=(wait=0),verbose=(recovery_progress),
2018-11-26T20:20:45.290+0600 E STORAGE [initandlisten] WiredTiger error (13) [1543242045:290915][16155:0x7f246bc10a40], wiredtiger_open: __posix_open_file, 715: /var/lib/mongodb/WiredTiger.turtle: handle-open: open: Permission denied Raw: [1543242045:290915][16155:0x7f246bc10a40], wiredtiger_open: __posix_open_file, 715: /var/lib/mongodb/WiredTiger.turtle: handle-open: open: Permission denied
2018-11-26T20:20:45.291+0600 E STORAGE [initandlisten] WiredTiger error (13) [1543242045:291151][16155:0x7f246bc10a40], wiredtiger_open: __posix_open_file, 715: /var/lib/mongodb/WiredTiger.turtle: handle-open: open: Permission denied Raw: [1543242045:291151][16155:0x7f246bc10a40], wiredtiger_open: __posix_open_file, 715: /var/lib/mongodb/WiredTiger.turtle: handle-open: open: Permission denied
2018-11-26T20:20:45.291+0600 E STORAGE [initandlisten] WiredTiger error (13) [1543242045:291305][16155:0x7f246bc10a40], wiredtiger_open: __posix_open_file, 715: /var/lib/mongodb/WiredTiger.turtle: handle-open: open: Permission denied Raw: [1543242045:291305][16155:0x7f246bc10a40], wiredtiger_open: __posix_open_file, 715: /var/lib/mongodb/WiredTiger.turtle: handle-open: open: Permission denied
2018-11-26T20:20:45.291+0600 W STORAGE [initandlisten] Failed to start up WiredTiger under any compatibility version.
2018-11-26T20:20:45.291+0600 F STORAGE [initandlisten] Reason: 13: Permission denied
2018-11-26T20:20:45.291+0600 F - [initandlisten] Fatal Assertion 28595 at src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp 646
2018-11-26T20:20:45.291+0600 F - [initandlisten]
***aborting after fassert() failure

 

Comment by Danny Hatcher (Inactive) [ 26/Nov/18 ]

Hello John,

Please provide the full error that MongoDB presents when you attempt to start the process with the WiredTiger.turtle intact.

Thank you,

Danny

Generated at Thu Feb 08 04:48:23 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.