Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Minidlna Service: failed

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
sinoptic
Posts: 3
Joined: 2021-01-17 11:57

Minidlna Service: failed

#1 Post by sinoptic »

Hi,
before New Year 2021 my minidlna service has stopped its work.
It worked fine pretty long time.
What happen? I don't know.
Nothing was changed in my Debian server, except updates.
Perhaps it was out of service after some update.
● minidlna.service - MiniDLNA lightweight DLNA/UPnP-AV server
Loaded: loaded (/lib/systemd/system/minidlna.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2021-01-18 14:27:42 +05; 8s ago
Docs: man:minidlnad(1)
man:minidlna.conf(5)
Process: 8675 ExecStart=/usr/sbin/minidlnad -f $CONFIGFILE -P /run/minidlna/minidlna.pid $DAEMON_OPTS (code=exited, status=0/SUCCESS)
Main PID: 8677 (code=exited, status=255/EXCEPTION)

Jan 18 14:27:42 ... systemd[1]: Starting MiniDLNA lightweight DLNA/UPnP-AV server...
Jan 18 14:27:42 ... systemd[1]: Started MiniDLNA lightweight DLNA/UPnP-AV server.
Jan 18 14:27:42 ... systemd[1]: minidlna.service: Main process exited, code=exited, status=255/EXCEPTION
Jan 18 14:27:42 ... systemd[1]: minidlna.service: Failed with result 'exit-code'.
Me cannot start it - always get picture like above...
Cannot read any message from Minidlna or logs, since it doesn't give any message.
No new records in log file.

A record from 'apt' consider to version:
minidlna/stable,now 1.2.1+dfsg-2+deb10u2 amd64 [installed]

Debian 10. Keeps it always updated.

Is there any suggestion?
How to get some diagnostic message or at least 'death scream' ? :)
How to make minidlna alive ?

Thanks in advance.
Last edited by sinoptic on 2021-01-18 10:42, edited 1 time in total.

reinob
Posts: 1198
Joined: 2014-06-30 11:42
Has thanked: 99 times
Been thanked: 47 times

Re: Minidlna Service: failed

#2 Post by reinob »

Can you post the (exact) output of "systemctl cat minidlna" and "systemctl status minidlna".

What you posted looks like "systemctl status" but is not quite right, as it shows $CONFIGFILE and $DAEMON_OPTS, which should never appear in the status (they should have been resolved).

Are you sure you haven't tweaked (read: broken) the systemd unit?

sinoptic
Posts: 3
Joined: 2021-01-17 11:57

Re: Minidlna Service: failed

#3 Post by sinoptic »

root@...:~# systemctl status minidlna
● minidlna.service - MiniDLNA lightweight DLNA/UPnP-AV server
Loaded: loaded (/lib/systemd/system/minidlna.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2021-01-18 14:27:42 +05; 1h 57min ago
Docs: man:minidlnad(1)
man:minidlna.conf(5)
Process: 8675 ExecStart=/usr/sbin/minidlnad -f $CONFIGFILE -P /run/minidlna/minidlna.pid $DAEMON_OPTS (code=exited, status=0/SUCCESS)
Main PID: 8677 (code=exited, status=255/EXCEPTION)

янв 18 14:27:42 ... systemd[1]: Starting MiniDLNA lightweight DLNA/UPnP-AV server...
янв 18 14:27:42 ... systemd[1]: Started MiniDLNA lightweight DLNA/UPnP-AV server.
янв 18 14:27:42 ... systemd[1]: minidlna.service: Main process exited, code=exited, status=255/EXCEPTION
янв 18 14:27:42 ... systemd[1]: minidlna.service: Failed with result 'exit-code'.
root@...:~# systemctl cat minidlna
# /lib/systemd/system/minidlna.service
[Unit]
Description=MiniDLNA lightweight DLNA/UPnP-AV server
Documentation=man:minidlnad(1) man:minidlna.conf(5)
After=network.target

[Service]
Type=forking
User=minidlna
Group=minidlna

Environment=CONFIGFILE=/etc/minidlna.conf
Environment=DAEMON_OPTS=-r
EnvironmentFile=-/etc/default/minidlna

RuntimeDirectory=minidlna
LogsDirectory=minidlna
PIDFile=/run/minidlna/minidlna.pid
ExecStart=/usr/sbin/minidlnad -f $CONFIGFILE -P /run/minidlna/minidlna.pid $DAEMON_OPTS


[Install]
WantedBy=multi-user.target

reinob
Posts: 1198
Joined: 2014-06-30 11:42
Has thanked: 99 times
Been thanked: 47 times

Re: Minidlna Service: failed

#4 Post by reinob »

OK, then it must be something either in /etc/default/minidlna and/or /etc/minidlna.conf

Can you post the contents of those two files (you can remove lines starting with '#' do keep it shorter..)
If you have set LOGFILE, like "/var/log/minidlna.log", then of course you could also have a look at the log, as it should tell you what is happening. You can also post the log here (or a link thereto).

Good luck!

sinoptic
Posts: 3
Joined: 2021-01-17 11:57

Re: Minidlna Service: failed

#5 Post by sinoptic »

Hi,

There was different 'user' in
- /lib/systemd/system/minidlna.service
- /etc/minidlna.conf

so I've made an override via "systemctl edit minidlna"
[Service]
User=____correct user the same as in minidlna.conf____
Group=____correct group ____
reboot...
and now it works fine.

Аctually, reinob, you've helped me a lot.
Thank you very much.

Post Reply