LogitechMediaServer (LMS) on FreeNAS

Charlie86

Explorer
Joined
Sep 28, 2017
Messages
71
Hi I am trying to install LMS on FreeNAS with this instructions.

https://audiodigitale.eu/?p=87

I created new jail and type

Code:
portmaster audio/logitechmediaserver


after lots of installing I am stuck with error below.

Can some one please help me how to solve this. Thank you :)

Code:

===>>> Installation of shells/bash (bash-4.4.12_2) succeeded



===>>> Returning to dependency check for audio/logitechmediaserver

===>>> Dependency check complete for audio/logitechmediaserver


===>  Cleaning for logitechmediaserver-7.9.0.g2016.09.30_2

make: don't know how to make pretty-flavors-package-names. Stop

===>  License SDL needs confirmation, will ask later

===>   logitechmediaserver-7.9.0.g2016.09.30_2 depends on file: /usr/local/sbin/pkg - found

=> Logitech-slimserver-7.9.0.g2016.09.30-c835a1f_GH0.tar.gz doesn't seem to exist in /usr/ports/distfiles//.

=> Attempting to fetch https://codeload.github.com/Logitech/slimserver/tar.gz/c835a1f?dummy=/Logitech-slimserver-7.9.0.g2016.09.30-c835a1f_GH0.tar.gz

fetch: https://codeload.github.com/Logitech/slimserver/tar.gz/c835a1f?dummy=/Logitech-slimserver-7.9.0.g2016.09.30-c835a1f_GH0.tar.gz: size unknown

fetch: https://codeload.github.com/Logitech/slimserver/tar.gz/c835a1f?dummy=/Logitech-slimserver-7.9.0.g2016.09.30-c835a1f_GH0.tar.gz: size of remote file is not known

Logitech-slimserver-7.9.0.g2016.09.30-c835a1f_		 179 MB 7043 kBps 00m26s

=> Fetched file size mismatch (expected 187923230, actual 187921541)

=> Trying next site

=> Attempting to fetch http://distcache.FreeBSD.org/ports-distfiles/Logitech-slimserver-7.9.0.g2016.09.30-c835a1f_GH0.tar.gz

fetch: http://distcache.FreeBSD.org/ports-distfiles/Logitech-slimserver-7.9.0.g2016.09.30-c835a1f_GH0.tar.gz: Not Found

=> Couldn't fetch it - please try to retrieve this

=> port manually into /usr/ports/distfiles// and try again.

*** Error code 1


Stop.

make[1]: stopped in /usr/ports/audio/logitechmediaserver

*** Error code 1


Stop.

make: stopped in /usr/ports/audio/logitechmediaserver


===>>> make build failed for audio/logitechmediaserver

===>>> Aborting update


===>>> There are messages from installed ports to display,

	  but first take a moment to review the error messages

	  above.  Then press Enter when ready to proceed. 

 
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
Update your jail before you attempt the install. pkg upgrade
 

Charlie86

Explorer
Joined
Sep 28, 2017
Messages
71
Thank you,

I did update jail like you suggest me.

Now I am stuck here

Code:
===>>> Starting build for audio/logitechmediaserver <<<===


===>>> Starting check for build dependencies

===>>> Gathering dependency list for audio/logitechmediaserver from ports

===>>> Dependency check complete for audio/logitechmediaserver


===>  Cleaning for logitechmediaserver-7.9.0.g2016.09.30_2

make: don't know how to make pretty-flavors-package-names. Stop

===>  License SDL needs confirmation, will ask later

===>   logitechmediaserver-7.9.0.g2016.09.30_2 depends on file: /usr/local/sbin/pkg - found

=> Logitech-slimserver-7.9.0.g2016.09.30-c835a1f_GH0.tar.gz doesn't seem to exist in /usr/ports/distfiles//.

=> Attempting to fetch https://codeload.github.com/Logitech/slimserver/tar.gz/c835a1f?dummy=/Logitech-slimserver-7.9.0.g2016.09.30-c835a1f_GH0.tar.gz

