Hi folks,
I have the phenomenon, that after a certain time, this can be hours, days, or even more than one week, Squeezeboxserver task stops it works or better say, it does not respond any more.
Code:$ top says:
After restart the log says:
Any ideas, what might happen here? Can I use a script to restart the service somehow?
BR
PeterCode:root@DietPiPaeddasBKServer:~# squeezeboxserver & [1] 29205 root@DietPiPaeddasBKServer:~# [22-01-22 17:03:25.9861] main::init (388) Starting Logitech Media Server (v8.1.1, 1610364019, Thu Jan 14 06:24:07 CET 2021) perl 5.028001 - aarch64-linux-gnu-thread-multi [22-01-22 17:03:25.9927] main::changeEffectiveUserAndGroup (1005) Warning: Logitech Media Server must not be run as root! Trying user squeezeboxserver instead. [22-01-22 17:03:26.3274] Slim::Utils::Misc::msg (1266) Warning: [17:03:26.3271] DBIx::Class::ResultSet::update_or_create(): Query returned more than one row. SQL that returns multiple rows is DEPRECATED for ->find and ->single at /usr/share/perl5/Slim/Schema.pm line 1899 [22-01-22 17:03:28.3606] Slim::Display::Display::string (887) Error: missing string PLUGIN_EXTENDED_BROWSEMODES_COMPILATIONS [22-01-22 17:03:28.3656] Slim::Display::Display::string (887) Backtrace: frame 0: Slim::Utils::Log::logBacktrace (/usr/share/perl5/Slim/Display/Display.pm line 887) frame 1: Slim::Display::Display::string (/usr/share/perl5/Slim/Player/Player.pm line 193) frame 2: Slim::Player::Player::string (/usr/share/perl5/Slim/Utils/Strings.pm line 545) frame 3: Slim::Utils::Strings::clientString (/usr/share/perl5/Slim/Menu/BrowseLibrary.pm line 659) frame 4: Slim::Menu::BrowseLibrary::getJiveMenu (/usr/share/perl5/Slim/Control/Jive.pm line 2340) frame 5: Slim::Control::Jive::myMusicMenu (/usr/share/perl5/Slim/Control/Jive.pm line 168) frame 6: Slim::Control::Jive::libraryChanged (/usr/share/perl5/Slim/Menu/BrowseLibrary.pm line 397) frame 7: Slim::Menu::BrowseLibrary::_libraryChanged (/usr/share/perl5/Slim/Menu/BrowseLibrary.pm line 445) frame 8: Slim::Menu::BrowseLibrary::_handleMenuChanges (/usr/share/perl5/Slim/Utils/Timers.pm line 265) frame 9: (eval) (/usr/share/perl5/Slim/Utils/Timers.pm line 265) frame 10: Slim::Utils::Timers::__ANON__ (/usr/share/perl5/Slim/Networking/IO/Select.pm line 167) frame 11: (eval) (/usr/share/perl5/Slim/Networking/IO/Select.pm line 167) frame 12: Slim::Networking::IO::Select::loop (/usr/sbin/squeezeboxserver line 741) frame 13: main::idleStreams (/usr/share/perl5/Slim/Utils/Strings.pm line 256) frame 14: Slim::Utils::Strings::loadAdditional (/usr/share/perl5/Slim/Display/Display.pm line 879) frame 15: Slim::Display::Display::string (/usr/share/perl5/Slim/Player/Player.pm line 193) frame 16: Slim::Player::Player::string (/usr/share/perl5/Slim/Control/Queries.pm line 4572) frame 17: Slim::Control::Queries::_addJivePlaylistControls (/usr/share/perl5/Slim/Control/Queries.pm line 3941) frame 18: Slim::Control::Queries::statusQuery (/usr/share/perl5/Slim/Control/Request.pm line 1883) frame 19: (eval) (/usr/share/perl5/Slim/Control/Request.pm line 1883) frame 20: Slim::Control::Request::execute (/usr/share/perl5/Slim/Web/Cometd.pm line 870) frame 21: Slim::Web::Cometd::handleRequest (/usr/share/perl5/Slim/Web/Cometd.pm line 399) frame 22: Slim::Web::Cometd::handler (/usr/share/perl5/Slim/Web/Cometd.pm line 112) frame 23: Slim::Web::Cometd::webHandler (/usr/share/perl5/Slim/Web/HTTP.pm line 478) frame 24: Slim::Web::HTTP::processHTTP (/usr/share/perl5/Slim/Networking/IO/Select.pm line 122) frame 25: (eval) (/usr/share/perl5/Slim/Networking/IO/Select.pm line 118) frame 26: Slim::Networking::IO::Select::__ANON__ (/usr/share/perl5/Slim/Networking/IO/Select.pm line 167) frame 27: (eval) (/usr/share/perl5/Slim/Networking/IO/Select.pm line 167) frame 28: Slim::Networking::IO::Select::loop (/usr/sbin/squeezeboxserver line 728) frame 29: main::idle (/usr/sbin/squeezeboxserver line 678) frame 30: main::main (/usr/sbin/squeezeboxserver line 1211) [22-01-22 17:03:28.3664] Slim::Display::Display::string (887) Error: missing string PLUGIN_EXTENDED_BROWSEMODES_COMPILATIONS [22-01-22 17:03:28.3669] Slim::Display::Display::string (887) Backtrace: frame 0: Slim::Utils::Log::logBacktrace (/usr/share/perl5/Slim/Display/Display.pm line 887) frame 1: Slim::Display::Display::string (/usr/share/perl5/Slim/Player/Player.pm line 193) frame 2: Slim::Player::Player::string (/usr/share/perl5/Slim/Utils/Strings.pm line 545) frame 3: Slim::Utils::Strings::clientString (/usr/share/perl5/Slim/Menu/BrowseLibrary.pm line 667) frame 4: Slim::Menu::BrowseLibrary::getJiveMenu (/usr/share/perl5/Slim/Control/Jive.pm line 2340) frame 5: Slim::Control::Jive::myMusicMenu (/usr/share/perl5/Slim/Control/Jive.pm line 168) frame 6: Slim::Control::Jive::libraryChanged (/usr/share/perl5/Slim/Menu/BrowseLibrary.pm line 397) frame 7: Slim::Menu::BrowseLibrary::_libraryChanged (/usr/share/perl5/Slim/Menu/BrowseLibrary.pm line 445) frame 8: Slim::Menu::BrowseLibrary::_handleMenuChanges (/usr/share/perl5/Slim/Utils/Timers.pm line 265) frame 9: (eval) (/usr/share/perl5/Slim/Utils/Timers.pm line 265) frame 10: Slim::Utils::Timers::__ANON__ (/usr/share/perl5/Slim/Networking/IO/Select.pm line 167) frame 11: (eval) (/usr/share/perl5/Slim/Networking/IO/Select.pm line 167) frame 12: Slim::Networking::IO::Select::loop (/usr/sbin/squeezeboxserver line 741) frame 13: main::idleStreams (/usr/share/perl5/Slim/Utils/Strings.pm line 256) frame 14: Slim::Utils::Strings::loadAdditional (/usr/share/perl5/Slim/Display/Display.pm line 879) frame 15: Slim::Display::Display::string (/usr/share/perl5/Slim/Player/Player.pm line 193) frame 16: Slim::Player::Player::string (/usr/share/perl5/Slim/Control/Queries.pm line 4572) frame 17: Slim::Control::Queries::_addJivePlaylistControls (/usr/share/perl5/Slim/Control/Queries.pm line 3941) frame 18: Slim::Control::Queries::statusQuery (/usr/share/perl5/Slim/Control/Request.pm line 1883) frame 19: (eval) (/usr/share/perl5/Slim/Control/Request.pm line 1883) frame 20: Slim::Control::Request::execute (/usr/share/perl5/Slim/Web/Cometd.pm line 870) frame 21: Slim::Web::Cometd::handleRequest (/usr/share/perl5/Slim/Web/Cometd.pm line 399) frame 22: Slim::Web::Cometd::handler (/usr/share/perl5/Slim/Web/Cometd.pm line 112) frame 23: Slim::Web::Cometd::webHandler (/usr/share/perl5/Slim/Web/HTTP.pm line 478) frame 24: Slim::Web::HTTP::processHTTP (/usr/share/perl5/Slim/Networking/IO/Select.pm line 122) frame 25: (eval) (/usr/share/perl5/Slim/Networking/IO/Select.pm line 118) frame 26: Slim::Networking::IO::Select::__ANON__ (/usr/share/perl5/Slim/Networking/IO/Select.pm line 167) frame 27: (eval) (/usr/share/perl5/Slim/Networking/IO/Select.pm line 167) frame 28: Slim::Networking::IO::Select::loop (/usr/sbin/squeezeboxserver line 728) frame 29: main::idle (/usr/sbin/squeezeboxserver line 678) frame 30: main::main (/usr/sbin/squeezeboxserver line 1211) [..] [22-01-22 17:03:28.5151] Slim::Player::Song::open (415) Error: Couldn't create command line for unk playback for [http://opml.radiotime.com/Tune.ashx?id=s55796&formats=aac,ogg,mp3,wma,wmvoice&partnerId=16&serial=64bb7a0d7d6f6893d56fb383486f339e]
Results 1 to 10 of 14
-
2022-01-22, 09:02 #1
DietPi: Logitech Media Server(squeezeboxserver) hangs unexpectedly from time to time
Last edited by peddanet; 2022-01-22 at 09:05.
-
2022-01-23, 09:15 #2
DietPi: Logitech MediaServer(squeezeboxserver) hangs unexpectedly from time to time
> I have the phenomenon, that after a certain time, this can be hours,
> days, or even more than one week, Squeezeboxserver task stops it works
> or better say, it does not respond any more.
Doesn't it respond at all, or does it take forever minus a second? :-)
What player? Can you change track using some UI: Player, web, smartphone
app?
-
2022-01-23, 15:31 #3
Hi Michael,
I am pretty sure it was completely unrespondable from the following devices:
- PiCore Player Bathroom
- PiCore Player Kitchen
- Squeezelite (PC)
- SqueezeliteCtrl (Android, did not try)
The server itself is running on a Pi4b 2GB with dietpi. It is only my backup server (so rarely used with average rsync load from usb).
How can I examine the problem more in detail? It could be that the system has run on a pi 4b 8GB with the same sd card before (now my PicorePlayer Bathroom because a water drop destroyed all PCIe/USB/ Ethernet connections... :-()
BR
Peter
-
2022-01-24, 00:53 #4
DietPi: Logitech MediaServer(squeezeboxserver) hangs unexpectedly from time to time
> I am pretty sure it was completely unrespondable from the following
> devices:
> - PiCore Player Bathroom
> - PiCore Player Kitchen
Are you running Jivelite on them?
> - Squeezelite (PC)
Squeezelite doesn't have a UI... how do you control it?
> - SqueezeliteCtrl (Android, did not try)
What did you try then?...
> How can I examine the problem more in detail? It could be that the
Try to figure out whether the process is really hanging. It's still not
clear to me what UI you're using, and whether you've tested more than one.
-
2022-01-24, 01:25 #5
Hi Michael,
Yes!
First commandline, now Squeezelite-X
It is not easy to test, because the phenomenon is happening rarely. It is not clear not me, how the client could force the server to hang up. When the phenomenon occurs again, I can try out, if not already tried out (I was not doing it in a well structured manner). The process on the server seems not respondng. How could I excamine responsiveness of the server in case it happens again? Is there a to me hidden test app? BTW where are the logs, sorry for this question,c ause it is to be found somewhere here? How could I save the process without killing/restarting it?
BR
PeterLast edited by peddanet; 2022-01-24 at 02:57.
-
2022-01-24, 01:39 #6
I may add, that these kind of problems maybe were overlapped by my former problems with hanging squeezeboxes classic from Logitech. These have now been retired. My setup:
- DietPi (8.0.x.x)/Squeezeboxserver on a Raspberry Pi 4b 2GB RAM with 32 GB SD card and 4TB external card via USB3.0
- PicorePlayer with Jivelite on a Pi 4b with 8GB RAM and in the bathroom
- PicorePlayer with Jivelite on a Pi 3b+ with 1GB RAM and 64 GB sd card in the kitchen
- Logitech Squeezebox Classic in the living room (normally and mostly every time off)
So since now I have a "clear" setup with a much reduced risk of having a hardware havoc here (Logitechs and their problem of the electrolyte capacitor problem), now I see that I might have a problem of a sometimes randomly hanging squeezebox server
-
2022-01-26, 13:07 #7
Probable Solution : Easybox 804 maybe responsible for hang ups
I have replaced the easybox which I used as a cheap LAN Extender under my desk. Now I meshed my fritzbox 7490 router with a fritzbox 7530 router (replacing the easybox 804). The problem did not occur any more. Maybe this is the solution.
I will continue this thread if it turns out, I still have hang ups here of my dietpi LMS server....
Thanks a lot @mherger for your help!
-
2022-02-08, 08:44 #8
Power Consumption reason for hanging?
First of all: Easy box was responsible for the most of hang ups, simply because this router is a damage to society, to anybody using it. It hangs up is the normal state of operation of this router!
Hi Michael, hi all,
my Setup with Pi4 2GB:
- Relay (powered by the +5V line of Pi)
- External Monitor via Mini Display Port
- USB Keyboard (wifi Logitech)
- External HD (4TB) powered by its own power supply
I use an original power supply 5V/2A of Raspberry.
On my external monitor I occasionally watch during startup and work the flash symbol, indicating that the power is not sufficient (enough?).
So this could definitely do the hang ups, but why? I mean 2.0 A or 10 W means a lot. What do you think, and how could I come around?
In the kitchen I run my Pi 3b+ on a Picoreplayer system with a 7" display and my externally fed Logitech boxes (small audio plug) and a 3.0 A power supply. And sometimes it also flashes, even with 15 W!!!
Please any solution appreciated! Did anybody else facing this problems in such a well powered situation :-)?
BR Peter
-
2022-03-01, 07:36 #9
Hi Michael,
I think, I need your help again:
I am still stuck with some unexpectedly freezes or high loads:
- High load (cpu load of squeezeboxserver nearly 100%)
- LMS (DietPi) completely not reachable via SSH
The first looks then like:
or status as a text:
Code:root@DietPiPaeddasBKServer:~# service logitechmediaserver status ● logitechmediaserver.service - Logitech Media Server (DietPi) Loaded: loaded (/etc/systemd/system/logitechmediaserver.service; disabled; vendor preset: enabled) Active: active (running) since Sat 2022-02-26 18:16:33 CET; 2 days ago Main PID: 1741 (squeezeboxserve) Tasks: 1 (limit: 2076) CGroup: /system.slice/logitechmediaserver.service └─1741 /usr/bin/perl /usr/sbin/squeezeboxserver --prefsdir /var/lib/squeezeboxserver/prefs --logdir /var/log/squeezeboxserver/ --cachedir /var/lib/squeezeboxserver/cache --charset=utf8 --logfile /var/log/squeezeboxserver/error.log Mar 01 09:21:58 DietPiPaeddasBKServer squeezeboxserver[1741]: [22-03-01 09:21:58.4323] Slim::Plugin::FullTextSearch::Plugin::_rebuildIndex (529) Fulltext index build done! Mar 01 09:21:58 DietPiPaeddasBKServer squeezeboxserver[1741]: [22-03-01 09:21:58.4327] Slim::Music::Import::endImporter (710) Completed Slim::Plugin::FullTextSearch::Plugin Scan in 21 seconds. Mar 01 09:21:58 DietPiPaeddasBKServer squeezeboxserver[1741]: [22-03-01 09:21:58.4334] Slim::Music::Import::runImporter (577) Starting Slim::Plugin::ExtendedBrowseModes::Libraries scan Mar 01 09:21:58 DietPiPaeddasBKServer squeezeboxserver[1741]: [22-03-01 09:21:58.4339] Slim::Music::Import::runImporter (577) Starting Slim::Plugin::OnlineLibrary::Importer::VirtualLibrariesCleanup scan Mar 01 09:21:59 DietPiPaeddasBKServer squeezeboxserver[1741]: [22-03-01 09:21:59.6730] Slim::Music::Import::endImporter (710) Completed Slim::Plugin::OnlineLibrary::Importer::VirtualLibrariesCleanup Scan in 1 seconds. Mar 01 09:21:59 DietPiPaeddasBKServer squeezeboxserver[1741]: [22-03-01 09:21:59.7043] Slim::Music::Artwork::updateStandaloneArtwork (234) Starting updateStandaloneArtwork for 0 albums Mar 01 09:21:59 DietPiPaeddasBKServer squeezeboxserver[1741]: [22-03-01 09:21:59.7522] Slim::Music::Artwork::precacheAllArtwork (659) Starting precacheArtwork for 0 albums Mar 01 09:21:59 DietPiPaeddasBKServer squeezeboxserver[1741]: [22-03-01 09:21:59.7525] Slim::Music::Import::endImporter (710) Completed precacheArtwork Scan in 0 seconds. Mar 01 09:21:59 DietPiPaeddasBKServer squeezeboxserver[1741]: [22-03-01 09:21:59.7534] Slim::Music::Import::runScanPostProcessing (479) Starting Database optimization. Mar 01 09:22:12 DietPiPaeddasBKServer squeezeboxserver[1741]: [22-03-01 09:22:12.5224] Slim::Music::Import::endImporter (710) Completed dbOptimize Scan in 12 seconds.
For the second I can't attach anything, I can just try to access the device by its connected monitor/usb mouse and keyboard.
Do you know where I can find the logs, for which tags in that logs I must search?
Or any other hints, because hard rebooting the device (last time yesterday, I switched it off, because it was inaccessible, today again...) is not a good option, but surely works for a couple of hours, days, even weeks (sometimes)?
If it responds, I normally try to do a service restart, which then will work most of the time:
Code:$ service logitechmediaserver restart
Last edited by peddanet; 2022-03-01 at 07:42.
-
2022-03-01, 07:59 #10
DietPi: Logitech MediaServer(squeezeboxserver) hangs unexpectedly from time to time
> Do you know where I can find the logs, for which tags in that logs I
> must search?
See the log snippet you posted ;-) "--logdir /var/log/squeezeboxserver/"
> Or any other hints, because hard rebooting the device (last time
> yesterday, I switched it off, because it was inaccessible, today
> again...) is not a good option, but surely works for a couple of hours,
> days, even weeks (sometimes)?
Can't you even "kill -9 <pid>" it?