docker-unifi-video icon indicating copy to clipboard operation
docker-unifi-video copied to clipboard

mongodb unable to start

Open gordonthree opened this issue 6 years ago • 1 comments

hello,

I'm just testing out this image for a future project, and running into trouble getting it to launch properly.

I'm not using a Synology, instead running docker under Fedora 28 on a HPE Proliant Microserver.

I've run into an issue where the container never fully starts, it seems stuck in a loop trying to start mongodb. Here's a little snippet from the console:

I also attached a copy of "run.sh" , renamed a little...

Jun 22 13:34:58 7e473a75ec8f mongod.27017[8948]: [initandlisten] MongoDB starting : pid=8948 port=27017 dbpath=/var/lib/mongodb 64-bit host=7e473a75ec8f Jun 22 13:34:58 7e473a75ec8f mongod.27017[8948]: [initandlisten] db version v2.6.10 Jun 22 13:34:58 7e473a75ec8f mongod.27017[8948]: [initandlisten] git version: nogitversion Jun 22 13:34:58 7e473a75ec8f mongod.27017[8948]: [initandlisten] OpenSSL version: OpenSSL 1.0.2g 1 Mar 2016 Jun 22 13:34:58 7e473a75ec8f mongod.27017[8948]: [initandlisten] build info: Linux lgw01-12 3.19.0-25-generic #26~14.04.1-Ubuntu SMP Fri Jul 24 21:16:20 UTC 2015 x86_64 BOOST_LIB_VERSION=1_58 Jun 22 13:34:58 7e473a75ec8f mongod.27017[8948]: [initandlisten] allocator: tcmalloc Jun 22 13:34:58 7e473a75ec8f mongod.27017[8948]: [initandlisten] options: { config: "/etc/mongodb.conf", net: { bindIp: "127.0.0.1" }, storage: { dbPath: "/var/lib/mongodb", journal: { enabled: true } }, systemLog: { destination: "syslog" } } Jun 22 13:34:58 7e473a75ec8f mongod.27017[8948]: [initandlisten] exception in initAndListen: 10309 Unable to create/open lock file: /var/lib/mongodb/mongod.lock errno:13 Permission denied Is a mongod instance already running?, terminating Jun 22 13:34:58 7e473a75ec8f mongod.27017[8948]: [initandlisten] dbexit: Jun 22 13:34:58 7e473a75ec8f mongod.27017[8948]: [initandlisten] shutdown: going to close listening sockets... Jun 22 13:34:58 7e473a75ec8f mongod.27017[8948]: [initandlisten] shutdown: going to flush diaglog... Jun 22 13:34:58 7e473a75ec8f mongod.27017[8948]: [initandlisten] shutdown: going to close sockets... Jun 22 13:34:58 7e473a75ec8f mongod.27017[8948]: [initandlisten] shutdown: waiting for fs preallocator... Jun 22 13:34:58 7e473a75ec8f mongod.27017[8948]: [initandlisten] shutdown: lock for final commit... Jun 22 13:34:58 7e473a75ec8f mongod.27017[8948]: [initandlisten] shutdown: final commit... Jun 22 13:34:58 7e473a75ec8f mongod.27017[8948]: [initandlisten] shutdown: closing all files... Jun 22 13:34:58 7e473a75ec8f mongod.27017[8948]: [initandlisten] closeAllFiles() finished Jun 22 13:34:58 7e473a75ec8f mongod.27017[8948]: [initandlisten] shutdown: removing fs lock... Jun 22 13:34:58 7e473a75ec8f mongod.27017[8948]: [initandlisten] couldn't remove fs lock errno:9 Bad file descriptor Jun 22 13:34:58 7e473a75ec8f mongod.27017[8948]: [initandlisten] dbexit: really exiting now

run-unifi-video.txt

Here's the directory tree, created as described in your instructions [gordon@microserver ~]$ tree -d Applications/ Applications/ └── unifi-video ├── log ├── mongodb └── unifi-video └── logs

5 directories

gordonthree avatar Jun 22 '18 14:06 gordonthree