[MongoDB 4.0] Issue with MongoDB system hosted on local Windows machine

948 views
Skip to first unread message

casperc...@gmail.com

unread,
Dec 4, 2018, 4:20:58 PM12/4/18
to mongodb-user
I am trying to write documents to a database on a Windows 10 system that's 
connected to the same network. After hundreds of writes, the service dies
due to errors related to permissions or access. Has anyone else experienced
this issue, and if so, come up with a solution?

I append the relevant part of the mongod.log file that indicates the error:


2018-11-27T19:29:47.184-0800 I NETWORK  [conn9] end connection 192.168.15.80:60929 (1 connection now open)
2018-11-27T19:29:47.185-0800 I NETWORK  [listener] connection accepted from 192.168.15.80:61914 #10 (2 connections now open)
2018-11-27T19:51:18.357-0800 E STORAGE  [WTCheckpointThread] WiredTiger error (13) [1543377078:350813][9016:140712376024144], file:WiredTiger.wt, WT_SESSION.checkpoint: __win_fs_rename, 105: C:\Program Files\MongoDB\Server\4.0\data\WiredTiger.turtle.set to C:\Program Files\MongoDB\Server\4.0\data\WiredTiger.turtle: file-rename: MoveFileExW: Access is denied.


: Permission denied Raw: [1543377078:350813][9016:140712376024144], file:WiredTiger.wt, WT_SESSION.checkpoint: __win_fs_rename, 105: C:\Program Files\MongoDB\Server\4.0\data\WiredTiger.turtle.set to C:\Program Files\MongoDB\Server\4.0\data\WiredTiger.turtle: file-rename: MoveFileExW: Access is denied.


: Permission denied
2018-11-27T19:51:18.357-0800 E STORAGE  [WTCheckpointThread] WiredTiger error (13) [1543377078:356797][9016:140712376024144], file:WiredTiger.wt, WT_SESSION.checkpoint: __wt_turtle_update, 397: WiredTiger.turtle: fatal turtle file update error: Permission denied Raw: [1543377078:356797][9016:140712376024144], file:WiredTiger.wt, WT_SESSION.checkpoint: __wt_turtle_update, 397: WiredTiger.turtle: fatal turtle file update error: Permission denied
2018-11-27T19:51:18.357-0800 E STORAGE  [WTCheckpointThread] WiredTiger error (-31804) [1543377078:357768][9016:140712376024144], file:WiredTiger.wt, WT_SESSION.checkpoint: __wt_panic, 523: the process must exit and restart: WT_PANIC: WiredTiger library panic Raw: [1543377078:357768][9016:140712376024144], file:WiredTiger.wt, WT_SESSION.checkpoint: __wt_panic, 523: the process must exit and restart: WT_PANIC: WiredTiger library panic
2018-11-27T19:51:18.364-0800 F -        [WTCheckpointThread] Fatal Assertion 50853 at src\mongo\db\storage\wiredtiger\wiredtiger_util.cpp 409
2018-11-27T19:51:18.364-0800 F -        [WTCheckpointThread]


***aborting after fassert() failure




2018-11-27T19:51:18.410-0800 F -        [WTJournalFlusher] Fatal Assertion 28559 at src\mongo\db\storage\wiredtiger\wiredtiger_util.cpp 65
2018-11-27T19:51:18.410-0800 F -        [WTJournalFlusher]


***aborting after fassert() failure




