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

Mongod permission issue #117

Open
EriniKarpadaki opened this issue Oct 1, 2020 · 0 comments
Open

Mongod permission issue #117

EriniKarpadaki opened this issue Oct 1, 2020 · 0 comments

Comments

@EriniKarpadaki
Copy link

EriniKarpadaki commented Oct 1, 2020

Hi, hope you're doing well.
I am trying to dockerize node+mongo+nginx using this nodock.
But I am getting below error.
exception in initAndListen: 20 Attempted to create a lock file on a read-only directory: /var/lib/mongodb, terminating
Any ideas how to fix?
Thanks in advance.

details:
root@ubuntu:/home/best/Documents/nodock_try/nodock# docker logs nodock_mongo_1 2020-10-01T07:45:47.606+0000 I CONTROL [initandlisten] MongoDB starting : pid=7 port=27017 dbpath=/var/lib/mongodb 64-bit host=11c9210d1dd9 2020-10-01T07:45:47.607+0000 I CONTROL [initandlisten] db version v3.3.15 2020-10-01T07:45:47.607+0000 I CONTROL [initandlisten] git version: 520f5571d039b57cf9c319b49654909828971073 2020-10-01T07:45:47.607+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1t 3 May 2016 2020-10-01T07:45:47.607+0000 I CONTROL [initandlisten] allocator: tcmalloc 2020-10-01T07:45:47.607+0000 I CONTROL [initandlisten] modules: none 2020-10-01T07:45:47.607+0000 I CONTROL [initandlisten] build environment: 2020-10-01T07:45:47.607+0000 I CONTROL [initandlisten] distmod: debian81 2020-10-01T07:45:47.607+0000 I CONTROL [initandlisten] distarch: x86_64 2020-10-01T07:45:47.607+0000 I CONTROL [initandlisten] target_arch: x86_64 2020-10-01T07:45:47.607+0000 I CONTROL [initandlisten] options: { storage: { dbPath: "/var/lib/mongodb" } } 2020-10-01T07:45:47.670+0000 I STORAGE [initandlisten] exception in initAndListen: 20 Attempted to create a lock file on a read-only directory: /var/lib/mongodb, terminating 2020-10-01T07:45:47.670+0000 I NETWORK [initandlisten] shutdown: going to close listening sockets... 2020-10-01T07:45:47.670+0000 I NETWORK [initandlisten] shutdown: going to flush diaglog... 2020-10-01T07:45:47.670+0000 I CONTROL [initandlisten] now exiting 2020-10-01T07:45:47.670+0000 I CONTROL [initandlisten] shutting down with code:100

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant