Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#35325 - [minidlna] can't start when booting pc
Attached to Project:
Community Packages
Opened by Andrew (Belitsky.A) - Thursday, 16 May 2013, 15:02 GMT
Last edited by Sergej Pupykin (sergej) - Saturday, 16 November 2013, 18:46 GMT
Opened by Andrew (Belitsky.A) - Thursday, 16 May 2013, 15:02 GMT
Last edited by Sergej Pupykin (sergej) - Saturday, 16 November 2013, 18:46 GMT
|
DetailsDescription:
when arch is booting minidlna can't start with error: May 14 19:08:59 dots systemd[1]: Starting minidlna server... May 14 19:09:02 dots minidlnad[243]: [2013/05/14 19:09:02] minidlna.c:528: No MAC address found. Falling back to generic UUID. May 14 19:09:02 dots minidlnad[243]: [2013/05/14 19:09:02] minidlna.c:927: fatal: No IP address automatically detected! May 14 19:09:02 dots systemd[1]: minidlna.service: control process exited, code=exited status=255 May 14 19:09:02 dots systemd[1]: Failed to start minidlna server. May 14 19:09:02 dots systemd[1]: Unit minidlna.service entered failed state. But I can start it manually after boot and minidlna works whitout this problem. Additional info: * package version(s): 1.1.0-1 Steps to reproduce: 1. # systemd enable minidlna 2. reboot pc |
This task depends upon
Closed by Sergej Pupykin (sergej)
Saturday, 16 November 2013, 18:46 GMT
Reason for closing: Not a bug
Additional comments about closing: or upstream
Saturday, 16 November 2013, 18:46 GMT
Reason for closing: Not a bug
Additional comments about closing: or upstream
Requires=network.target
into .service [Unit] section?
Andrew: Where are your logs from?
You need to run this from root:
# journalctl -b -u minidlna
Mai 27 10:06:56 wigrid minidlnad[420]: [2013/05/27 10:06:56] minidlna.c:528: No MAC address found. Falling back to generic UUID.
Mai 27 10:06:57 wigrid minidlnad[420]: [2013/05/27 10:06:57] minidlna.c:927: fatal: No IP address automatically detected!
Mai 27 10:06:57 wigrid systemd[1]: minidlna.service: control process exited, code=exited status=255
Mai 27 10:06:57 wigrid systemd[1]: Failed to start minidlna server.
Mai 27 10:06:57 wigrid systemd[1]: Unit minidlna.service entered failed state
I use NetworkManager too. So maybe the problem is there
https://wiki.archlinux.org/index.php/NetworkManager#Enable_NetworkManager_Wait_Online
journalctl -b -u minidlna
-- Logs begin at Thu 1970-01-01 01:00:04 CET, end at Thu 2013-09-19 07:27:18 CES
Jan 01 01:00:22 117pi systemd[1]: Starting minidlna server...
Jan 01 01:00:25 117pi systemd[1]: minidlna.service: control process exited, code
Jan 01 01:00:25 117pi systemd[1]: Failed to start minidlna server.
Jan 01 01:00:25 117pi systemd[1]: Unit minidlna.service entered failed state.
Jan 01 01:00:39 117pi systemd[1]: Starting minidlna server...
Jan 01 01:00:40 117pi minidlnad[300]: [1970/01/01 01:00:40] minidlna.c:528: No M
Jan 01 01:00:40 117pi minidlnad[300]: [1970/01/01 01:00:40] getifaddr.c:114: err
Jan 01 01:00:40 117pi systemd[1]: minidlna.service: control process exited, code
Jan 01 01:00:40 117pi systemd[1]: Failed to start minidlna server.
Jan 01 01:00:40 117pi systemd[1]: Unit minidlna.service entered failed state.
Wants=sys-subsystem-net-devices-eth0.device
or something else, so minidlna will start only after network interface is up.
Not sure if there is universal way to wait network.
> Alternatively, you can write your own service file wrapping any other program or script you like and simply
order it before network.target (with Before=). Your service also needs to pull in network.target (with Wants=), to indicate that it implements this target.