philippe44 / LMS-Raop

LMS to AirPlay bridge
65 stars 12 forks source link

RaopBridge::Squeeze2raop::beat (179) crashed ... restarting #42

Open howlett opened 1 week ago

howlett commented 1 week ago

I'm having isues with the raop plugin crashing. It works for a while but then crashes. I've tried both the static linked and normal shared library:

[24-07-05 18:22:11.8743] Plugins::RaopBridge::Squeeze2raop::beat (179) crashed ... restarting [24-07-05 18:22:13.3047] Plugins::ShairTunes2W::Plugin::conn_handle_request (1055) Got unknown method: POST [24-07-05 18:22:15.3046] Plugins::ShairTunes2W::Plugin::conn_handle_request (1055) Got unknown method: POST [24-07-05 18:22:17.3046] Plugins::ShairTunes2W::Plugin::conn_handle_request (1055) Got unknown method: POST [24-07-05 18:22:19.3052] Plugins::ShairTunes2W::Plugin::conn_handle_request (1055) Got unknown method: POST [24-07-05 18:22:21.3046] Plugins::ShairTunes2W::Plugin::conn_handle_request (1055) Got unknown method: POST [24-07-05 18:22:23.0990] Plugins::ShairTunes2W::Plugin::revoke_publishPlayers (411) Stop old publish players services:1504828 [24-07-05 18:22:23.6002] Plugins::ShairTunes2W::Plugin::removePlayer (358) publisher for LivingRoom with b8:27:eb:be:90:4a, PID Proc::Background=HASH(0x556bf8a6c0c8) will be terminated. [24-07-05 18:22:23.6019] Plugins::ShairTunes2W::Plugin::createListenPort (399) Created listener on port 38449 [24-07-05 18:22:23.6022] Plugins::ShairTunes2W::Plugin::publishPlayer (441) avahi-publish-player not in path [24-07-05 18:22:23.6024] Plugins::ShairTunes2W::Plugin::publishPlayer (450) dns-sd not in path [24-07-05 18:22:23.6025] Plugins::ShairTunes2W::Plugin::publishPlayer (459) mDNSPublish not in path [24-07-05 18:22:23.6026] Plugins::ShairTunes2W::Plugin::publishPlayer (461) using built-in helper: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/ShairTunes2W/Bin/shairport_helper-linux-x86_64 [24-07-05 18:22:23.6064] Plugins::ShairTunes2W::Plugin::addPlayer (346) create client Slim::Player::SqueezePlay=ARRAY(0x556bf8acaf98) with proc Proc::Background=HASH(0x556bf9940f38) [24-07-05 18:22:41.8830] Plugins::RaopBridge::Squeeze2raop::beat (179) crashed ... restarting

ldd shows I have all the necessary libraries: $ ldd /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/ShairTunes2W/Bin/shairport_helper-linux-x86_64 linux-vdso.so.1 (0x00007ffeea997000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f8ede6b0000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f8ede6ab000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f8ede5c9000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f8ede3e4000) /lib64/ld-linux-x86-64.so.2 (0x00007f8ede6d4000)

LMS version: Logitech Media Server Version: 8.5.2 - 1716215514 @ Sun 26 May 2024 05:43:14 PM CEST

I am running debian trixie (testing). Please let me know if I can provide any other information to debug what is going on.

howlett commented 1 week ago

The issue is that /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/RaopBridge/Bin/squeeze2raop-linux-x86_64 cannot seem to find the libssl. I tried linking libssl3.so to libssl.so, but it still fails even though the strace shows the library was loaded. `# /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/RaopBridge/Bin/squeeze2raop-linux-x86_64 -Z -I -x /var/lib/squeezeboxserver/prefs/raopbridge.xml [05:03:09.968] main:1583 Starting squeeze2raop version: v1.7.7 (Apr 2 2024 @ 16:11:41)

[05:03:09.969] Start:1305 Cannot load SSL libraries [05:03:09.969] main:1683 Cannot start, exiting `

openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libssl.so", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832 newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=425368, ...}, AT_EMPTY_PATH) = 0 mmap(NULL, 426304, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f6e0a09b000 mmap(0x7f6e0a0a8000, 266240, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd000) = 0x7f6e0a0a8000 mmap(0x7f6e0a0e9000, 86016, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4e000) = 0x7f6e0a0e9000 mmap(0x7f6e0a0fe000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x63000) = 0x7f6e0a0fe000 mmap(0x7f6e0a103000, 320, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f6e0a103000 close(3) = 0

I cannot seem to find a way to force the use of the static linked file, but it runs okay by hand. I copied the static linked file over the dynamic one and this works. I'm not sure which library it needs to work, but the raop server doesn't crash anymore.