PDA

View Full Version : Slim server dying



jania
2005-06-15, 15:41
Hello
I am having issues with Slimserver 6.1 and 6.0.x. When I turn the Squeezebox on and use one of the arrow keys on the remote control the slimserver process dies. I then restart slimserver and everything will work fine until the next day when I go to use the squeezebox again. One strange thing is that after restarting slimserver it seems to work fine for the rest of the day no matter how many times I turn off/on the squeezebox. I have the Rescan music library function on to run at 4am every night, not sure if that is related.

I run slimserver on gentoo linux with mysql on the backend, I see "MySQL server has gone away" in the logs but the MySQL server seems to be running fine.

Here is the log file:

DBD::mysql::st execute failed: MySQL server has gone away at /usr/local/SlimServer_v2005-06-09/CPAN/DBIx/ContextualFetch.pm line 51.
Uncaught exception from user code:
Slim::DataStores::DBI::Track can't SELECT id, multialbumsortkey, thumb, age, ct, titlesort, album, tracknum, url, tag, title, disc, fs
FROM tracks
WHERE url = ?
: DBD::mysql::st execute failed: MySQL server has gone away at /usr/local/SlimServer_v2005-06-09/CPAN/DBIx/ContextualFetch.pm line 51.
at /usr/local/SlimServer_v2005-06-09/Slim/DataStores/DBI/DBIStore.pm line 994
at /usr/local/SlimServer_v2005-06-09/CPAN/Class/DBI.pm line 230
Class::DBI::_croak('Slim::DataStores::DBI::Track', 'Slim::DataStores::DBI::Track can\'t SELECT id, multialbumsort...', 'err', 'DBD::mysql::st execute failed: MySQL server has gone away at ...') called at /usr/local/SlimServer_v2005-06-09/CPAN/Class/DBI.pm line 1197
Class::DBI::sth_to_objects('Slim::DataStores::DBI: :Track', 'DBIx::ContextualFetch::st=HASH(0x986e2f8)', 'ARRAY(0x9b285cc)') called at /usr/local/SlimServer_v2005-06-09/CPAN/Class/DBI.pm line 1162
Class::DBI::_do_search('Slim::DataStores::DBI::Tra ck', '=', 'url', 'file:///media/mp3s') called at /usr/local/SlimServer_v2005-06-09/CPAN/Class/DBI.pm line 1119
Class::DBI::search('Slim::DataStores::DBI::Track', 'url', 'file:///media/mp3s') called at /usr/local/SlimServer_v2005-06-09/Slim/DataStores/DBI/DBIStore.pm line 994
Slim::DataStores::DBI::DBIStore::_retrieveTrack('S lim::DataStores::DBI::DBIStore=HASH(0x9916198)', 'file:///media/mp3s', 'undef') called at /usr/local/SlimServer_v2005-06-09/Slim/DataStores/DBI/DBIStore.pm line 148
Slim::DataStores::DBI::DBIStore::objectForUrl('Sli m::DataStores::DBI::DBIStore=HASH(0x9916198)', 'file:///media/mp3s') called at /usr/local/SlimServer_v2005-06-09/Slim/DataStores/DBI/DBIStore.pm line 122
Slim::DataStores::DBI::DBIStore::contentType('Slim ::DataStores::DBI::DBIStore=HASH(0x9916198)', 'file:///media/mp3s') called at /usr/local/SlimServer_v2005-06-09/Slim/Music/Info.pm line 1731
Slim::Music::Info::isList('file:///media/mp3s') called at /usr/local/SlimServer_v2005-06-09/Slim/Buttons/Browse.pm line 350
Slim::Buttons::Browse::loadDir('Slim::Player::Sque ezeboxG=ARRAY(0x99bbde0)', '', 'right', 'ARRAY(0x9c3f09c)') called at /usr/local/SlimServer_v2005-06-09/Slim/Buttons/Browse.pm line 239
Slim::Buttons::Browse::__ANON__('Slim::Player::Squ eezeboxG=ARRAY(0x99bbde0)') called at /usr/local/SlimServer_v2005-06-09/Slim/Buttons/Home.pm line 380
Slim::Buttons::Home::homeExitHandler('Slim::Player ::SqueezeboxG=ARRAY(0x99bbde0)', 'right') called at /usr/local/SlimServer_v2005-06-09/Slim/Buttons/Input/List.pm line 304
Slim::Buttons::Input::List::exitInput('Slim::Playe r::SqueezeboxG=ARRAY(0x99bbde0)', 'right') called at /usr/local/SlimServer_v2005-06-09/Slim/Buttons/Input/List.pm line 64
Slim::Buttons::Input::List::__ANON__('Slim::Player ::SqueezeboxG=ARRAY(0x99bbde0)', 'exit_right', 'right') called at /usr/local/SlimServer_v2005-06-09/Slim/Hardware/IR.pm line 664
Slim::Hardware::IR::executeButton('Slim::Player::S queezeboxG=ARRAY(0x99bbde0)', 'exit_right', 15.076, 'undef', 1) called at /usr/local/SlimServer_v2005-06-09/Slim/Control/Command.pm line 622
Slim::Control::Command::execute('Slim::Player::Squ eezeboxG=ARRAY(0x99bbde0)', 'ARRAY(0x9b27dc8)') called at /usr/local/SlimServer_v2005-06-09/Slim/Player/Client.pm line 963
Slim::Player::Client::execute('Slim::Player::Squee zeboxG=ARRAY(0x99bbde0)', 'ARRAY(0x9b27dc8)') called at /usr/local/SlimServer_v2005-06-09/Slim/Hardware/IR.pm line 688
Slim::Hardware::IR::processCode('Slim::Player::Squ eezeboxG=ARRAY(0x99bbde0)', 'exit_right', 15.076) called at /usr/local/SlimServer_v2005-06-09/Slim/Hardware/IR.pm line 495
Slim::Hardware::IR::processIR('Slim::Player::Squee zeboxG=ARRAY(0x99bbde0)', '7689d02f', 15.076) called at /usr/local/SlimServer_v2005-06-09/Slim/Control/Command.pm line 622
Slim::Control::Command::execute('Slim::Player::Squ eezeboxG=ARRAY(0x99bbde0)', 'ARRAY(0x9b27eb8)') called at /usr/local/SlimServer_v2005-06-09/Slim/Player/Client.pm line 963
Slim::Player::Client::execute('Slim::Player::Squee zeboxG=ARRAY(0x99bbde0)', 'ARRAY(0x9b27eb8)') called at /usr/local/SlimServer_v2005-06-09/Slim/Hardware/IR.pm line 90
Slim::Hardware::IR::idle() called at /usr/local/slimserver/slimserver.pl line 602
main::idle() called at /usr/local/slimserver/slimserver.pl line 568
main::main() called at /usr/local/slimserver/slimserver.pl line 1155


Any help would be greatly appreciated.
Thanks
-Jason

kdf
2005-06-15, 15:53
Sounds like this:
http://bugs.slimdevices.com/show_bug.cgi?id=947

Mysql isn't officially supported as yet, but the report does point out a few
workarounds/patches to try.
-kdf

jania
2005-06-16, 16:02
Thank you sir, that seems to have fixed the problem.

-jason