Help with installing Logitech media server in Jail

Status
Not open for further replies.

biggyk

Contributor
Joined
Nov 25, 2015
Messages
138
Yes, I did install that perl SSL pkg on a warden jail in FreeNAS 11.1-U1. Attempting to install the LMS port throws up a "ALLOW_UNSUPPORTED_SYSTEM" due to kernel and user environment being out of step in warden.

Code:
root@LMSjail:/ # uname -K
1101505
root@LMSjail:/ # uname -U
1100122


I added "ALLOW_UNSUPPORTED_SYSTEM=yes" to the file /etc/make.conf to be able to proceed.

Although a warden jail appears to inherit the FreeNAS host locale, LMS still throws a locale error. LMS port in Warden Jail is up &
when I installed that single pkg to my lms jail, lms failed to show up in my browser. had to delete and start it again

Sent from my ONEPLUS A3000 using Tapatalk
 

KrisBee

Wizard
Joined
Mar 20, 2017
Messages
1,288
We drifted away. I still need help for this!

Gesendet von meinem ONEPLUS A3003 mit Tapatalk

@mrMuppet Arrgh! Still errors. That one is a scan failure, I think. There could be some more clues on the slimdevices forums. Are your Logitech hardware devices using wired or wireless connections? I've always stuck to wired were possible. Dropping your previous connection and swapping LMS seems to have caused a real headache.
 

KrisBee

Wizard
Joined
Mar 20, 2017
Messages
1,288
when I installed that single pkg to my lms jail, lms failed to show up in my browser. had to delete and start it again

Sent from my ONEPLUS A3000 using Tapatalk

Wierd, not seem that, but then I started from scratch under FreeNAS 11.1-U1 with both warden and iocage versions. What version of LMS was running?
 

biggyk

Contributor
Joined
Nov 25, 2015
Messages
138
Wierd, not seem that, but then I started from scratch under FreeNAS 11.1-U1 with both warden and iocage versions. What version of LMS was running?
7.9.1...i was outside for a bit after installing. came back in and realized the Media players wernt recognized that when I noticed lms was loading anymore

Sent from my ONEPLUS A3000 using Tapatalk
 

KrisBee

Wizard
Joined
Mar 20, 2017
Messages
1,288
7.9.1...I was outside for a bit after installing. came back in and realized the Media players wernt recognized that when I noticed lms was loading any more

Sent from my ONEPLUS A3000 using Tapatalk
So LMS 7.9.1 was running in warden, installing that perl SSL pkg caused LMS to stop, but it's OK after a service restart, it that right?
 

mrMuppet

Contributor
Joined
Mar 14, 2014
Messages
192
I've just built two versions of a LMS jail using iocage . First using the logitechmediaserver port, and the second using the package (if you trust it) found by BL in that interesting link. They both work.

I don't have a touch or other logitech hardware, but I run squeezelite on RPis as my players. You don't need to set allow raw sockets (seem to remember that was necessary when using a trad jail with vnet), but did you check that LMS started without out complaining about locale and SSL? Whether you use a port or package you need to install the "p5-IO-Socket-SSL-2.051" pkg in your iocage jail and fix the jail's locale, then you get a clean LMS start.

Haven't had time to test adding plugins or various audio formats, etc. If LMS is still not picking up players (touch,etc.), perhaps check all the player settings as the LMS IP has probably changed, e.g. Extras>Music Source>name of LMS Local Server & Settings > Advanced > Networking > Remote Library > Add New Library.
I've tried squeezelite now. It is working with my server but it doesn't help to connect the other clients. I have no idea what the problem could be.
 

KrisBee

Wizard
Joined
Mar 20, 2017
Messages
1,288
I've tried squeezelite now. It is working with my server but it doesn't help to connect the other clients. I have no idea what the problem could be.

What version of LMS was running in your original warden jail?

If there's no obvious mis-configuration of your players and no real clues in the server logs, can your players work with the 7.9.1 LMS version running in the iocage jail?

Are you able to install latest LMS on another desktop/laptop( windows or linux) to test if players can work with latest 7.9.1 version?
 

mrMuppet

Contributor
Joined
Mar 14, 2014
Messages
192
What version of LMS was running in your original warden jail?
In the warden jail i use "Logitech Media Server Version: 7.9.1 - 1499900819 @ Mon Jul 24 04:09:37 UTC 2017".
I installed it using a very complicated tutorial.

If there's no obvious mis-configuration of your players and no real clues in the server logs, can your players work with the 7.9.1 LMS version running in the iocage jail?
The players work without problems with the "old" warden installation (link above). With the iocage installation only a squeezelite works because in can connect squeezelite to specific Servers. Standalone boxes don't gove that opportunity, they only connect via autodiscovery: "
The server listens on TCP port 3483 for connections by players. To register a player with the server, they exchange "helo"s and than any of the commands below are valid." [from: official manual to The SlimProto TCP Protocol].
The port 3483 is open when i use a portscanner with the iocage ip.

Are you able to install latest LMS on another desktop/laptop( windows or linux) to test if players can work with latest 7.9.1 version?
No i tried it with latest Windows version and my clients connect to it without problems.
 

KrisBee

Wizard
Joined
Mar 20, 2017
Messages
1,288
Squeezelite can also work in "auto discovery" mode, just don't specify a server IP. If you do this and start squeezelite in debug mode you can check the squeezelite logs against both server versions to see if there's a difference. That's why I suggested "squeezelite" might help pin point the problem.
 

KrisBee

Wizard
Joined
Mar 20, 2017
Messages
1,288
OK, I had completely forgotten Touch only does autodiscovery. A quick test with squeezelite connecting to LMS running in iocage jail built from ports confirms "autodiscovery" is not working:

Code:
./squeezelite-x86-64 -o iec958:CARD=A71,DEV=0 -n sidplayer -a :::0 -d all=info -f sqlog
[11:34:54.256139] stream_init:290 init stream
[11:34:54.257371] output_init_alsa:643 init output
[11:34:54.257400] output_init_alsa:666 requested alsa_buffer: 40 alsa_period: 4 format: any mmap: 0
[11:34:54.270794] output_init_common:402 supported rates: 192000 176400 96000 88200 48000 44100 32000
[11:34:54.270841] output_init_alsa:676 unable to lock memory: Cannot allocate memory
[11:34:54.272704] decode_init:129 init decode, include codecs:  exclude codecs:
[11:34:54.272727] output_thread:467 open output device: iec958:CARD=A71,DEV=0
[11:34:54.272812] alsa_open:185 opening device at: 44100
[11:34:54.272816] register_dsd:624 using dsd to decode dsf,dff
[11:34:54.273005] load_faad:610 loaded libfaad.so.2
[11:34:54.273027] register_faad:640 using faad to decode aac
[11:34:54.273192] load_vorbis:300 loaded libvorbisfile.so.3
[11:34:54.273215] register_vorbis:329 using vorbis to decode ogg
[11:34:54.273236] load_flac:258 loaded libFLAC.so.8
[11:34:54.273247] register_flac:286 using flac to decode flc
[11:34:54.273257] register_pcm:384 using pcm to decode aif,pcm
[11:34:54.273419] load_mad:383 loaded libmad.so.0
[11:34:54.273439] register_mad:412 using mad to decode mp3
[11:34:54.273495] discover_server:702 sending discovery
[11:34:54.273716] alsa_open:236 opened device iec958:CARD=A71,DEV=0 using format: S32_LE sample rate: 44100 mmap: 0
[11:34:54.273774] alsa_open:315 buffer: 40 period: 4 -> buffer size: 1760 period size: 440
[11:34:59.278602] discover_server:702 sending discovery
[11:35:04.283760] discover_server:702 sending discovery
[11:35:09.288877] discover_server:702 sending discovery
[11:35:14.293994] discover_server:702 sending discovery
[11:35:19.299106] discover_server:702 sending discovery
[11:35:24.304102] discover_server:702 sending discovery
[11:35:29.309206] discover_server:702 sending discovery
[11:35:34.314353] discover_server:702 sending discovery
[11:35:39.319480] discover_server:702 sending discovery
[11:35:44.324608] discover_server:702 sending discovery
[11:35:49.329738] discover_server:702 sending discovery
[11:35:54.334861] discover_server:702 sending discovery
[11:35:54.469107] slimproto_stop:865 slimproto stop
[11:35:54.469166] decode_close:175 close decode
[11:35:54.516774] stream_close:322 close stream
[11:35:54.600155] output_close_alsa:706 close output

./squeezelite-x86-64 -o iec958:CARD=A71,DEV=0 -n sidplayer -a :::0 -d all=info -f sqlog -s 192.168.0.105
[11:36:44.356250] stream_init:290 init stream
[11:36:44.357416] output_init_alsa:643 init output
[11:36:44.357442] output_init_alsa:666 requested alsa_buffer: 40 alsa_period: 4 format: any mmap: 0
[11:36:44.367374] output_init_common:402 supported rates: 192000 176400 96000 88200 48000 44100 32000
[11:36:44.367402] output_init_alsa:676 unable to lock memory: Cannot allocate memory
[11:36:44.367943] decode_init:129 init decode, include codecs:  exclude codecs:
[11:36:44.367960] output_thread:467 open output device: iec958:CARD=A71,DEV=0
[11:36:44.368014] register_dsd:624 using dsd to decode dsf,dff
[11:36:44.368025] alsa_open:185 opening device at: 44100
[11:36:44.368161] load_faad:610 loaded libfaad.so.2
[11:36:44.368172] register_faad:640 using faad to decode aac
[11:36:44.368284] load_vorbis:300 loaded libvorbisfile.so.3
[11:36:44.368294] register_vorbis:329 using vorbis to decode ogg
[11:36:44.368305] load_flac:258 loaded libFLAC.so.8
[11:36:44.368323] register_flac:286 using flac to decode flc
[11:36:44.368328] register_pcm:384 using pcm to decode aif,pcm
[11:36:44.368410] load_mad:383 loaded libmad.so.0
[11:36:44.368419] register_mad:412 using mad to decode mp3
[11:36:44.368745] alsa_open:236 opened device iec958:CARD=A71,DEV=0 using format: S32_LE sample rate: 44100 mmap: 0
[11:36:44.368807] alsa_open:315 buffer: 40 period: 4 -> buffer size: 1760 period size: 440
[11:36:44.368900] slimproto:794 connecting to 192.168.0.105:3483
[11:36:44.369224] slimproto:827 connected
[11:36:44.369249] sendHELO:117 mac: 94:de:80:69:51:f8
[11:36:44.369258] sendHELO:119 cap: Model=squeezelite,AccuratePlayPoints=1,HasDigitalOut=1,ModelName=SqueezeLite,MaxSampleRate=192000,dsf,dff,aac,ogg,flc,aif,pcm,mp3
[11:36:44.504376] codec_open:218 codec open: 'f'
[11:36:44.504448] stream_sock:384 connecting to 192.168.0.105:9000
[11:36:44.504770] stream_sock:413 header: GET /stream.mp3?player=94:de:80:69:51:f8 HTTP/1.0


[11:36:44.594739] stream_thread:176 headers: len: 113
HTTP/1.1 200 OK
Server: Logitech Media Server (7.9.1 - TRUNK)
Connection: close
Content-Type: audio/x-flac


[11:36:44.669243] write_cb:116 setting track_start
[11:36:44.678058] _output_frames:59 start buffer frames: 428544
[11:36:44.678084] _output_frames:144 track start sample rate: 44100 replay_gain: 0


The question is why. Need to dig deeper ...
 
Last edited:

mrMuppet

Contributor
Joined
Mar 14, 2014
Messages
192
I tried to connect the radio client by entering the ip (think i checked it 1000 times but always misses that function) and it works!

Now i made a try with autoconnect (with the working server):
Code:
[12:31:28.927] discover_server:826 sending discovery
[12:31:28.927] discover_server:837 got response from: 192.168.178.156:3483
[12:31:28.927] slimproto:925 connecting to 192.168.178.156:3483
[12:31:28.943] slimproto:964 connected
[12:31:28.943] sendHELO:138 mac: 88:d7:f6:3c:f5:6c
[12:31:28.943] sendHELO:140 cap: Model=squeezelite,AccuratePlayPoints=1,HasDigitalOut=1,HasPolarityInversion=1,Firmware=v1.8.7-1052,ModelName=SqueezeLite,MaxSampleRate=384000,dsf,dff,alc,wma,wmap,wmal,aac,ogg,flc,aif,pcm,mp3
[12:31:28.979] _output_frames:114 avail: 1136 frames: 1136 silence: 1
[12:31:28.979] _output_frames:274 wrote 1136 frames
And the iocage server:
Code:
[12:37:10.062] discover_server:826 sending discovery
[12:37:10.113] _output_frames:114 avail: 1136 frames: 1136 silence: 1
And i checked the server's logfile in this moment. And there are no entries at 12:37:...

Its ok for me to use my players with the manual ip (without autoconnect) but it wouldnt bad to find out what blocks the autodiscovery.
 

mrMuppet

Contributor
Joined
Mar 14, 2014
Messages
192
ok. i didnt check touch either... :-(
 

mrMuppet

Contributor
Joined
Mar 14, 2014
Messages
192
Now i checked the touch: It has the same mode to connect to remote server: Settings>Advanced>Networking>Remote Libraries
No problem to connect to the iocage server.
Besides this would it be nice to know whats wrong with autodiscovery.
 

KrisBee

Wizard
Joined
Mar 20, 2017
Messages
1,288
You missed what I wrote back at #24 for your Touch. Sounds like you have your players working now. A happy ending!

Networking is the suspect here. If your were like me, you set up your warden jail with VIMAGE and the FreeNAS side of the "epair" interface runs in promiscuous mode. I setup iocage jail with simple "shared ip". I need to find time to setup iocage with vnet and see if autodiscovery works.

STOP PRESS:

I can confirm "autodiscovery" works if the iocage jail uses vnet. Apart from changing some of the iocage jail properties to do this, you will probably need to manually add your main interface the bridge used by iocage. If you want a permanent setup for vnet with iocage, then this post points the way:

https://forums.freenas.org/index.php?threads/iocage-vnet0-and-bridge0.59964/
 
Last edited:
Status
Not open for further replies.
Top