ralph-irving / squeezelite

Lightweight headless squeezebox player for Lyrion Media Server
https://sourceforge.net/projects/lmsclients/files/squeezelite/
Other
391 stars 98 forks source link

Squeezelite intermittent disconnection with LMS #231

Closed PrinceJJPablo closed 1 month ago

PrinceJJPablo commented 2 months ago

Specs: squeezelite 1.9.9.1392 lyrionmusicserver 8.5.2 fedora 37 kernel 6.5.13

Additional squeezelite options on runtime: squeezelite -o hw:0,0 -n "K22" -D :dop -m 00:30:18:08:ED:68 -s http://192.168.199.7 -a :::0 -r auto -M K22 -p 77 -R vE:26:1:36:96:104:33 -W -d all=info -f /tmp/sqlite-log.txt

In the LMS browser on port 9000 the machine is working playing music from the radio and local files. Then I see the following log: [23:36:05.767646] send_packet:114 failed writing to socket: Broken pipe And then the player on the LMS dashboard says "No Player" for 5-10 seconds and you cannot control the squeezelite playback before the player appears again. It seems that squeezelite is intermittently disconnecting with the LMS server.

sqlite-log.txt

Unsure if the send_packet log is what is causing the error.

I have tried reinstalling squeezelite and LMS

Please let me know what I can do to test the issue or if I there is more information required and what this information is.

Thanks.

ralph-irving commented 2 months ago

That's a very old version of squeezelite. There have been many changes to ogg/flac support in recent builds. Does it behave the same using my latest build on sourceforge? If so, the most likely culprit is firewalld.

PrinceJJPablo commented 2 months ago

This version of squeezelite is working on other machines and would prefer to figure out the issue in this build since this version is working with all the thirdparty plugins including C3P0 with the current machines.

If I update squeezelite I would need to retest everything with LMS and the third party plugins which includes C3P0...

This version of squeezelite is 100% working as it is working on other machines. It is just this particular machine it seems to be suddenly disconnecting. Would like to know what that error is referring to.

My only clues are the following:

  1. This machine was made from an image from a working machine
  2. The working machine has no issues using this version of squeezelite and LMS
  3. That error is returned in the squeezelite logs then the player disconnects on the LMS interface
  4. Reinstalling squeezelite and LMS does not fix the issue
  5. firewalld is not running: systemctl status firewalld ○ firewalld.service - firewalld - dynamic firewall daemon Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; preset: enabled) Active: inactive (dead) Docs: man:firewalld(1) Is there any other things I can check that would cause this error?

I am already starting work on creating another image to see if it is a corrupt image (but I am doubtful as I also flashed this image on another machine - and this second machine has no squeezelite issue returning on the logs and has no issues playing). flashing 2 machines of the same image should result me with the same issues but this issue is very confusing as an image is an image unless of course it is not a bit for bit dd copy.

And yes I have tried reflashing the machine with the image again to see if it was a bit error, but same issue still disconnecting intermittently. Even if it is an image error, there should be a specific issue with squeezelite or LMS but reinstalling it has not fixed the issue, which means the fault is not these packages or these package's dependencies, it is something about this machine maybe the kernel or networking packages that need to be reinstalled, I just dont know what this error means and what I need to try to reinstall.

But the issue is not that the version is old... as it is working on many machines right now, the issue is just machines imaged with squeezelite already running.

PrinceJJPablo commented 1 month ago

Update on this issue. It seems it was something inside /var/lib/squeezeboxserver/cache that was causing it.

After rm -rf * of the entire folder and dnf reinstall of squeezeboxserver the intermittent disconnection stopped.

Was not able to identify what inside the cache folder was causing it but it also explains why dnf reinstall of squeezeboxserver did not do anything since the cache folder isnt deleted when triggering the reinstall command...