Repository navigation
Closed
Description
I added mongo docker image from
docker pull mongo: latest
I run the image using the following command <39f5c173b5d4> docker image id
sudo docker run -v /media/sathish/Study/Office:/data/db -i -t 39f5c173b5d4
It didnt starts and returns an error.. I follwed everthing as per documentation
2017-10-04T13:20:36.566+0000 I CONTROL [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=ba1ebcd07b50
2017-10-04T13:20:36.566+0000 I CONTROL [initandlisten] db version v3.4.9
2017-10-04T13:20:36.566+0000 I CONTROL [initandlisten] git version: 876ebee8c7dd0e2d992f36a848ff4dc50ee6603e
2017-10-04T13:20:36.566+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1t 3 May 2016
2017-10-04T13:20:36.566+0000 I CONTROL [initandlisten] allocator: tcmalloc
2017-10-04T13:20:36.566+0000 I CONTROL [initandlisten] modules: none
2017-10-04T13:20:36.566+0000 I CONTROL [initandlisten] build environment:
2017-10-04T13:20:36.566+0000 I CONTROL [initandlisten] distmod: debian81
2017-10-04T13:20:36.566+0000 I CONTROL [initandlisten] distarch: x86_64
2017-10-04T13:20:36.566+0000 I CONTROL [initandlisten] target_arch: x86_64
2017-10-04T13:20:36.566+0000 I CONTROL [initandlisten] options: {}
2017-10-04T13:20:36.570+0000 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=3433M,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),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0),
2017-10-04T13:20:36.639+0000 E STORAGE [initandlisten] WiredTiger error (17) [1507123236:639515][1:0x7f5e1b55dd40], connection: /data/db/WiredTiger.wt: handle-open: open: File exists
2017-10-04T13:20:36.639+0000 I STORAGE [initandlisten] WiredTiger message unexpected file WiredTiger.wt found, renamed to WiredTiger.wt.3
2017-10-04T13:20:36.640+0000 E STORAGE [initandlisten] WiredTiger error (1) [1507123236:640125][1:0x7f5e1b55dd40], connection: /data/db/WiredTiger.wt: handle-open: open: Operation not permitted
2017-10-04T13:20:36.640+0000 I - [initandlisten] Assertion: 28595:1: Operation not permitted src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp 269
2017-10-04T13:20:36.640+0000 I STORAGE [initandlisten] exception in initAndListen: 28595 1: Operation not permitted, terminating
2017-10-04T13:20:36.641+0000 I NETWORK [initandlisten] shutdown: going to close listening sockets...
2017-10-04T13:20:36.641+0000 I NETWORK [initandlisten] removing socket file: /tmp/mongodb-27017.sock
2017-10-04T13:20:36.641+0000 I NETWORK [initandlisten] shutdown: going to flush diaglog...
2017-10-04T13:20:36.641+0000 I CONTROL [initandlisten] now exiting
2017-10-04T13:20:36.641+0000 I CONTROL [initandlisten] shutting down with code:100
I added the user by the instructions in docs but it return same error
Metadata
Metadata
Assignees
Labels
No labels
Activity
tianon commentedon Oct 4, 2017
Is
/media/sathish/Study/Officean NTFS or FAT32 partition? MongoDB is a bit picky about the filesystem its data gets stored on, due to how it ends up using it.sathiz1993 commentedon Oct 5, 2017
/media/sathish/Study/Officeis NTFS I change mount volume to ext4 now everything is fine I run mongo container.[-]Cannot start mongo and add user[/-][+]Cannot start mongo with mount volume as NTFS partition[/+]tianon commentedon Oct 9, 2017
Great, thanks for confirming!