kvaps / docker-kolab

Kolab image with nginx, ssl, opendkim, amavis and fail2ban
MIT License
41 stars 19 forks source link

mongod.service fails to start, causes shutdown #23

Closed kevinbader closed 7 years ago

kevinbader commented 7 years ago

Hi, I'm trying to migrate from the previous version to :16. I've changed the folder structure and added the version file; then, when starting up the container, I see that mongod.service fails. That in turn causes systemd to wait a minute and then shut down the container. Any ideas what might go wrong here?

I'm using a fairly standard docker-compose file. Added caps are SYS_ADMIN and NET_ADMIN, tty is set to true, /run is tmpfs, /etc/localtime and /sys/fs/cgroup are mapped readonly.

Feb 10 00:01:24 mail systemd[1]: Starting High-performance, schema-free document-oriented database...
-- Subject: Unit mongod.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit mongod.service has begun starting up.
Feb 10 00:01:25 mail mongod[989]: about to fork child process, waiting until server is ready for connections.
Feb 10 00:01:25 mail mongod[989]: forked process: 1106
Feb 10 00:01:25 mail mongod[989]: ERROR: child process failed, exited with error number 100
Feb 10 00:01:25 mail systemd[1]: mongod.service: control process exited, code=exited status=100
Feb 10 00:01:25 mail systemd[1]: Failed to start High-performance, schema-free document-oriented database.
-- Subject: Unit mongod.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit mongod.service has failed.
--
-- The result is failed.
Feb 10 00:01:25 mail systemd[1]: Unit mongod.service entered failed state.
Feb 10 00:01:25 mail systemd[1]: mongod.service failed.
kevinbader commented 7 years ago

oh my bad, I just now noticed the ERROR in the log:

2017-02-10T00:14:26.611+0100 [initandlisten] ERROR: Insufficient free space for journal files
2017-02-10T00:14:26.611+0100 [initandlisten] Please make at least 3379MB available in /var/lib/mongodb/journal or use --smallfiles