LogitechMediaServer (LMS) on FreeNAS

make-nz

Dabbler
Joined
Apr 5, 2016
Messages
20

Remote Music Libraries not working right…!?

I set up a fresh Basejail and installed LMS via lms_installer
FreeBSD LMS-8 12.2-RELEASE-p11 FreeBSD 12.2-RELEASE-p11 75566f060d4(HEAD) TRUENAS amd64

Logitech Media Server Version: 8.2.1 - 1632112486 @ audiodigitale.eu 01-10-2021
Hostname: LMS-8
Server IP Address: 192.168.x.x
Server HTTP Port Number: 9000
Operating system: freebsd - EN - UTF8
Platform Architecture: amd64-freebsd
Perl Version: 5.34.0 - amd64-freebsd-thread-multi
Audio::Scan: 1.05
IO::Socket::SSL: 2.072
Database Version: DBD::SQLite 1.66 (sqlite 3.32.3)

In "Remote Music Libraries" enable this option

Enabled, look for other UPnP/DLNA media servers.

and see my DLNA servers…

But only the Windows Server and KODI return proper file lists I can play — all others only return empty dir/folder listings!


In an older Jail with an older install, all Servers are working fine:

FreeBSD LMS8 12.2-RELEASE-p11 FreeBSD 12.2-RELEASE-p11 75566f060d4(HEAD) TRUENAS amd64

Logitech Media Server Version: 8.0.0 - 1598791476 @ audiodigitale.eu 31-08-2020
Hostname: LMS8
Server IP Address: 192.168.x.x
Server HTTP Port Number: 9000
Operating system: freebsd - EN - UTF8
Platform Architecture: amd64-freebsd
Perl Version: 5.30.3 - amd64-freebsd-thread-multi
Audio::Scan: 1.02
IO::Socket::SSL: 2.068
Database Version: DBD::SQLite 1.58 (sqlite 3.22.0)


Anyone got this issue, too?
Anyone willing to test?

Cheers
 

Attachments

  • DLNA_03.png
    DLNA_03.png
    28.7 KB · Views: 282
Last edited:

SimoneF

Explorer
Joined
Feb 9, 2019
Messages
59
mmm I have never used that specific function but today I've release the update with the bump to 8.3 version. You can try and see if it solves your problem
 

cap

Contributor
Joined
Mar 17, 2016
Messages
122
I tried to install Logitech Media Server via plugin and I get the following error message. I am using TrueNAS Core 13.

Install

Error: lms1 had a failure Exception: RuntimeError Message: Last 10 lines: tar: Error opening archive: Unrecognized archive format Partial plugin destroyed

I have a Logitech Media Server running in a jail. I installed it myself a year ago. At that time there was no plugin. I have unfortunately forgotten how I did that.

Wanted to install a second Logitech Media Server, because there are two PiCoreplayer, which should be operated independently.

I will probably switch to Scale. I'm just not sure if I should do that yet.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,464

janw_

Cadet
Joined
Feb 21, 2023
Messages
3
I have done just that - still can't see the files (or even the mount point)
Hi! Did you ever figured it out? I've got the exact same problem. Created identical slimserv user and group on TrueNAS with the same ids. Gave both of them permission to my dataset (recursively) and added the mount in the jail. In the jail, slimserv user can see and modify the mounted directory, yet Logitech Media Server does not see it and is unable to add it to the library.

Thanks!
 

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,945
I did - BUT I am no longer using Core
 

sonyhome

Dabbler
Joined
Mar 23, 2023
Messages
14
I also get the error message trying to install LMS as a plugin, apparently after it fails to untar the LMS archive. Any solution?

Error: slimserver had a failure Exception: RuntimeError Message: Last 10 lines: tar: Error opening archive: Unrecognized archive format Partial plugin destroyed
CLOSE

I am new to TrueNAS and doing my first install with Core 13, trying to get away from QNAP. If it's not the right way, if there's a wiki on how to install LMS -as a plugin or not- I would appreciate a pointer. If I switch to Scale would that solve the issue and is it more future proof?

Thanks!
 

sonyhome

Dabbler
Joined
Mar 23, 2023
Messages
14
I also get the error message trying to install LMS as a plugin, apparently after it fails to untar the LMS archive. Any solution?



I am new to TrueNAS and doing my first install with Core 13, trying to get away from QNAP. If it's not the right way, if there's a wiki on how to install LMS -as a plugin or not- I would appreciate a pointer. If I switch to Scale would that solve the issue and is it more future proof?

Thanks!
I re-ran and filmed to see the flashing messages before the last one:
downloading the latest stable version of LMS
tar: error opening archive: unrecognized archive type
so it looks like tar is given either a bad file or a non-tar/tgz archive by accident?
 

whywork

Cadet
Joined
Mar 30, 2023
Messages
4
Hi Sonyhome

I feel your pain. I too, am having trouble with LMS on FreeNAS.

Used community plugin for LMS on FreeNAS 12. Now on FreeNAS 13. LMs is working BUT
Running Plugin/Jail update gives hundred of error messages that scroll by with final error - no update.

Bare metal install of FreeNAS 13 tried community plugin for LMS and get same error message as you:
downloading the latest stable version of LMS
tar: error opening archive: unrecognized archive type

Tried Simone https://audiodigitale.eu/?p=87 installer on new clone Jail

Installer downloads and seems to install LMS (trying #3 update says current LMS installed) BUT
never asked questions about "test"
Also portmaster audio/logitechmediaserver fails with Portmaster DIRMaster cannot be empty


So for me, new install with LMS community plugin fails on FreeNAS 13. Error messages scroll by and disappear (any log file to peruse?)

Also while I thank Simone, I can't get his installer get working LMS on FreeNAS 13 with installation error messages and an inscrutable portmaster error message.

Yikes
 

SimoneF

Explorer
Joined
Feb 9, 2019
Messages
59
Hi Sonyhome

I feel your pain. I too, am having trouble with LMS on FreeNAS.

Used community plugin for LMS on FreeNAS 12. Now on FreeNAS 13. LMs is working BUT
Running Plugin/Jail update gives hundred of error messages that scroll by with final error - no update.

Bare metal install of FreeNAS 13 tried community plugin for LMS and get same error message as you:
downloading the latest stable version of LMS
tar: error opening archive: unrecognized archive type

Tried Simone https://audiodigitale.eu/?p=87 installer on new clone Jail

Installer downloads and seems to install LMS (trying #3 update says current LMS installed) BUT
never asked questions about "test"
Also portmaster audio/logitechmediaserver fails with Portmaster DIRMaster cannot be empty


So for me, new install with LMS community plugin fails on FreeNAS 13. Error messages scroll by and disappear (any log file to peruse?)

Also while I thank Simone, I can't get his installer get working LMS on FreeNAS 13 with installation error messages and an inscrutable portmaster error message.

Yikes
Hi,

Would you kindly post what error messages you get during the installation?

Thanks
 

sonyhome

Dabbler
Joined
Mar 23, 2023
Messages
14
Hi,

Would you kindly post what error messages you get during the installation?

Thanks
Hello,

Are you still maintaining the plugin?
My previous posts have the error messages:
downloading the latest stable version of LMS
tar: error opening archive: unrecognized archive type
slimserver had a failure Exception: RuntimeError Message: Last 10 lines: tar: Error opening archive: Unrecognized archive format Partial plugin destroyed
Also I installed LMS in a jail manually via portmaster and it worked, as I describe here:
LMS Logitech Media Server installation
There are still 2 issues:
- for some reason I can't log into mysqueezebox.com from my TrueNAS install
- portmaster is linked to LMS 8.2 not the latest 8.4. I may try to bypass that issue OR see if I can submit a fix to portmaster for 8.4, but I need to learn more. The portmaster package has no maintainer currently so it's not a safe/permanent solution, it can break.

Once all that is figured out I will post a last update on my recipe. If your plugin is fixed, I will also link it as a working solution (I like comprehensive documentations :P )
 

SimoneF

Explorer
Joined
Feb 9, 2019
Messages
59
Hello,

Are you still maintaining the plugin?
My previous posts have the error messages:

Also I installed LMS in a jail manually via portmaster and it worked, as I describe here:
LMS Logitech Media Server installation
There are still 2 issues:
- for some reason I can't log into mysqueezebox.com from my TrueNAS install
- portmaster is linked to LMS 8.2 not the latest 8.4. I may try to bypass that issue OR see if I can submit a fix to portmaster for 8.4, but I need to learn more. The portmaster package has no maintainer currently so it's not a safe/permanent solution, it can break.

Once all that is figured out I will post a last update on my recipe. If your plugin is fixed, I will also link it as a working solution (I like comprehensive documentations :P )
Yes I'm still maintaining the installer. Latest update on 19/01/2023.
I just tried and it works. I checked the downloaded files and the archive is not corrupted. Would you please try again? Maybe the download failed.

I can't give support for the portmaster issue since I'm not the maintainer of the port.
 

sonyhome

Dabbler
Joined
Mar 23, 2023
Messages
14
Yes I'm still maintaining the installer. Latest update on 19/01/2023.
I just tried and it works. I checked the downloaded files and the archive is not corrupted. Would you please try again? Maybe the download failed.

I can't give support for the portmaster issue since I'm not the maintainer of the port.
If you don't mind I will have to try in a week+ as I'm traveling :) I will report back at that point. I did try to install a few times. I wonder if plugin install is non deterministic, and for some reason you have something installed it relies on for LMS, that your NAS that is not on a vanilla install. Like an archiver other than gzip.
If you tell me where I can find install logs of plugins and if the installer is verbose with the list of files it loads and tools it uses to unzip, then I might RCA quickly.
 

whywork

Cadet
Joined
Mar 30, 2023
Messages
4
Thanks Simone for your reply.

Please note two major errors:
1) portmaster
portmaster audio/logitechmediaserver

===>>> The value of PORTSDIR cannot be empty
===>>> Aborting update
2) initial install does not seem to report version informaton
What do you want to do?
1. Install Logitech Media Server
2. Uninstall Logitech Media Server
3. Check for updates
4. Exit
3

===> Checking installer updates ...

It seems that the version file is missing or corrupted; downloading the latestversion...
override rwxr-xr-x root/wheel uarch for /usr/local/bin/lms_installer? y
rm: /usr/local/etc/lms_installer/installer_version: No such file or directory

===>Updated successfully!<===
Restart lms_installer please!

Entire Install log

FreeBSD 13.1-RELEASE-p7 n245418-79e75956dbb TRUENAS

Welcome to FreeBSD!

Release Notes, Errata: https://www.FreeBSD.org/releases/
Security Advisories: https://www.FreeBSD.org/security/
FreeBSD Handbook: https://www.FreeBSD.org/handbook/
FreeBSD FAQ: https://www.FreeBSD.org/faq/
Questions List: https://lists.FreeBSD.org/mailman/listinfo/freebsd-questions/
FreeBSD Forums: https://forums.FreeBSD.org/

Documents installed with the system are in the /usr/local/share/doc/freebsd/
directory, or can be installed later with: pkg install en-freebsd-doc
For other languages, replace "en" with a language code like de or fr.

Show the version of FreeBSD installed: freebsd-version ; uname -a
Please include that output and any error messages when posting questions.
Introduction to manual pages: man man
FreeBSD directory layout: man hier

To change this login announcement, see motd(5).
root@LMS:~ # pkg install curl
The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]: y
Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:13:amd64/quarterly, please wait...
Verifying signature with trusted certificate pkg.freebsd.org.2013102301... done
[LMS] Installing pkg-1.19.0...
[LMS] Extracting pkg-1.19.0: 100%
Updating FreeBSD repository catalogue...
[LMS] Fetching meta.conf: 100% 163 B 0.2kB/s 00:01
[LMS] Fetching packagesite.pkg: 100% 6 MiB 1.7MB/s 00:04
Processing entries: 100%
FreeBSD repository update completed. 32415 packages processed.
All repositories are up to date.
Updating database digests format: 100%
The following 9 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
ca_root_nss: 3.86
curl: 7.88.1
gettext-runtime: 0.21.1
indexinfo: 0.3.1
libidn2: 2.3.4
libnghttp2: 1.48.0
libpsl: 0.21.1_6
libssh2: 1.10.0_1,3
libunistring: 1.1

Number of packages to be installed: 9

The process will require 11 MiB more space.
3 MiB to be downloaded.

Proceed with this action? [y/N]: y
[LMS] [1/9] Fetching indexinfo-0.3.1.pkg: 100% 6 KiB 5.7kB/s 00:01
[LMS] [2/9] Fetching libnghttp2-1.48.0.pkg: 100% 128 KiB 130.7kB/s 00:01
[LMS] [3/9] Fetching libidn2-2.3.4.pkg: 100% 134 KiB 137.1kB/s 00:01
[LMS] [4/9] Fetching libunistring-1.1.pkg: 100% 555 KiB 568.6kB/s 00:01
[LMS] [5/9] Fetching libssh2-1.10.0_1,3.pkg: 100% 248 KiB 254.4kB/s 00:01
[LMS] [6/9] Fetching libpsl-0.21.1_6.pkg: 100% 63 KiB 64.2kB/s 00:01
[LMS] [7/9] Fetching curl-7.88.1.pkg: 100% 1 MiB 1.5MB/s 00:01
[LMS] [8/9] Fetching gettext-runtime-0.21.1.pkg: 100% 166 KiB 170.3kB/s 00:01
[LMS] [9/9] Fetching ca_root_nss-3.86.pkg: 100% 267 KiB 273.0kB/s 00:01
Checking integrity... done (0 conflicting)
[LMS] [1/9] Installing indexinfo-0.3.1...
[LMS] [1/9] Extracting indexinfo-0.3.1: 100%
[LMS] [2/9] Installing libunistring-1.1...
[LMS] [2/9] Extracting libunistring-1.1: 100%
[LMS] [3/9] Installing libidn2-2.3.4...
[LMS] [3/9] Extracting libidn2-2.3.4: 100%
[LMS] [4/9] Installing gettext-runtime-0.21.1...
[LMS] [4/9] Extracting gettext-runtime-0.21.1: 100%
[LMS] [5/9] Installing libnghttp2-1.48.0...
[LMS] [5/9] Extracting libnghttp2-1.48.0: 100%
[LMS] [6/9] Installing libssh2-1.10.0_1,3...
[LMS] [6/9] Extracting libssh2-1.10.0_1,3: 100%
[LMS] [7/9] Installing libpsl-0.21.1_6...
[LMS] [7/9] Extracting libpsl-0.21.1_6: 100%
[LMS] [8/9] Installing ca_root_nss-3.86...
[LMS] [8/9] Extracting ca_root_nss-3.86: 100%
[LMS] [9/9] Installing curl-7.88.1...
[LMS] [9/9] Extracting curl-7.88.1: 100%
=====
Message from ca_root_nss-3.86:

--
FreeBSD does not, and can not warrant that the certification authorities
whose certificates are included in this package have in any way been
audited for trustworthiness or RFC 3647 compliance.

Assessment and verification of trust is the complete responsibility of the
system administrator.


This package installs symlinks to support root certificates discovery by
default for software that uses OpenSSL.

This enables SSL Certificate Verification by client software without manual
intervention.

If you prefer to do this manually, replace the following symlinks with
either an empty file or your site-local certificate bundle.

* /etc/ssl/cert.pem
* /usr/local/etc/ssl/cert.pem
* /usr/local/openssl/cert.pem
root@LMS:~ # curl -A "audiodigitale" -o /usr/local/bin/lms_installer https://audiodigitale.eu/repo/freebsd/lms_installer
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 155k 100 155k 0 0 100k 0 0:00:01 0:00:01 --:--:-- 100k
root@LMS:~ # chmod +x /usr/local/bin/lms_installer
root@LMS:~ # lms_installer
Logitech Media Server installation manager

What do you want to do?
1. Install Logitech Media Server
2. Uninstall Logitech Media Server
3. Check for updates
4. Exit
1

Available versions:
1- Logitech Media Server 8.0.0
1

Installing version: 8.0.0

===> Installing dependencies...

Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 3 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
lame: 3.100_4
libiconv: 1.17
libogg: 1.3.5,4

Number of packages to be installed: 3

The process will require 5 MiB more space.
1 MiB to be downloaded.

Proceed with this action? [y/N]: y
[LMS] [1/3] Fetching libiconv-1.17.pkg: 100% 623 KiB 637.6kB/s 00:01
[LMS] [2/3] Fetching libogg-1.3.5,4.pkg: 100% 192 KiB 197.0kB/s 00:01
[LMS] [3/3] Fetching lame-3.100_4.pkg: 100% 357 KiB 365.7kB/s 00:01
Checking integrity... done (0 conflicting)
[LMS] [1/3] Installing libiconv-1.17...
[LMS] [1/3] Extracting libiconv-1.17: 100%
[LMS] [2/3] Installing libogg-1.3.5,4...
[LMS] [2/3] Extracting libogg-1.3.5,4: 100%
[LMS] [3/3] Installing lame-3.100_4...
[LMS] [3/3] Extracting lame-3.100_4: 100%

===> Adding slimserv user and group...

===> Creating Logitech Media Server folders...

===> Fixing permissions...

===> Downloading the latest version of Logitechmediaserver...

===> Setting up folder permissions...

Do you want to start Logitech Media Server at boot? (0 = no; 1 = yes)?
1


########################################################
Logitech Media Server is installed, if you find any bug or something is not working as it should please contact me at https://audiodigitale.eu
########################################################

What do you want to do?
1. Install Logitech Media Server
2. Uninstall Logitech Media Server
3. Check for updates
4. Exit
4
Goodbye!
root@LMS:~ # pkg install portmaster
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
portmaster: 3.22

Number of packages to be installed: 1

42 KiB to be downloaded.

Proceed with this action? [y/N]: y
[LMS] [1/1] Fetching portmaster-3.22.pkg: 100% 42 KiB 42.6kB/s 00:01
Checking integrity... done (0 conflicting)
[LMS] [1/1] Installing portmaster-3.22...
[LMS] [1/1] Extracting portmaster-3.22: 100%
root@LMS:~ # portmaster audio/logitechmediaserver

===>>> The value of PORTSDIR cannot be empty
===>>> Aborting update

root@LMS:~ # lms_installer
Logitech Media Server installation manager

What do you want to do?
1. Install Logitech Media Server
2. Uninstall Logitech Media Server
3. Check for updates
4. Exit
3

===> Checking installer updates ...

It seems that the version file is missing or corrupted; downloading the latestversion...
override rwxr-xr-x root/wheel uarch for /usr/local/bin/lms_installer? y
rm: /usr/local/etc/lms_installer/installer_version: No such file or directory

===>Updated successfully!<===
Restart lms_installer please!
root@LMS:~ # lms_installer
Logitech Media Server installation manager

What do you want to do?
1. Install Logitech Media Server
2. Uninstall Logitech Media Server
3. Check for updates
4. Exit
3

===> Checking installer updates ...

Current installer version: 21-08-2021. No updates available!

===> Checking Logitech Media Server updates ...

Current logitechmediaserver version: 19-01-2023. No updates available!


What do you want to do?
1. Install Logitech Media Server
2. Uninstall Logitech Media Server
3. Check for updates
4. Exit
4
Goodbye!
root@LMS:



Thanks for looking at this
 

sonyhome

Dabbler
Joined
Mar 23, 2023
Messages
14
Yes I'm still maintaining the installer. Latest update on 19/01/2023.
I just tried and it works. I checked the downloaded files and the archive is not corrupted. Would you please try again? Maybe the download failed.

I can't give support for the portmaster issue since I'm not the maintainer of the port.
FIY: I finally updated my install to LMS 8.3 because someone updated the portmaster package on 04/25/23, as I noted in my TrueNAS Core LMS thread.
 

whywork

Cadet
Joined
Mar 30, 2023
Messages
4
Hi,

Deleted working LMS plugin on Truenas Core 13.

Tried to recreate with community LMS plugin.

starts and downloads stuff like perl, etc

Then

Error: TrueNasLMS had a failure Exception: RuntimeError Message: Last 10 lines: tar: Error opening archive: Unrecognized archive format Partial plugin destroyed

tried a few times, no joy.

Bleh!
 

sonyhome

Dabbler
Joined
Mar 23, 2023
Messages
14
Error: TrueNasLMS had a failure Exception: RuntimeError Message: Last 10 lines: tar: Error opening archive: Unrecognized archive format Partial plugin destroyed
That's why I looked into the manual install you used. Same error I had (post #154), related to a tar file missing. I guess thank you for testing that for me, I had said I was going to try it.
 
Top