2018-11-27T19:52:18.704-0800 I CONTROL  [main] ***** SERVER RESTARTED *****
2018-11-27T19:52:18.996-0800 I CONTROL  [main] Trying to start Windows service 'MongoDB'
2018-11-27T19:52:18.997-0800 I CONTROL  [initandlisten] MongoDB starting : pid=23468 port=27017 dbpath=C:\Program Files\MongoDB\Server\4.0\data 64-bit host=ForemanStation
2018-11-27T19:52:18.997-0800 I CONTROL  [initandlisten] targetMinOS: Windows 7/Windows Server 2008 R2
2018-11-27T19:52:18.997-0800 I CONTROL  [initandlisten] db version v4.0.4
2018-11-27T19:52:18.997-0800 I CONTROL  [initandlisten] git version: f288a3bdf201007f3693c58e140056adf8b04839
2018-11-27T19:52:18.997-0800 I CONTROL  [initandlisten] allocator: tcmalloc
2018-11-27T19:52:18.997-0800 I CONTROL  [initandlisten] modules: none
2018-11-27T19:52:18.997-0800 I CONTROL  [initandlisten] build environment:
2018-11-27T19:52:18.997-0800 I CONTROL  [initandlisten]     distmod: 2008plus-ssl
2018-11-27T19:52:18.997-0800 I CONTROL  [initandlisten]     distarch: x86_64
2018-11-27T19:52:18.997-0800 I CONTROL  [initandlisten]     target_arch: x86_64
2018-11-27T19:52:18.997-0800 I CONTROL  [initandlisten] options: { config: "C:\Program Files\MongoDB\Server\4.0\bin\mongod.cfg", net: { bindIp: "0.0.0.0", port: 27017 }, service: true, storage: { dbPath: "C:\Program Files\MongoDB\Server\4.0\data", journal: { enabled: true } }, systemLog: { destination: "file", logAppend: true, path: "C:\Program Files\MongoDB\Server\4.0\log\mongod.log" } }
2018-11-27T19:52:18.998-0800 W STORAGE  [initandlisten] Detected unclean shutdown - C:\Program Files\MongoDB\Server\4.0\data\mongod.lock is not empty.
2018-11-27T19:52:18.998-0800 I STORAGE  [initandlisten] Detected data files in C:\Program Files\MongoDB\Server\4.0\data created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
2018-11-27T19:52:18.998-0800 W STORAGE  [initandlisten] Recovering data from the last clean checkpoint.
2018-11-27T19:52:18.999-0800 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=3529M,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-27T19:52:19.251-0800 I STORAGE  [initandlisten] WiredTiger message [1543377139:251131][23468:140712376024144], txn-recover: Main recovery loop: starting at 10/25940480 to 11/256
2018-11-27T19:52:19.252-0800 I STORAGE  [initandlisten] WiredTiger message [1543377139:252128][23468:140712376024144], txn-recover: Recovering log 10 through 11
2018-11-27T19:52:19.331-0800 I STORAGE  [initandlisten] WiredTiger message [1543377139:331916][23468:140712376024144], file:index-16--7548407363742995707.wt, txn-recover: Recovering log 11 through 11
2018-11-27T19:52:19.384-0800 I STORAGE  [initandlisten] WiredTiger message [1543377139:383777][23468:140712376024144], file:index-16--7548407363742995707.wt, txn-recover: Set global recovery timestamp: 0
2018-11-27T19:52:19.653-0800 I RECOVERY [initandlisten] WiredTiger recoveryTimestamp. Ts: Timestamp(0, 0)
2018-11-27T19:52:19.979-0800 I CONTROL  [initandlisten]
2018-11-27T19:52:19.979-0800 I CONTROL  [initandlisten] ** WARNING: Access control is not enabled for the database.
2018-11-27T19:52:19.979-0800 I CONTROL  [initandlisten] **          Read and write access to data and configuration is unrestricted.
2018-11-27T19:52:19.979-0800 I CONTROL  [initandlisten]
2018-11-27T19:52:20.324-0800 I FTDC     [initandlisten] Initializing full-time diagnostic data capture with directory 'C:/Program Files/MongoDB/Server/4.0/data/diagnostic.data'
2018-11-27T19:52:20.332-0800 I NETWORK  [initandlisten] waiting for connections on port 27017
2018-11-27T19:52:20.332-0800 I STORAGE  [initandlisten] Service running
2018-11-27T19:52:20.731-0800 I NETWORK  [listener] connection accepted from 192.168.15.80:62628 #1 (1 connection now open)

casperc...@gmail.com

unread,
Dec 5, 2018, 8:41:17 PM12/5/18
to mongodb-user
Any guidance on this? Anyone experience an issue similar to this?

For more background, I'm using this library for writing from LabView.

Wan Bachtiar

unread,
Dec 18, 2018, 11:36:33 PM12/18/18
to mongodb-user

Has anyone else experienced this issue, and if so, come up with a solution?

Hi,

Based on the log that you posted:

2018-11-27T19:51:18.357-0800 E STORAGE  [WTCheckpointThread] WiredTiger error (13) [1543377078:356797][9016:140712376024144], file:WiredTiger.wt, WT_SESSION.checkpoint: __wt_turtle_update, 397: WiredTiger.turtle: fatal turtle file update error: Permission denied Raw: [1543377078:356797][9016:140712376024144], file:WiredTiger.wt, WT_SESSION.checkpoint: __wt_turtle_update, 397: WiredTiger.turtle: fatal turtle file update error: Permission denied

The line above indicates that the WiredTiger checkpoint thread failed to write to WiredTiger.turtle file due to lack of permission. You should check whether the files (share) permissions under dbpath ("C:\Program Files\MongoDB\Server\4.0\data") is the same, and the user that runs mongod has read/write permission to it.

Regards,
Wan.

Reply all
Reply to author
Forward
0 new messages