Answer the question
In order to leave comments, you need to log in
How to properly mount a Docker volume under MacOS?
The bottom line is that folders mounted from the host system are mounted into a container with 1000:staff permissions
And everything even works fine (read-write work) until Mongo tries to start synchronization
Please write only if you have encountered a problem and solved it. I can google. I have been sitting for 2 days now.
I tried both regular named volumes and container ones (busybox)
I installed gosu.
Danced with a tambourine and a friend.
Mongo has no problems with other folders
2016-09-06T13:20:34.631+0000 I CONTROL [initandlisten] MongoDB starting : pid=35 port=27017 dbpath=/var/www/recipe/db 64-bit host=d15d9df7ad76
2016-09-06T13:20:34.632+0000 I CONTROL [initandlisten] db version v3.2.9
2016-09-06T13:20:34.632+0000 I CONTROL [initandlisten] git version: 22ec9e93b40c85fc7cae7d56e7d6a02fd811088c
2016-09-06T13:20:34.632+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.2g-fips 1 Mar 2016
2016-09-06T13:20:34.632+0000 I CONTROL [initandlisten] allocator: tcmalloc
2016-09-06T13:20:34.632+0000 I CONTROL [initandlisten] modules: none
2016-09-06T13:20:34.632+0000 I CONTROL [initandlisten] build environment:
2016-09-06T13:20:34.632+0000 I CONTROL [initandlisten] distmod: ubuntu1604
2016-09-06T13:20:34.632+0000 I CONTROL [initandlisten] distarch: x86_64
2016-09-06T13:20:34.632+0000 I CONTROL [initandlisten] target_arch: x86_64
2016-09-06T13:20:34.632+0000 I CONTROL [initandlisten] options: { storage: { dbPath: "/var/www/recipe/db" } }
2016-09-06T13:20:34.638+0000 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=1G,session_max=20000,eviction=(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),
2016-09-06T13:20:34.653+0000 E STORAGE [initandlisten] WiredTiger (17) [1473168034:653401][35:0x7f012e008c80], connection: /var/www/recipe/db/WiredTiger.wt: handle-open: open: File exists
2016-09-06T13:20:34.654+0000 I STORAGE [initandlisten] WiredTiger unexpected file WiredTiger.wt found, renamed to WiredTiger.wt.1
2016-09-06T13:20:34.655+0000 E STORAGE [initandlisten] WiredTiger (22) [1473168034:655969][35:0x7f012e008c80], connection: /var/www/recipe/db/: directory-sync: fdatasync: Invalid argument
2016-09-06T13:20:34.659+0000 I - [initandlisten] Fatal Assertion 28561
2016-09-06T13:20:34.659+0000 I - [initandlisten]
***aborting after fassert() failure
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question