-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker + Windows + MongoDB -> std. Laradock fails. #1663
Comments
+1 |
Jey @jvihrial did you get anywhere with this issue? It seems like a mongodb issue with NTFS. Did you find any solution? |
@batagliao well, I can post my solution: diff --git a/docker-compose.yml b/docker-compose.yml
and in .env:
|
Hello @jvihrial mongo on windows you can use bind volume. MongoDB
|
+1 I have the same error:
|
+ 1 I have the same error too: Logs
Docker-compose
|
I rely on external docker volumes
docker-compose.yaml version: "3"
services:
database:
image: mongo
ports:
- 27017:27017
volumes:
- "mongodbdata:/data/db"
command: mongod --smallfiles --logpath=/dev/null
volumes:
mongodbdata:
external: true |
Thank you. I found the same problem as me.
Then start Mongo. |
Hi all, Im having the same problem. The DB docker file: The docker-compose.yml |
Found a solution here strapi/strapi-docker#80 (comment) |
Hi 👋 this issue has been automatically marked as |
Hi again 👋 we would like to inform you that this issue has been automatically |
Hi again 👋 we would like to inform you that this issue has been automatically |
Info:
Issue:
MongoDB fails to start. In throws fatal exception code 14 and dies:
mongo_1 | 2018-06-28T16:29:52.560+0000 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'
mongo_1 | 2018-06-28T16:29:52.566+0000 I CONTROL [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=9fc24b843ae9
mongo_1 | 2018-06-28T16:29:52.566+0000 I CONTROL [initandlisten] db version v4.0.0
mongo_1 | 2018-06-28T16:29:52.566+0000 I CONTROL [initandlisten] git version: 3b07af3d4f471ae89e8186d33bbb1d5259597d51
mongo_1 | 2018-06-28T16:29:52.566+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.2g 1 Mar 2016
mongo_1 | 2018-06-28T16:29:52.566+0000 I CONTROL [initandlisten] allocator: tcmalloc
mongo_1 | 2018-06-28T16:29:52.566+0000 I CONTROL [initandlisten] modules: none
mongo_1 | 2018-06-28T16:29:52.566+0000 I CONTROL [initandlisten] build environment:
mongo_1 | 2018-06-28T16:29:52.566+0000 I CONTROL [initandlisten] distmod: ubuntu1604
mongo_1 | 2018-06-28T16:29:52.566+0000 I CONTROL [initandlisten] distarch: x86_64
mongo_1 | 2018-06-28T16:29:52.566+0000 I CONTROL [initandlisten] target_arch: x86_64
mongo_1 | 2018-06-28T16:29:52.566+0000 I CONTROL [initandlisten] options: { net: { bindIpAll: true } }
mongo_1 | 2018-06-28T16:29:52.573+0000 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=478M,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),
mongo_1 | 2018-06-28T16:29:53.155+0000 E STORAGE [initandlisten] WiredTiger error (17) [1530203393:155667][1:0x7f30a240da00], connection: /data/db/WiredTiger.wt: handle-open: open: File exists Raw: [1530203393:155667][1:0x7f30a240da00], connection: /data/db/WiredTiger.wt: handle-open: open: File exists
mongo_1 | 2018-06-28T16:29:53.157+0000 I STORAGE [initandlisten] WiredTiger message unexpected file WiredTiger.wt found, renamed to WiredTiger.wt.9
mongo_1 | 2018-06-28T16:29:53.159+0000 E STORAGE [initandlisten] WiredTiger error (1) [1530203393:159333][1:0x7f30a240da00], connection: /data/db/WiredTiger.wt: handle-open: open: Operation not permitted Raw: [1530203393:159333][1:0x7f30a240da00], connection: /data/db/WiredTiger.wt: handle-open: open: Operation not permitted
mongo_1 | 2018-06-28T16:29:53.169+0000 E STORAGE [initandlisten] WiredTiger error (17) [1530203393:169598][1:0x7f30a240da00], connection: /data/db/WiredTiger.wt: handle-open: open: File exists Raw: [1530203393:169598][1:0x7f30a240da00], connection: /data/db/WiredTiger.wt: handle-open: open: File exists
mongo_1 | 2018-06-28T16:29:53.173+0000 I STORAGE [initandlisten] WiredTiger message unexpected file WiredTiger.wt found, renamed to WiredTiger.wt.10
mongo_1 | 2018-06-28T16:29:53.175+0000 E STORAGE [initandlisten] WiredTiger error (1) [1530203393:175275][1:0x7f30a240da00], connection: /data/db/WiredTiger.wt: handle-open: open: Operation not permitted Raw: [1530203393:175275][1:0x7f30a240da00], connection: /data/db/WiredTiger.wt: handle-open: open: Operation not permitted
mongo_1 | 2018-06-28T16:29:53.187+0000 E STORAGE [initandlisten] WiredTiger error (17) [1530203393:187669][1:0x7f30a240da00], connection: /data/db/WiredTiger.wt: handle-open: open: File exists Raw: [1530203393:187669][1:0x7f30a240da00], connection: /data/db/WiredTiger.wt: handle-open: open: File exists
mongo_1 | 2018-06-28T16:29:53.192+0000 I STORAGE [initandlisten] WiredTiger message unexpected file WiredTiger.wt found, renamed to WiredTiger.wt.11
mongo_1 | 2018-06-28T16:29:53.194+0000 E STORAGE [initandlisten] WiredTiger error (1) [1530203393:194889][1:0x7f30a240da00], connection: /data/db/WiredTiger.wt: handle-open: open: Operation not permitted Raw: [1530203393:194889][1:0x7f30a240da00], connection: /data/db/WiredTiger.wt: handle-open: open: Operation not permitted
mongo_1 | 2018-06-28T16:29:53.197+0000 F STORAGE [initandlisten] Failed to start up WiredTiger under any compatibility version.
mongo_1 | 2018-06-28T16:29:53.197+0000 F STORAGE [initandlisten] 1: Operation not permitted
mongo_1 | 2018-06-28T16:29:53.197+0000 F - [initandlisten] Fatal Assertion 28595 at src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp 194
mongo_1 | 2018-06-28T16:29:53.197+0000 F - [initandlisten]
mongo_1 |
mongo_1 | ***aborting after fassert() failure
Expected behavior:
MongoDB should start.
Reproduce:
Get latest Laradock on Windows and do 'docker-compose up mongo'.
Relevant Code:
Issue seems to be in docker-compose.yml:
${DATA_PATH_HOST}/mongo:/data/db uses path with tilde if you share dev env between Mac and PC developers DATA_PATH_HOST is: DATA_PATH_HOST=~/.laradock/data. This will fail.
My solution was to do MONGO_SAVE_PATH variable that used in MONGO DB part in docker-compose.yml and not have relative path with tilde. Might not be perfect but we are not blocked anymore.
The text was updated successfully, but these errors were encountered: