← Back to team overview

touch-packages team mailing list archive

[Bug 1453602] Re: mediatomb starts before network comes online

 

Yes, it is after NetworkManager-wait-online.service and network.target.
It looks like mediatomb did wait for nm-online, yet eth0 is not yet
configured ( I inserted a ExecStartPre=ifconfig -a to see in a previous
boot ).

● NetworkManager-wait-online.service - Network Manager Wait Online
   Loaded: loaded (/lib/systemd/system/NetworkManager-wait-online.service; enabled; vendor preset: enabled)
   Active: inactive (dead) since Sun 2015-05-10 22:21:06 EDT; 1 day 21h ago
  Process: 1089 ExecStart=/usr/bin/nm-online -s -q --timeout=30 (code=exited, status=0/SUCCESS)
 Main PID: 1089 (code=exited, status=0/SUCCESS)

May 10 22:21:01 faldara systemd[1]: Starting Network Manager Wait Online...
May 10 22:21:06 faldara systemd[1]: Started Network Manager Wait Online.

● mediatomb.service - UPnP MediaServer
   Loaded: loaded (/lib/systemd/system/mediatomb.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2015-05-10 22:21:07 EDT; 1 day 21h ago
  Process: 1773 ExecStopPost=/sbin/ifconfig $MT_INTERFACE -allmulti (code=exited, status=0/SUCCESS)
  Process: 1770 ExecStopPost=/sbin/route del -net 239.0.0.0 netmask 255.0.0.0 (code=exited, status=0/SUCCESS)
  Process: 1739 ExecStart=/usr/bin/mediatomb -d -u $MT_USER -g $MT_GROUP -P /run/mediatomb.pid -l $MT_LOGFILE -m $MT_HOME -f $MT_CFGDIR -p $MT_PORT -e $MT_INTERFACE (code=exited, status=0/SUCCESS)
  Process: 1734 ExecStartPre=/sbin/ifconfig $MT_INTERFACE allmulti (code=exited, status=0/SUCCESS)
  Process: 1727 ExecStartPre=/sbin/route add -net 239.0.0.0 netmask 255.0.0.0 $MT_INTERFACE (code=exited, status=0/SUCCESS)
  Process: 1718 ExecStartPre=/bin/grep -q MT_USER /etc/default/mediatomb (code=exited, status=0/SUCCESS)
 Main PID: 1767 (code=exited, status=1/FAILURE)

May 10 22:21:06 faldara systemd[1]: Starting UPnP MediaServer...
May 10 22:21:07 faldara systemd[1]: Started UPnP MediaServer.
May 10 22:21:07 faldara systemd[1]: mediatomb.service: main process exited, code=exited, stat...LURE
May 10 22:21:07 faldara ifconfig[1773]: Warning: Interface eth0 still in ALLMULTI mode.
May 10 22:21:07 faldara systemd[1]: Unit mediatomb.service entered failed state.
May 10 22:21:07 faldara systemd[1]: mediatomb.service failed.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/1453602

Title:
  mediatomb starts before network comes online

Status in mediatomb package in Ubuntu:
  Triaged
Status in network-manager package in Ubuntu:
  Incomplete

Bug description:
  mediatomb fails to start at boot because the network is not yet up.
  It's unit file lists After: network-online.target, but this target
  comes up before NetworkManager has brought the network up.  I'm
  guessing it only counts networks configured in /etc/interfaces.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mediatomb/+bug/1453602/+subscriptions


References