badaix / snapcast

Synchronous multiroom audio player
GNU General Public License v3.0
6.22k stars 455 forks source link

snapserver 0.27 armhf does not install on Raspi 1B #1199

Closed andrewufrank closed 9 months ago

andrewufrank commented 9 months ago

Describe the bug A clear and concise description of what the bug is.

snapserver_0.27.0-1_armhf.deb cannot be installed on Raspi 1B Dependency is not satisfiable: libasound2 (>= 1.0.18)

I assume armhf is the wrong architecture for Raspi 1B, it would require armel Steps to Reproduce

  1. download snapserver_0.27.0-1_armhf.deb` from https://mjaggard.github.io/snapcast/ (per instruction there!)
  2. run sudo gdebi snapserver_0.27.0-1_armhf.deb
  3. Wrong architecture 'armhf' -- Run dpkg --add-architecture to add it and update afterwards 4.sudo dpkg --add-architecture armhf
  4. repeat gdebi gives Dependency is not satisfiable: libasound2 (>= 1.0.18)

Environment details

Thank you - when it works, snapcast is a great service!
andrew

andrewufrank commented 9 months ago

I have compiled the Snapcast version 0.27 code on my old Raspi 1B and succeeded. Preparation:

then I directly produced the deb package with

sudo apt-get install debhelper python3
cd <snapcast dir>
ln -s extras/package/debian debian
debian/changelog_md2deb.py changelog.md  > debian/changelog
fakeroot make -f debian/rules CMAKEFLAGS="-DBOOST_ROOT=/path/to/boost/boost_1_8x_0 -DCMAKE_BUILD_TYPE:STRING=0.27.0-1_armel -DBUILD_WITH_PULSE=OFF" binary

I have put the packages on my release page https://github.com/andrewufrank/snapcast/releases

I appreciate the perfect tools Johannes Pohl (aka badaix) has prepared. Excellent work! andrew

p.s. I found only a strange message, likely non consequential

/usr/bin/gdebi:113: FutureWarning: Possible nested set at position 1 c = findall("[(/\S+[])]", msg)[0].lower()

andrewufrank commented 9 months ago

Music does not arrive cleanly at the snapclient - only short bursts. Logs on the snapserver show

Feb 16 01:33:34 music7 snapserver[605]: onResync (default): 96.5352 ms
Feb 16 01:33:34 music7 snapserver[605]: next read < 0 (default): -23.511 ms
Feb 16 01:33:34 music7 snapserver[605]: onResync (default): 174.396 ms
Feb 16 01:33:34 music7 snapserver[605]: onResync (default): 60.5612 ms

and the load on the Raspi1B running snapserver has load averages around 6; is it possible, that the Raspi 1B is just to slow a processor to run snapserver? or are there some issues with the configuration?

I think I was (at a different location) successful with running a Raspi 1B (of which I have several ones) as snapclients. I could use a Raspi 4 to run snapserver, if the speed of the Raspi 1B is the issue.

Thank you for the advice! andrew

andrewufrank commented 9 months ago

Music does not arrive cleanly at the snapclient - only short bursts. Logs on the snapserver show

Feb 16 01:33:34 music7 snapserver[605]: onResync (default): 96.5352 ms
Feb 16 01:33:34 music7 snapserver[605]: next read < 0 (default): -23.511 ms
Feb 16 01:33:34 music7 snapserver[605]: onResync (default): 174.396 ms
Feb 16 01:33:34 music7 snapserver[605]: onResync (default): 60.5612 ms

and the load on the Raspi1B running snapserver has load averages around 6; is it possible, that the Raspi 1B is just to slow a processor to run snapserver? or are there some issues with the configuration?

I think I was (at a different location) successful with running a Raspi 1B (of which I have several ones) as snapclients. I could use a Raspi 4 to run snapserver, if the speed of the Raspi 1B is the issue. Using a Raspi 4 as snapserver, then music arrives clearly at the snapclient. The load on the Raspi1B just for the mpd connected to the snapserver is 99% - thus clearly the old Raspi 1B cpu is not up to this task; it works for the clients.

I found that Debian has relatively up-to-date snapserver and snapclient - local compilation is not required.

Thank you for snapcast. Well done! andrew

andrewufrank commented 6 months ago

Thank you for your help. You recommended that I take the version 0.28-beta1 which I installed, I got some confusing information that the architecture of the Raspi 1B is armv6l and not armhf, but I could add the architecture with dpkg and install the package I have downloaded. when I then try to run snapclient (eg. just snapclient --help I get illegal instruction as an error. I take that armhf cannot run on a Raspi 1B. - I got a system running on a different location and will report how I achieved it later.