Mini dlna plugin error

Hello m friend.
In reply your questions:

Did you set the correct path to the music files on the config page of the miniDLNA plugin?,
yes, indeed the music library was active and accessible; then it lost suddenly with no reason

What was the version of the miniDLNA plugin before you tried to update?:
v1.1.4

Can you still enable / disable the plugin?
no, when I try to enable /disable, on the up screen corner appear this red alert message .
"miniDLNA
Failed: stop minidlna.service : Error: Command failed: /usr/bin/sudo /bin/systemctl stop minidlna.service Failed to stop minidlna.service: Unit minidlna.service not loaded.

Are you able to connect to Volumio via SSH?
Really I don´t know how to able via SSH, or what is the razon to use that SSH protocol. DLNA worked fine for a couple a weeks, suddenly DLNA server didn´t find any file and worse, the plugin is stuck, it can´t uninstalling, updating, etc. this really has been a thorn in the ass.

I don´t know how fix the problem.

This did happen before you tried to update the plugin, right?

It is useful to SSH into Volumio in order to get your issue solved :wink: Please enable SSH and log in to Volumio as described here.

Then post the results of
ls -al /etc/systemd/system/
and
systemctl status -l minidlna.service

1 Like

volumio@zerling:~$ ls -al /etc/systemd/system/
total 24
drwxr-xr-x 1 root root 4096 Aug 25 15:27 .
drwxr-xr-x 1 root root 4096 Nov 20 2018 …
lrwxrwxrwx 1 root root 40 Feb 20 2019 dbus-org.freedesktop.Avahi.service -> /lib/systemd/system/avahi-daemon.service
drwxr-xr-x 2 root root 38 Feb 20 2019 default.target.wants
drwxr-xr-x 2 root root 41 Feb 20 2019 getty.target.wants
drwxr-xr-x 2 root root 80 Feb 20 2019 halt.target.wants
drwxr-xr-x 1 root root 4096 May 7 07:17 multi-user.target.wants
drwxr-xr-x 2 root root 80 Feb 20 2019 poweroff.target.wants
drwxr-xr-x 2 root root 80 Feb 20 2019 reboot.target.wants
drwxr-xr-x 2 root root 60 Feb 20 2019 sockets.target.wants
drwxr-xr-x 2 root root 43 Feb 20 2019 sysinit.target.wants

volumio@zerling:~$ systemctl status -l minidlna.service
● minidlna.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
volumio@zerling:~$

Look the results

The file minidlna.service is missing from /etc/systemd/system. Please create it like this:

  1. Open the editor nano:
    sudo nano /etc/systemd/system/minidlna.service

  2. Paste the following lines into it:
    [Unit]
    Description=MiniDLNA UPnP-A/V and DLNA media server
    After=syslog.target var-run.mount nss-lookup.target network.target remote-fs.target local-fs.target

    [Service]
    Type=forking
    PIDFile=/var/run/minidlna/minidlnad.pid
    ExecStart=/usr/bin/minidlnad -P /var/run/minidlna/minidlnad.pid -f /data/minidlna.conf
    StandardOutput=syslog
    StandardError=syslog
    SyslogIdentifier=volumio
    User=root
    Group=volumio

    [Install]
    WantedBy=multi-user.target

  3. Save the file by pressing Ctrl-x, y and Enter.

  4. Try to enable the plugin.

EDIT: Corrected ExecStart= line.

Thank you man…I followed every pass sucesfully, however Mini DLAN still no working.

-trying to able / disable shows:
miniDLNA

Failed: stop minidlna.service : Error: Command failed: /usr/bin/sudo /bin/systemctl stop minidlna.service Failed to stop minidlna.service: Unit minidlna.service not loaded.

trying to update:

Downloading plugin at http://plugins.volumio.org/plugins/volumio/armhf/miscellanea/minidlna/minidlna.zip
END DOWNLOAD: http://plugins.volumio.org/plugins/volumio/armhf/miscellanea/minidlna/minidlna.zip
Creating folder on disk
The following error occurred when installing the plugin: Error: on stopping miniDLNA plugin

