Skip to content
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

Errors getting started #232

Closed
KevinBurton opened this issue Jan 4, 2018 · 4 comments
Closed

Errors getting started #232

KevinBurton opened this issue Jan 4, 2018 · 4 comments

Comments

@KevinBurton
Copy link

I issue the command

docker run --name mymongo -v //c/mongodb:/data/db -d mongo

and the container immediately exits.

When I look at the logs (docker logs mymongo) I get:

2018-01-04T21:32:20.159+0000 I CONTROL  [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=
0e6b202f1271
2018-01-04T21:32:20.159+0000 I CONTROL  [initandlisten] db version v3.6.1
2018-01-04T21:32:20.159+0000 I CONTROL  [initandlisten] git version: 025d4f4fe61efd1fb6f0005be20cb45a004093d1
2018-01-04T21:32:20.159+0000 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.0.1t  3 May 2016
2018-01-04T21:32:20.159+0000 I CONTROL  [initandlisten] allocator: tcmalloc
2018-01-04T21:32:20.159+0000 I CONTROL  [initandlisten] modules: none
2018-01-04T21:32:20.160+0000 I CONTROL  [initandlisten] build environment:
2018-01-04T21:32:20.160+0000 I CONTROL  [initandlisten]     distmod: debian81
2018-01-04T21:32:20.160+0000 I CONTROL  [initandlisten]     distarch: x86_64
2018-01-04T21:32:20.160+0000 I CONTROL  [initandlisten]     target_arch: x86_64
2018-01-04T21:32:20.160+0000 I CONTROL  [initandlisten] options: { net: { bindIpAll: true } }
2018-01-04T21:32:20.187+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),
2018-01-04T21:32:20.301+0000 E STORAGE  [initandlisten] WiredTiger error (1) [1515101540:300975][1:0x7f7cd61cda00], conn
ection: /data/db/WiredTiger.wt: handle-open: open: Operation not permitted
2018-01-04T21:32:20.303+0000 E -        [initandlisten] Assertion: 28595:1: Operation not permitted src/mongo/db/storage
/wiredtiger/wiredtiger_kv_engine.cpp 413
2018-01-04T21:32:20.305+0000 I STORAGE  [initandlisten] exception in initAndListen: Location28595: 1: Operation not perm
itted, terminating
2018-01-04T21:32:20.305+0000 I NETWORK  [initandlisten] shutdown: going to close listening sockets...
2018-01-04T21:32:20.305+0000 I NETWORK  [initandlisten] removing socket file: /tmp/mongodb-27017.sock
2018-01-04T21:32:20.305+0000 I CONTROL  [initandlisten] now exiting
2018-01-04T21:32:20.305+0000 I CONTROL  [initandlisten] shutting down with code:100

How do I determine which operation is not permitted?
Thank you.

@yosifkit
Copy link
Member

yosifkit commented Jan 4, 2018

(assuming you are running Linux containers on Windows) You unfortunately cannot use a volume shared to the Windows host. See also, #107 (comment).

WARNING (Windows & OS X): The default Docker setup on Windows and OS X uses a VirtualBox VM to host the Docker daemon. Unfortunately, the mechanism VirtualBox uses to share folders between the host system and the Docker container is not compatible with the memory mapped files used by MongoDB (see vbox bug, docs.mongodb.org and related jira.mongodb.org bug). This means that it is not possible to run a MongoDB container with the data directory mapped to the host.

- Docker Hub (source)

Closing as duplicate of #107, #85, and #74.

@yosifkit yosifkit closed this as completed Jan 4, 2018
@tehmaestro
Copy link

tehmaestro commented Jan 5, 2018

I'm using Docker on Windows with Hyper-V. Does it have the same issue? Cause, my mongodb container does not crash, but there is no data inside the container's binded folder

Edit: Never mind, I wasn't even sharing the folder. Once I shared the folder, I started getting the same error as above.

@tianon
Copy link
Member

tianon commented Jan 5, 2018 via email

@snehalsabale

This comment has been minimized.

@docker-library docker-library locked as resolved and limited conversation to collaborators May 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants