Hi!

I am trying to get my music scanned by SqueezeCenter, but something is
wrong. When I trigger a rescan via the web interface I get this in the
scanner log:

[09-06-14 22:32:27.8071] Slim::Schema::Storage::throw_exception (70)
Error: DBI Connection failed: DBI
connect('database=slimserver','slimserver',...) failed: Can't connect to
local MySQL server through socket '/tmp/mysql.sock' (2) at
/usr/share/squeezecenter/CPAN/DBIx/Class/Storage/DBI.pm line 652
[09-06-14 22:32:27.8083] Slim::Schema::Storage::throw_exception (70)
Backtrace:

frame 0: Slim::Utils::Log::logBacktrace
(/usr/share/perl5/Slim/Schema/Storage.pm line 70)
frame 1: Slim::Schema::Storage::throw_exception
(/usr/share/squeezecenter/CPAN/DBIx/Class/Storage/DBI.pm line 658)
frame 2: DBIx::Class::Storage::DBI::_connect
(/usr/share/squeezecenter/CPAN/DBIx/Class/Storage/DBI.pm line 616)
frame 3: DBIx::Class::Storage::DBI::_populate_dbh
(/usr/share/squeezecenter/CPAN/DBIx/Class/Storage/DBI.pm line 543)
frame 4: DBIx::Class::Storage::DBI::ensure_connected
(/usr/share/perl5/Slim/Schema/Storage.pm line 29)
frame 5: (eval) (/usr/share/perl5/Slim/Schema/Storage.pm line 29)
frame 6: Slim::Schema::Storage::dbh (/usr/share/perl5/Slim/Schema.pm
line 132)
frame 7: Slim::Schema::init (/usr/share/perl5/Slim/Music/Info.pm
line 77)
frame 8: Slim::Music::Info::init (/usr/sbin/squeezecenter-scanner
line 281)
frame 9: main::initializeFrameworks (/usr/sbin/squeezecenter-scanner
line 117)
frame 10: main::main (/usr/sbin/squeezecenter-scanner line 363)

[09-06-14 22:32:27.8094] Slim::Schema::init (135) Error: Couldn't
connect to database! Fatal error: [] Exiting!
[09-06-14 22:32:27.8103] Slim::Schema::init (135) Backtrace:

frame 0: Slim::Utils::Log::logBacktrace
(/usr/share/perl5/Slim/Schema.pm line 135)
frame 1: Slim::Schema::init (/usr/share/perl5/Slim/Music/Info.pm
line 77)
frame 2: Slim::Music::Info::init (/usr/sbin/squeezecenter-scanner
line 281)
frame 3: main::initializeFrameworks (/usr/sbin/squeezecenter-scanner
line 117)
frame 4: main::main (/usr/sbin/squeezecenter-scanner line 363)

[09-06-14 22:32:27.8129] Slim::Schema::Storage::throw_exception (70)
Error: DBI Connection failed: DBI
connect('database=slimserver','slimserver',...) failed: Can't connect to
local MySQL server through socket '/tmp/mysql.sock' (2) at
/usr/share/squeezecenter/CPAN/DBIx/Class/Storage/DBI.pm line 652
[09-06-14 22:32:27.8141] Slim::Schema::Storage::throw_exception (70)
Backtrace:

frame 0: Slim::Utils::Log::logBacktrace
(/usr/share/perl5/Slim/Schema/Storage.pm line 70)
frame 1: Slim::Schema::Storage::throw_exception
(/usr/share/squeezecenter/CPAN/DBIx/Class/Storage/DBI.pm line 658)
frame 2: DBIx::Class::Storage::DBI::_connect
(/usr/share/squeezecenter/CPAN/DBIx/Class/Storage/DBI.pm line 616)
frame 3: DBIx::Class::Storage::DBI::_populate_dbh
(/usr/share/squeezecenter/CPAN/DBIx/Class/Storage/DBI.pm line 543)
frame 4: DBIx::Class::Storage::DBI::ensure_connected
(/usr/share/perl5/Slim/Schema/Storage.pm line 29)
frame 5: (eval) (/usr/share/perl5/Slim/Schema/Storage.pm line 29)
frame 6: Slim::Schema::Storage::dbh
(/usr/share/perl5/Slim/Music/Import.pm line 265)
frame 7: Slim::Music::Import::setIsScanning
(/usr/sbin/squeezecenter-scanner line 349)
frame 8: main::cleanup (/usr/share/perl5/Slim/bootstrap.pm line
378)
frame 9: Slim::bootstrap::sigint (/usr/share/perl5/Slim/bootstrap.pm
line 412)
frame 10: Slim::bootstrap::theEND (/usr/sbin/squeezecenter-scanner
line 358)
frame 11: main::END (/usr/sbin/squeezecenter-scanner line 0)
frame 12: (eval) (/usr/sbin/squeezecenter-scanner line 0)

[09-06-14 22:32:27.8154] main:: (0) Warning: Can't use an undefined
value as a HASH reference at /usr/share/perl5/Slim/Music/Import.pm line
265.
END failed--call queue aborted.

For some reason SqueezeCenter can't connect to my database wich seems
strange. I have confirmed that mysqld is running and that I can connect
to the slimserver database like this:

mysql -u slimserver -p

I can play music if I do it via the music folder in the media library.

Perhaps someone here has some idea what might be wrong or can help me
troubleshoot this further.

Regards,
Mattias


-- 
brasse
------------------------------------------------------------------------
brasse's Profile: http://forums.slimdevices.com/member.php?userid=30983
View this thread: http://forums.slimdevices.com/showthread.php?t=64488

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to