[Pkg-mongodb-maintainers] Bug#864407: mongodb-server: mongodb starts before network on VM and standalone

Luca Cervigni luca.cervigni at pawsey.org.au
Thu Jun 8 06:52:10 UTC 2017

Package: mongodb-server
Version: 1:2.6.10-0ubuntu1
Severity: important
Dear Maintainer,

This is related to both mongodb and systemd

Installed in a VM with only mongo running, the mongodb server service in 
systemd does not wait for network.target for starting up. This makes 
mongodb.service failing when the server restart, and when started by 
hand (after the network is restarted) works.


add the line:

in /lib/systemd/system/mongodb.service under the section [Unit]

Impact: mongodb fails to start if server restarted.
Reproducibility: on VMs, mongodb standalone node.

The bug is already been reported to the mongodb guys here: 
But I have been told there that this is something that Debian should fix 

Other network accessible DBs such mysql already have the 
After=network.target line in the systemd config that allow the db to 
start only after the network started.

Many thanks

version of systemd on the system
root at mongo-01:~# dpkg -l | grep systemd
ii  libpam-systemd:amd64 229-4ubuntu17                              
amd64        system and service manager - PAM module
ii  libsystemd0:amd64 229-4ubuntu17                              
amd64        systemd utility library
ii  systemd 229-4ubuntu17                              amd64        
system and service manager
ii  systemd-sysv 229-4ubuntu17                              amd64        
system and service manager - SysV links

-- System Information:
Debian Release: stretch/sid
   APT prefers xenial-updates
   APT policy: (500, 'xenial-updates'), (500, 'xenial-security'), (500, 
Architecture: amd64 (x86_64)

Kernel: Linux 4.4.0-78-generic (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages mongodb-server depends on:
ii  adduser                         3.113+nmu3ubuntu4
ii  init-system-helpers             1.29ubuntu4
ii  libboost-filesystem1.58.0       1.58.0+dfsg-5ubuntu3.1
ii  libboost-program-options1.58.0  1.58.0+dfsg-5ubuntu3.1
ii  libboost-system1.58.0           1.58.0+dfsg-5ubuntu3.1
ii  libboost-thread1.58.0           1.58.0+dfsg-5ubuntu3.1
ii  libc6                           2.23-0ubuntu7
ii  libgcc1                         1:6.0.1-0ubuntu1
ii  libgoogle-perftools4            2.4-0ubuntu5.16.04.1
ii  libpcrecpp0v5                   2:8.38-3.1
ii  libsnappy1v5                    1.1.3-2
ii  libssl1.0.0                     1.0.2g-1ubuntu4.6
ii  libstdc++6                      5.4.0-6ubuntu1~16.04.4
ii  libv8-3.14.5          
ii  libyaml-cpp0.5v5                0.5.2-3
ii  lsb-base                        9.20160110ubuntu0.2
ii  mongodb-clients                 1:2.6.10-0ubuntu1

mongodb-server recommends no packages.

mongodb-server suggests no packages.

-- Configuration Files:
/etc/mongodb.conf changed [not included]

-- no debconf information

--- I couldn't open the bug with reportbug


Regards, Luca Cervigni

More information about the Pkg-mongodb-maintainers mailing list