trying to uninstall:

Failed: stop minidlna.service : Error: Command failed: /usr/bin/sudo /bin/systemctl stop minidlna.service Failed to stop minidlna.service: Unit minidlna.service not loaded.

:sweat:

Check that minidlna.service is still present in /etc/systemd/system and try to start the service manually with sudo systemctl start minidlna.service

Also check what systemctl status -l minidlna.service yields now.

1 Like

look the results.

volumio@zerling:~$ sudo systemctl start minidlna.service
Failed to start minidlna.service: Unit minidlna.service failed to load: Invalid argument. See system logs and ‘systemctl status minidlna.service’ for details.
volumio@zerling:~$ systemctl status -l minidlna.service
● minidlna.service - MiniDLNA UPnP-A/V and DLNA media server
Loaded: error (Reason: Invalid argument)
Active: inactive (dead)

Aug 25 21:05:36 zerling systemd[1]: [/etc/systemd/system/minidlna.service:8] Executable path is not absolute, ignoring: $minidlnad -P /var/run/minidlna/minidlnad.pid -f /data/minidlna.conf
Aug 25 21:05:36 zerling systemd[1]: minidlna.service lacks both ExecStart= and ExecStop= setting. Refusing.
Aug 25 21:05:36 zerling systemd[1]: [/etc/systemd/system/minidlna.service:8] Executable path is not absolute, ignoring: $minidlnad -P /var/run/minidlna/minidlnad.pid -f /data/minidlna.conf
Aug 25 21:05:36 zerling systemd[1]: minidlna.service lacks both ExecStart= and ExecStop= setting. Refusing.
Aug 25 21:05:36 zerling systemd[1]: [/etc/systemd/system/minidlna.service:8] Executable path is not absolute, ignoring: $minidlnad -P /var/run/minidlna/minidlnad.pid -f /data/minidlna.conf
Aug 25 21:05:36 zerling systemd[1]: minidlna.service lacks both ExecStart= and ExecStop= setting. Refusing.
Aug 25 21:17:29 zerling systemd[1]: [/etc/systemd/system/minidlna.service:8] Executable path is not absolute, ignoring: $minidlnad -P /var/run/minidlna/minidlnad.pid -f /data/minidlna.conf
Aug 25 21:17:29 zerling systemd[1]: minidlna.service lacks both ExecStart= and ExecStop= setting. Refusing.
Aug 25 21:18:44 zerling systemd[1]: [/etc/systemd/system/minidlna.service:8] Executable path is not absolute, ignoring: $minidlnad -P /var/run/minidlna/minidlnad.pid -f /data/minidlna.conf
Aug 25 21:18:44 zerling systemd[1]: minidlna.service lacks both ExecStart= and ExecStop= setting. Refusing.
volumio@zerling:~$
volumio@zerling:~$ sudo systemctl start minidlna.service
volumio@zerling:~$ volumio@zerling:~$ sudo systemctl start minidlna.service
Active: inactive (dead)

Sorry, my bad… Please open minidlna.service with nano:

sudo nano /etc/systemd/system/minidlna.service

Then change the line beginning with ExecStart to
ExecStart=/usr/bin/minidlnad -P /var/run/minidlna/minidlnad.pid -f /data/minidlna.conf
save the file as described above and try starting the plugin again…

no man… the problem persist

Is the result of systemctl status -l minidlna.service the same as posted above?

Please execute whereis -b minidlnad to check if the minidlna binary is present.

Is the result of systemctl status -l minidlna.service the same as posted above? yes. bad results

Please execute whereis -b minidlnad to check if the minidlna binary is present…
Do I must execute this code on sudo nano?

No, just from the command line.

The results on command line:
volumio@zerling:~$ whereis -b minidlnad
minidlnad:
volumio@zerling:~$

Ok, the attempt(s) to uninstall the plugin seem(s) to have removed already the installed software packages.

Please post the results of
ls -al /data/plugins/miscellanea/minidlna
and
ls -al /data/configuration/miscellanea/minidlna
in order to check if theses folders have also been removed.

volumio@zerling:~$ ls -al /data/plugins/miscellanea/minidlna
total 104
drwxr-xr-x 4 volumio volumio 4096 Jun 15 18:23 .
drwxr-xr-x 3 volumio volumio 4096 Jun 15 18:20 …
-rw-r–r-- 1 volumio volumio 35626 Dec 19 2019 UIConfig.json
-rw-r–r-- 1 volumio volumio 2316 Jun 15 18:23 config.json
-rw-r–r-- 1 volumio volumio 29 Dec 19 2019 gitignore
drwxr-xr-x 2 volumio volumio 4096 Jun 15 18:20 i18n
-rw-r–r-- 1 volumio volumio 11390 Dec 19 2019 index.js
-rw-r–r-- 1 volumio volumio 963 Dec 19 2019 install.sh
-rw-r–r-- 1 volumio volumio 5779 Dec 19 2019 minidlna.conf.tmpl
-rw-r–r-- 1 volumio volumio 440 Dec 19 2019 minidlna.service
drwxr-xr-x 12 volumio volumio 4096 Jun 15 18:20 node_modules
-rw-r–r-- 1 volumio volumio 2981 Dec 19 2019 package-lock.json
-rw-r–r-- 1 volumio volumio 447 Dec 19 2019 package.json
-rw-r–r-- 1 volumio volumio 5 Dec 19 2019 requiredConf.json
-rw-r–r-- 1 volumio volumio 370 Dec 19 2019 uninstall.sh
volumio@zerling:~$ ls -al /data/configuration/miscellanea/minidlna
total 12
drwxr-xr-x 2 volumio volumio 4096 Aug 25 15:34 .
drwxr-xr-x 8 volumio volumio 4096 Aug 25 15:34 …
-rw-r–r-- 1 volumio volumio 2315 Aug 25 18:32 config.json
volumio@zerling:~$

So, the plugin’s files still exist. You could try to reinstall the missing software with:

sudo apt-get update
sudo apt-get -y install minidlna
sudo rm /etc/minidlna.conf
sudo chown -R volumio:volumio /var/cache/minidlna/

Then make another attempt on enabling the plugin. For the moment don’t try to uninstall the plugin.

[quote=“gvolt, post:18, topic:40832”]
sudo apt-get update
Each command one by one? or copy all lines at same time?

One by one. Wait until each command has finished executing.

volumio@zerling:~$ ls -al /data/plugins/miscellanea/minidlna
total 104
drwxr-xr-x 4 volumio volumio 4096 Jun 15 18:23 .
drwxr-xr-x 3 volumio volumio 4096 Jun 15 18:20 …
-rw-r–r-- 1 volumio volumio 35626 Dec 19 2019 UIConfig.json
-rw-r–r-- 1 volumio volumio 2316 Jun 15 18:23 config.json
-rw-r–r-- 1 volumio volumio 29 Dec 19 2019 gitignore
drwxr-xr-x 2 volumio volumio 4096 Jun 15 18:20 i18n
-rw-r–r-- 1 volumio volumio 11390 Dec 19 2019 index.js
-rw-r–r-- 1 volumio volumio 963 Dec 19 2019 install.sh
-rw-r–r-- 1 volumio volumio 5779 Dec 19 2019 minidlna.conf.tmpl
-rw-r–r-- 1 volumio volumio 440 Dec 19 2019 minidlna.service
drwxr-xr-x 12 volumio volumio 4096 Jun 15 18:20 node_modules
-rw-r–r-- 1 volumio volumio 2981 Dec 19 2019 package-lock.json
-rw-r–r-- 1 volumio volumio 447 Dec 19 2019 package.json
-rw-r–r-- 1 volumio volumio 5 Dec 19 2019 requiredConf.json
-rw-r–r-- 1 volumio volumio 370 Dec 19 2019 uninstall.sh
volumio@zerling:~$ ls -al /data/configuration/miscellanea/minidlna
total 12
drwxr-xr-x 2 volumio volumio 4096 Aug 25 15:34 .
drwxr-xr-x 8 volumio volumio 4096 Aug 25 15:34 …
-rw-r–r-- 1 volumio volumio 2315 Aug 25 18:32 config.json
volumio@zerling:~$ ^C
volumio@zerling:~$ sudo apt-get update
Hit http://archive.volumio.org jessie InRelease
Hit http://archive.volumio.org jessie InRelease
Hit http://archive.volumio.org jessie/main Sources
Hit http://archive.volumio.org jessie/contrib Sources
Hit http://archive.volumio.org jessie/non-free Sources
Hit http://archive.volumio.org jessie/rpi Sources
Hit http://archive.volumio.org jessie/main armhf Packages
Hit http://archive.volumio.org jessie/contrib armhf Packages
Hit http://archive.volumio.org jessie/non-free armhf Packages
Hit http://archive.volumio.org jessie/rpi armhf Packages
Hit http://archive.volumio.org jessie/main Sources
Hit http://archive.volumio.org jessie/ui Sources
Hit http://archive.volumio.org jessie/main armhf Packages
Hit http://archive.volumio.org jessie/ui armhf Packages
Ign http://archive.volumio.org jessie/contrib Translation-en
Ign http://archive.volumio.org jessie/main Translation-en
Ign http://archive.volumio.org jessie/non-free Translation-en
Ign http://archive.volumio.org jessie/rpi Translation-en
Ign http://archive.volumio.org jessie/main Translation-en
Ign http://archive.volumio.org jessie/ui Translation-en
Reading package lists… Done
volumio@zerling:~$ sudo apt-get -y install minidlna
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
libexif12 libjpeg8
The following NEW packages will be installed:
libexif12 libjpeg8 minidlna
0 upgraded, 3 newly installed, 0 to remove and 24 not upgraded.
Need to get 0 B/543 kB of archives.
After this operation, 2401 kB of additional disk space will be used.
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libexif12:armhf.
(Reading database … 20542 files and directories currently installed.)
Preparing to unpack …/libexif12_0.6.21-2_armhf.deb …
Unpacking libexif12:armhf (0.6.21-2) …
Selecting previously unselected package libjpeg8:armhf.
Preparing to unpack …/libjpeg8_8d1-2_armhf.deb …
Unpacking libjpeg8:armhf (8d1-2) …
Selecting previously unselected package minidlna.
Preparing to unpack …/minidlna_1.1.2+dfsg-1.1+b1_armhf.deb …
Unpacking minidlna (1.1.2+dfsg-1.1+b1) …
Processing triggers for systemd (215-17+deb8u8) …
Setting up libexif12:armhf (0.6.21-2) …
Setting up libjpeg8:armhf (8d1-2) …
Setting up minidlna (1.1.2+dfsg-1.1+b1) …
Failed to start minidlna.service: Unit minidlna.service failed to load: Invalid argu ment. See system logs and ‘systemctl status minidlna.service’ for details.
invoke-rc.d: initscript minidlna, action “start” failed.
dpkg: error processing package minidlna (–configure):
subprocess installed post-installation script returned error exit status 6
Processing triggers for libc-bin (2.19-18+deb8u10) …
Processing triggers for systemd (215-17+deb8u8) …
Errors were encountered while processing:
minidlna
E: Sub-process /usr/bin/dpkg returned an error code (1)
volumio@zerling:~$ sudo rm /etc/minidlna.conf
volumio@zerling:~$ sudo chown -R volumio:volumio /var/cache/minidlna/
[sudo] password for volumio:
volumio@zerling:~$

the second command line results encountered a error.

Check if /etc/systemd/system/minidlna.service still exists and has the content posted previously. If so try to start the plugin and maybe check the status of minidlna.service again.

Edit: @jepinzonh and I have worked it out using PM. The issue has been solved by manually reinstalling the missing software as proposed above. Last remaining culprit was to correct the minidlna.service file whose content had an error that initially crept into my post (which has already been edited and corrected).