Hi Benoît,

sorry for snoozing on this issue.

My /etc/network/interfaces looks like this:
-------------------------------------------------
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
-------------------------------------------------

At first it seemed setting the listening_ip in the conf worked. This seems
to be an undocumented feature, since the only way to set this should be as
a parameter when starting the daemon (i.e. in /etc/defaults/minidlna),
according to the documentation.

However, after doing that, I could not reproduce the problem. Even if I
removed this addition to the conf, the daemon started successfully. This
leaves me thinking of two possible cases:
1) My original research was just sloppy, and I only read /var/log/boot to
see if the daemon started. Like reported originally that information seems
to be unreliable. If I ps for the actual process, it now seems to always
start.
2) There's been a change to my system. Perhaps one of the daemons starting
between network and minidlna now takes a bit longer, and therefore things
work OK. I guess such a timing issue would be platform dependent (or even
NIC dependent?) and hard to track down.

I was somewhat waiting to confirm that there was no problem when a new
version came out, but if that's not planned, maybe it's better to close
this and reopen if it resurfaces. My understanding is that the
1.0.21+dfsg-1.1 update did not change anything relating to this issue.

Greets,

Anders

2012/2/14 Benoît Knecht <benoit.kne...@fsfe.org>

> tags 640146 moreinfo
> thanks
>
> Hi Anders,
>
> Benoît Knecht wrote:
> > Anders Olsson wrote:
> > > Minidlna fails to start at boot. There are messages indicating a
> > > problem in the boot log (see below). Starting manually after the
> > > system has fully booted works fine (using /etc/init.d/minidlna start).
> > >
> > > [...]
> > >
> > > The contents of /var/log/boot:
> > >
> > > Thu Sep  1 21:52:22 2011: Setting parameters of disc: (none).
> > > Thu Sep  1 21:52:22 2011: Activating swap...done.
> > > Thu Sep  1 21:52:22 2011: Checking root file system...fsck from
> > > util-linux-ng 2.17.2
> > > Thu Sep  1 21:52:22 2011: e2fsck 1.41.12 (17-May-2010)
> > > Thu Sep  1 21:52:22 2011: /dev/sda3: clean, 49899/610800 files,
> > > 477160/2441406 blocks (check in 2 mounts)
> > > Thu Sep  1 21:52:22 2011: done.
> > > Thu Sep  1 21:52:22 2011: Loading kernel modules...done.
> > > Thu Sep  1 21:52:22 2011: Cleaning up ifupdown....
> > > Thu Sep  1 21:52:22 2011: Setting up networking....
> > > Thu Sep  1 21:52:23 2011: Activating lvm and md swap...done.
> > > Thu Sep  1 21:52:23 2011: Checking file systems...fsck from
> util-linux-ng 2.17.2
> > > Thu Sep  1 21:52:23 2011: e2fsck 1.41.12 (17-May-2010)
> > > Thu Sep  1 21:52:23 2011: /dev/sda1: clean, 17/64 files, 1281/62500
> blocks
> > > Thu Sep  1 21:52:23 2011: e2fsck 1.41.12 (17-May-2010)
> > > Thu Sep  1 21:52:28 2011: /dev/sda4: clean, 73456/121462784 files,
> > > 288187642/485827854 blocks
> > > Thu Sep  1 21:52:28 2011: done.
> > > Thu Sep  1 21:52:28 2011: Mounting local filesystems...done.
> > > Thu Sep  1 21:52:30 2011: Activating swapfile swap...done.
> > > Thu Sep  1 21:52:30 2011: Cleaning up temporary files....
> > > Thu Sep  1 21:52:31 2011: Setting kernel variables ...done.
> > > Thu Sep  1 21:52:31 2011: Configuring network interfaces...done.
> > > Thu Sep  1 21:52:31 2011: Cleaning up temporary files....
> > > Thu Sep  1 21:52:32 2011: Setting sensors limits.
> > > Thu Sep  1 21:52:32 2011: INIT: Entering runlevel: 2
> > > Thu Sep  1 21:52:32 2011: Using makefile-style concurrent boot in
> runlevel 2.
> > > Thu Sep  1 21:52:33 2011: Starting enhanced syslogd: rsyslogd.
> > > Thu Sep  1 21:52:33 2011: Starting deferred execution scheduler: atd.
> > > Thu Sep  1 21:52:34 2011: Starting periodic command scheduler: cron.
> > > Thu Sep  1 21:52:34 2011: Starting system message bus: dbus.
> > > Thu Sep  1 21:52:34 2011: Starting Samba daemons: nmbd smbd.
> > > Thu Sep  1 21:52:35 2011: Starting internet superserver: inetd.
> > > Thu Sep  1 21:52:36 2011: Starting OpenBSD Secure Shell server: sshd.
> > > Thu Sep  1 21:52:36 2011: Starting the Winbind daemon: winbind.
> > > Thu Sep  1 21:52:36 2011: Starting web server: lighttpd.
> > > Thu Sep  1 21:52:38 2011: [2011/09/01 21:52:38] minidlna.c:762: No IP
> > > address automatically detected!
> >
> > Well you somehow don't have an IP configured yet at this point. How is
> > your network interface configured? You should be able to work around
> > this by using the 'listening_ip' option in /etc/minidlna.conf.
>
> Have you investigated further? Did you check if your network interface
> gets an IP before minidlna starts? Does setting 'listening_ip' in
> /etc/minidlna.conf help?
>
> Cheers,
>
> --
> Benoît Knecht
>

Reply via email to