You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: