Hi Dean,
I've seem to have cracked it here, and I think/hope this is going to
work for you on the Boom too (because I don't need to put the local_IP
of the LMS machine into my SB Touch anymore).
The underlying problem with the networking, the need to reload alsa, the
flaky behaviour of the LocalPlayer plugin....all of it seems to be down
to the order/timing of the boot sequence. Changing this has fixed other
problems for me too, like failing to connect to and synch with
mysqueezebox.com, MyApps not appearing in the web interface, etc.
A short delay in starting LMS at boot up has fixed the lot.
Here's the fix, as I implemented it (apologies for any unnecessary
steps, I'm just finding my way with Linux)...........
Powered off SB Touch.
A complete uninstall of the existing LMS installation.....
sudo apt-get remove --purge logitechmediaserver
It reported it couldn't remove the prefs directory and files in
/var/lib/squeezeboxserver, so I removed all that manually, using the
necessary privilege (I navigated to /var/lib/squeezeboxserver and did a
sudo rm * -r but anyone reading this who knows even less linux than me
should make VERY SURE they are in the right directory before typing that
in!)
In your case, I think you'll want to remove your squeezelite daemon
installation as well, but I don't know how/where (I've been using the
LocalPlayer plugin, so squeezelite went with the removal of LMS).
Rebooted
Reinstalled LMS (I updated to 7.9.2~1567938514 at this point).
Rebooted
Did my usual usermod commands at this point (for me it's adding the
squeezeboxserver user to audio and lms groups).
Rebooted
sudo systemctl edit logitechmediaserver.service
This opened an empty file.
There's apparently a number of ways to introduce the delay but I added
the lines:-
# logitechmediaserver.service delay until necessary services running
(Sound, Network)
[Unit]
After=NetworkManager.service
[Service]
ExecStartPre=/bin/sleep 5
Saved ("Wrote out", ^o) that file (the odd file name automatically
cleaned up to override.conf at that point, so there was no need to tidy
up the name when saving) and exited the editor.
Checked all is well with the config at this point with..
systemctl cat logitechmediaserver.service
...the new "drop-in file" appeared at the end of the output.
Rebooted
Went the LMS web interface and did the rest (password, path to music
folder, scanning, adding plugins, etc)
I started with the LocalPlayer plugin (I did point it directly at the
LMS with the "-s" as I mentioned in an earlier post, but this might not
be necessary any more) and added my other plugins after that (mixcloud,
RadioParadise, bpa's BBC plugins from
http://downloads.sourceforge.net/project/bpaplugins/betarelease-repo.xml)
they all seem to work fine now.
I then powered on SB Touch with a factory reset, just to clear the IP
address I entered manually in a previous fix, and whatever other
settings, in order to be sure that it was the delay that had fixed
things and SB Touch would find LMS in the future using auto-discover. It
did discover my LMS (I left the SB touch on and restarted LMS,and it was
straight to it, NO need to temporarily disable ufw).
That was it, everything is working fine. Mixcloud doesn't seem to work
if I synchronize the SB touch and Squeezelite players, but that's a
separate issue. It works again if switch back to no sync, but there's no
LMS stop/start or plugin removal/reloading.
The delay of 5 seconds is a probably overkill, but it's working. It also
affects manual stop/starts, but I don;t care about that because it
should be a rare thing now.
Hope this works for you, think it should if ufw rules are all as
recommended for 9000 tcp and 3483 tcp/udp.
Cheers!
Charlie
P.S. If I've missed any steps, apologies, just let me know if you run
into issues and I'll check back/try to recreate the process here,
doesn't take long.
------------------------------------------------------------------------
AudioCharlie's Profile: http://forums.slimdevices.com/member.php?userid=69397
View this thread: http://forums.slimdevices.com/showthread.php?t=110937
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix