Minidlna Service: failed

If none of the more specific forums is the right place to ask

Minidlna Service: failed

Postby sinoptic » 2021-01-18 09:00

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.
sinoptic
 
Posts: 3
Joined: 2021-01-17 11:57

Re: Minidlna Service: failed

Postby reinob » 2021-01-18 09:36

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?
reinob
 
Posts: 900
Joined: 2014-06-30 11:42

Re: Minidlna Service: failed

Postby sinoptic » 2021-01-18 10:40

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
sinoptic
 
Posts: 3
Joined: 2021-01-17 11:57

Re: Minidlna Service: failed

Postby reinob » 2021-01-18 15:41

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!
reinob
 
Posts: 900
Joined: 2014-06-30 11:42

Re: Minidlna Service: failed

Postby sinoptic » 2021-01-19 11:11

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.
sinoptic
 
Posts: 3
Joined: 2021-01-17 11:57


Return to General Questions

Who is online

Users browsing this forum: No registered users and 18 guests

fashionable