fetch: https://codeload.github.com/Logitech/slimserver/tar.gz/c835a1f?dummy=/Logitech-slimserver-7.9.0.g2016.09.30-c835a1f_GH0.tar.gz: size unknown

fetch: https://codeload.github.com/Logitech/slimserver/tar.gz/c835a1f?dummy=/Logitech-slimserver-7.9.0.g2016.09.30-c835a1f_GH0.tar.gz: size of remote file is not known

Logitech-slimserver-7.9.0.g2016.09.30-c835a1f_		 179 MB 6178 kBps 00m30s

=> Fetched file size mismatch (expected 187923230, actual 187921541)

=> Trying next site

=> Attempting to fetch http://distcache.FreeBSD.org/ports-distfiles/Logitech-slimserver-7.9.0.g2016.09.30-c835a1f_GH0.tar.gz

fetch: http://distcache.FreeBSD.org/ports-distfiles/Logitech-slimserver-7.9.0.g2016.09.30-c835a1f_GH0.tar.gz: Not Found

=> Couldn't fetch it - please try to retrieve this

=> port manually into /usr/ports/distfiles// and try again.

*** Error code 1


Stop.

make[1]: stopped in /usr/ports/audio/logitechmediaserver

*** Error code 1


Stop.

make: stopped in /usr/ports/audio/logitechmediaserver


===>>> make build failed for audio/logitechmediaserver

===>>> Aborting update



===>>> You can restart from the point of failure with this command line:

	  portmaster <flags> audio/logitechmediaserver audio/faad audio/mac devel/yasm audio/sox audio/flac audio/libogg audio/gsm audio/lame audio/libao audio/libid3tag audio/libmad audio/libsndfile audio/libvorbis audio/opusfile audio/opus devel/libltdl 


This command has been saved to /tmp/portmasterfail.txt


root@LMS:/ # 



What is reason for
Code:
Fetched file size mismatch (expected 187923230, actual 187921541)
?
 
D

dlavigne

Guest
That message could mean that there's a partial download. You can clean that out by using make distclean in the port's directory.

If that doesn't fix it, double-check that you don't have a connectivity issue that is preventing the completion of the file download.
 

Charlie86

Explorer
Joined
Sep 28, 2017
Messages
71
Hi, I did try to use command
Code:
root@LMS:/usr/ports # make distclean logitechmediaserver


But problem still remains.

Internet is working OK.

Code:
root@LMS:/ # ping google.com

PING google.com (216.58.201.110): 56 data bytes

64 bytes from 216.58.201.110: icmp_seq=0 ttl=56 time=28.572 ms

64 bytes from 216.58.201.110: icmp_seq=1 ttl=56 time=28.061 ms

64 bytes from 216.58.201.110: icmp_seq=2 ttl=56 time=28.282 ms

64 bytes from 216.58.201.110: icmp_seq=3 ttl=56 time=28.091 ms

64 bytes from 216.58.201.110: icmp_seq=4 ttl=56 time=28.906 ms

64 bytes from 216.58.201.110: icmp_seq=5 ttl=56 time=28.459 ms

64 bytes from 216.58.201.110: icmp_seq=6 ttl=56 time=28.650 ms

64 bytes from 216.58.201.110: icmp_seq=7 ttl=56 time=27.622 ms


Any other suggestion?
 

wblock

Documentation Engineer
Joined
Nov 14, 2014
Messages
1,506
Manually fetch the distfile from one of the other locations. Untested...
Code:
# cd /usr/ports/audio/logitechmediaserver
# make fetch-urlall-list
https://codeload.github.com/Logitech/slimserver/tar.gz/762b5cb?dummy=/Logitech-slimserver-7.9.1.g2017.07.11-762b5cb_GH0.tar.gz
http://distcache.FreeBSD.org/ports-distfiles/Logitech-slimserver-7.9.1.g2017.07.11-762b5cb_GH0.tar.gz
https://codeload.github.com/Logitech/slimserver-vendor/tar.gz/1463b00?dummy=/Logitech-slimserver-vendor-1463b00_GH0.tar.gz
http://distcache.FreeBSD.org/ports-distfiles/Logitech-slimserver-vendor-1463b00_GH0.tar.gz
# fetch -o /usr/ports/distfiles/ https://codeload.github.com/Logitech/slimserver-vendor/tar.gz/1463b00?dummy=/Logitech-slimserver-vendor-1463b00_GH0.tar.gz

If the same file from other locations is still short, something is wrong with the port. Update the ports tree and try again, in the hope that it has not been fixed.
If that still does not work, enter a bug in the FreeBSD bug tracker for that port.
 

Charlie86

Explorer
Joined
Sep 28, 2017
Messages
71
All links are dead except
Code:
https://codeload.github.com/Logitech/slimserver-vendor/tar.gz/1463b00?dummy=/Logitech-slimserver-vendor-1463b00_GH0.tar.gz

but if I try to download it with fetch or wget I am getting error "No match". So I download it with my computer and upload it to my local server and download it with fetch, that works fine, but now I am stuck how to install
Logitech-slimserver-vendor-1463b00_GH0.tar (when I download it with my mac it automatically removed ".gz") If I type
make install Logitech-slimserver-vendor-1463b00_GH0.tar

I tries to download it from others sources again. How can I install it from file which I upload manually?

I am greenhorn in BSD world,..

Code:
root@LMS:/usr/ports/audio/logitechmediaserver # ls

distinfo			pkg-descr			slimserver-vendor-1463b00.tar

files				pkg-message

Makefile			pkg-plist

root@LMS:/usr/ports/audio/logitechmediaserver # make install slimserver-vendor-1463b00_GH0.tar

===>  License SDL needs confirmation, will ask later

===>   logitechmediaserver-7.9.0.g2016.09.30_2 depends on file: /usr/local/sbin/pkg - found

=> Logitech-slimserver-7.9.0.g2016.09.30-c835a1f_GH0.tar.gz doesn't seem to exist in /usr/ports/distfiles/.

=> Attempting to fetch https://codeload.github.com/Logitech/slimserver/tar.gz/c835a1f?dummy=/Logitech-slimserver-7.9.0.g2016.09.30-c835a1f_GH0.tar.gz

fetch: https://codeload.github.com/Logitech/slimserver/tar.gz/c835a1f?dummy=/Logitech-slimserver-7.9.0.g2016.09.30-c835a1f_GH0.tar.gz: size mismatch: expected 187923230, actual 187921541

=> Attempting to fetch http://distcache.FreeBSD.org/ports-distfiles/Logitech-slimserver-7.9.0.g2016.09.30-c835a1f_GH0.tar.gz

fetch: http://distcache.FreeBSD.org/ports-distfiles/Logitech-slimserver-7.9.0.g2016.09.30-c835a1f_GH0.tar.gz: Not Found

=> Couldn't fetch it - please try to retrieve this

=> port manually into /usr/ports/distfiles/ and try again.

*** Error code 1


Stop.

make[1]: stopped in /usr/ports/audio/logitechmediaserver

*** Error code 1


Stop.

make: stopped in /usr/ports/audio/logitechmediaserver

root@LMS:/usr/ports/audio/logitechmediaserver # 

 

mrMuppet

Contributor
Joined
Mar 14, 2014
Messages
192
Just deactivate the Tests in the first Dialog during build process (last line) ! Then the ports build should work!

Gesendet von meinem ONEPLUS A3003 mit Tapatalk
 

mrMuppet

Contributor
Joined
Mar 14, 2014
Messages
192
Also did that. Like it written on tutorial. I am lost,.. :)
Here is what I did:



portsnap fetch extract
cd /usr/ports/.../logitechmediaserver/
(tests off)
make install clean
echo 'logitechmediaserver_enable="YES"' >> /etc/rc.conf
service logitechmediaserver start



change Slim/Utils/OS/Custom.pm line 42 from

Code:

} elsif ($dir eq 'strings' || $dir eq 'revision') {

to

Code:

} elsif ($dir =~ /^(?:strings|revision|repositories)$/) {

add to .cshrc

setenv LC_ALL 'de_DE.UTF-8'

setenv LANG 'de_DE.UTF-8'

setenv MM_CHARSET 'UTF-8'

setenv TZ Europe/Berlin

Gesendet von meinem ONEPLUS A3003 mit Tapatalk
 

Charlie86

Explorer
Joined
Sep 28, 2017
Messages
71
Hi, what version of FreeBSD are you running in jail? I have 11.0-RELEASE-p1. FreeNAS is on FreeBSD 11.1. After some googleing I figured out that I can not update jail to 11.1? I try to install it with yours instructions but after command
Code:
make install clean
I get error
Code:
!\ WARNING /!\


Ports Collection support for your FreeBSD version has ended, and no ports are

guaranteed to build on this system. Please upgrade to a supported release.


Because if that i edit make.conf with "ALLOW_UNSUPPORTED_SYSTEM=yes"

After that I was able to start installation, but now I am stuck at
Code:
/!\ WARNING /!\


Ports Collection support for your FreeBSD version has ended, and no ports are

guaranteed to build on this system. Please upgrade to a supported release.


===>  License GPLv3 accepted by the user

===>   help2man-1.47.5 depends on file: /usr/local/sbin/pkg - found

=> help2man-1.47.5.tar.xz doesn't seem to exist in /usr/ports/distfiles/.

=> Attempting to fetch https://ftpmirror.gnu.org/help2man/help2man-1.47.5.tar.xz

help2man-1.47.5.tar.xz						100% of  181 kB 5727 kBps 00m00s

===> Fetching all distfiles required by help2man-1.47.5 for building

===>  Extracting for help2man-1.47.5

=> SHA256 Checksum OK for help2man-1.47.5.tar.xz.

===>  Patching for help2man-1.47.5

===>   help2man-1.47.5 depends on package: p5-Locale-gettext>=0 - not found

/!\ WARNING /!\


Ports Collection support for your FreeBSD version has ended, and no ports are

guaranteed to build on this system. Please upgrade to a supported release.


===>  License ARTPERL10 GPLv2 accepted by the user

===>   p5-Locale-gettext-1.07 depends on file: /usr/local/sbin/pkg - found

=> gettext-1.07.tar.gz doesn't seem to exist in /usr/ports/distfiles/.

=> Attempting to fetch https://cpan.metacpan.org/modules/by-module/Locale/gettext-1.07.tar.gz

gettext-1.07.tar.gz						   100% of 8651  B 7955 kBps 00m00s

===> Fetching all distfiles required by p5-Locale-gettext-1.07 for building

===>  Extracting for p5-Locale-gettext-1.07

=> SHA256 Checksum OK for gettext-1.07.tar.gz.

===>  Patching for p5-Locale-gettext-1.07

===>  Applying FreeBSD patches for p5-Locale-gettext-1.07

===>   p5-Locale-gettext-1.07 depends on executable: msgfmt - found

===>   p5-Locale-gettext-1.07 depends on package: perl5>=5.24<5.25 - found

===>   p5-Locale-gettext-1.07 depends on shared library: libintl.so - found (/usr/local/lib/libintl.so)

===>  Configuring for p5-Locale-gettext-1.07

env: /usr/local/bin/perl5.24.3: No such file or directory

*** Error code 127


Stop.

make[12]: stopped in /usr/ports/devel/p5-Locale-gettext

*** Error code 1


Stop.

make[11]: stopped in /usr/ports/misc/help2man

*** Error code 1


Stop.

make[10]: stopped in /usr/ports/misc/help2man

*** Error code 1


Stop.

make[9]: stopped in /usr/ports/print/texinfo

*** Error code 1


Stop.

make[8]: stopped in /usr/ports/print/texinfo

*** Error code 1


Stop.

make[7]: stopped in /usr/ports/devel/m4

*** Error code 1


Stop.

make[6]: stopped in /usr/ports/devel/m4

*** Error code 1


Stop.

make[5]: stopped in /usr/ports/devel/bison

*** Error code 1


Stop.

make[4]: stopped in /usr/ports/devel/bison

*** Error code 1


Stop.

make[3]: stopped in /usr/ports/shells/bash

*** Error code 1


Stop.

make[2]: stopped in /usr/ports/shells/bash

*** Error code 1


Stop.

make[1]: stopped in /usr/ports/audio/logitechmediaserver

*** Error code 1


Stop.

make: stopped in /usr/ports/audio/logitechmediaserver
 
Last edited by a moderator:

mrMuppet

Contributor
Joined
Mar 14, 2014
Messages
192
Hi, what version of FreeBSD are you running in jail?
I am using 11.1 in my jail. But I think it should be possible to Update, because when you create a jail you can enter the correct Version you want to use.

I create my jails with
iocage create -n "lms" -r 11.1-RELEASE ip4_addr="vnet0|<IP>/<MASK>" defaultrouter="<GATEWAY>" vnet="on" allow_raw_sockets="1" boot="on"

Gesendet von meinem ONEPLUS A3003 mit Tapatalk
 
Last edited by a moderator:

wblock

Documentation Engineer
Joined
Nov 14, 2014
Messages
1,506
but if I try to download it with fetch or wget I am getting error "No match"
That's odd. Are you doing this from inside the jail? That sounds like a shell error.

make install Logitech-slimserver-vendor-1463b00_GH0.tar
Guessing at commands like that will either not work or do something unexpected.

On FreeBSD, port distfiles are saved in /usr/ports/distfiles/. Sometimes in a subdirectory of that. Then you use make install clean to build and install the port. However, it will download and install any other ports that the current one requires first. Before continuing, you should upgrade the jail or at least use the most recent ports in it.

Just deactivate the Tests in the first Dialog during build process (last line) ! Then the ports build should work!
This does not have anything to do with downloading the distfile.
 

Charlie86

Explorer
Joined
Sep 28, 2017
Messages
71
I am using 11.1 in my jail. But I think it should be possible to Update, because when you create a jail you can enter the correct Version you want to use.

I create my jails with
iocage create -n "lms" -r 11.1-RELEASE ip4_addr="vnet0|<IP>/<MASK>" defaultrouter="<GATEWAY>" vnet="on" allow_raw_sockets="1" boot="on"

Gesendet von meinem ONEPLUS A3003 mit Tapatalk

wow, these commands are totally new to me :) I did manage to create new jail, but now I have new problem :). Internet is not working in jail.
This is what I typed in

Code:
root@freenas:/mnt/server/Torrents # iocage create -n "lms2" -r 11.1-RELEASE ip4_addr="vnet0|192.168.178.138/255.255.255.0" defaultrouter="192.168.178.1" vnet="on" allow_raw_sockets="1" boot="on"


Because my knowledge of CLI is limited, I try to config jail internet settings throw webGUI, but jail is not shown in webGUI.

I think problem is because this new jail is not in same directory as other jails.

Code:
root@freenas:/mnt/server/Torrents # jls

   JID  IP Address	  Hostname					  Path

	1				  build_jail					/mnt/server/jails/build_jail

	2				  deluge						/mnt/server/jails/deluge

	3				  DNS						   /mnt/server/jails/DNS

	5				  install_jail				  /mnt/server/jails/install_jail

	7				  plexmediaserver_1			 /mnt/server/jails/plexmediaserver_1

	8				  qbittorrent				   /mnt/server/jails/qbittorrent

	9				  unbound					   /mnt/server/jails/unbound

	10				  VPN						   /mnt/server/jails/VPN

	11				  VPN2						  /mnt/server/jails/VPN2

	18				  LMS						   /mnt/server/jails/LMS

	20				  logitech					  /mnt/server/jails/logitech

	21				  lms2						  /mnt/iocage/jails/lms2/root

How can I move jail to directory "server"?

One problem open five new problems :)

Thanks for yours help and sharing knowledge
Guessing at commands like that will either not work or do something unexpected.

On FreeBSD, port distfiles are saved in /usr/ports/distfiles/. Sometimes in a subdirectory of that. Then you use make install clean to build and install the port. However, it will download and install any other ports that the current one requires first. Before continuing, you should upgrade the jail or at least use the most recent ports in it.
Thanks for yours info!
 
Last edited by a moderator:

mrMuppet

Contributor
Joined
Mar 14, 2014
Messages
192
To get Internet access in you new jail try building it with
iocage create -n "lms2" -r 11.1-RELEASE ip4_addr="vnet0|192.168.178.138/24" defaultrouter="192.168.178.1" vnet="on" allow_raw_sockets="1" boot="on"

Gesendet von meinem ONEPLUS A3003 mit Tapatalk
 
Last edited by a moderator:

Charlie86

Explorer
Joined
Sep 28, 2017
Messages
71
Wow, I made big progress with yours help. Server is up and running, I was able to create jail with working internet access with yours help. Now all I need to do more is how to edit:

change Slim/Utils/OS/Custom.pm line 42 from

Code:

} elsif ($dir eq 'strings' || $dir eq 'revision') {

to

Code:

} elsif ($dir =~ /^(?:strings|revision|repositories)$/) {

add to .cshrc

setenv LC_ALL 'de_DE.UTF-8'

setenv LANG 'de_DE.UTF-8'

setenv MM_CHARSET 'UTF-8'

setenv TZ Europe/Berlin

How can I open Custom.pm?

I tries to open it with nano but it did not work. Also, how can I add storage to this jail. All other jails are visible in GUI so I can easily add storage to them. Is it possible to manage this jail via GUI also? And last question how can I delete jail in CLI?

Thanks once again!
 

mrMuppet

Contributor
Joined
Mar 14, 2014
Messages
192
Wow, I made big progress with yours help. Server is up and running, I was able to create jail with working internet access with yours help. Now all I need to do more is how to edit:

change Slim/Utils/OS/Custom.pm line 42 from

Code:

} elsif ($dir eq 'strings' || $dir eq 'revision') {

to

Code:

} elsif ($dir =~ /^(?:strings|revision|repositories)$/) {

add to .cshrc

setenv LC_ALL 'de_DE.UTF-8'

setenv LANG 'de_DE.UTF-8'

setenv MM_CHARSET 'UTF-8'

setenv TZ Europe/Berlin

How can I open Custom.pm?

I tries to open it with nano but it did not work. Also, how can I add storage to this jail. All other jails are visible in GUI so I can easily add storage to them. Is it possible to manage this jail via GUI also? And last question how can I delete jail in CLI?

Thanks once again!

I do those editing with winSCP.

To add storage, you have to enter something like: iocage fstab -a lms /mnt/tank1/video /mnt/video nullfs ro 0 0 outside jail.
You can manage the jail with the new gui. ([ip] /ui/dashboard)

To delete a iocage jail just use iocage destroy lms. But I always have to use this command twice before a jail Is really deleted.

Gesendet von meinem ONEPLUS A3003 mit Tapatalk
 

Charlie86

Explorer
Joined
Sep 28, 2017
Messages
71
You’re the man! Server is up with added storage! Thank you for yours help.

BDW: I did not edit Slim/Utils/OS/Custom.pm because I can not find it. But server is still running OK. Is this file in jail or host OS?

How can I set daemon Logitech media server to start at system start up.

Code:
root@lms3:/ # ls

.cshrc		COPYRIGHT	libexec		proc		sys

.profile	dev		media		rescue		tmp

bin		etc		mnt		root		usr

boot		lib		net		sbin		var

root@lms3:/ #
 

mrMuppet

Contributor
Joined
Mar 14, 2014
Messages
192
You’re the man! Server is up with added storage! Thank you for yours help.

BDW: I did not edit Slim/Utils/OS/Custom.pm because I can not find it. But server is still running OK. Is this file in jail or host OS?

How can I set daemon Logitech media server to start at system start up.

Code:
root@lms3:/ # ls

.cshrc		COPYRIGHT	libexec		proc		sys

.profile	dev		media		rescue		tmp

bin		etc		mnt		root		usr

boot		lib		net		sbin		var

root@lms3:/ #

The editing is only needed to avoid some errors in the log file (all these files are in the jail]. Under setup/Info you can find the used directories.


With echo 'logitechmediaserver_enable="YES"' >> /etc/rc.conf you should activate autostart.

Gesendet von meinem ONEPLUS A3003 mit Tapatalk
 
Top