PDA

View Full Version : rescan failure: Failed to update isScanning



seerdekens
2007-09-13, 13:47
I'm getting the following when doing a rescan of my music library


2007-09-14 11:50:14.3201 commit ineffective with AutoCommit enabled at /usr/share/perl5/DBIx/Class/Storage/DBI.pm line 820.
2007-09-14 11:50:15.0983 ERROR: DBI Exception: DBD::mysql::db begin_work failed: Already in a transaction
2007-09-14 11:50:15.0988 ERROR: Backtrace follows:

2007-09-14 11:50:15.0996 Backtrace:

frame 0: Slim::Schema::Storage::throw_exception (/usr/share/perl5/DBIx/Class/Storage/DBI.pm line 781)
frame 1: DBIx::Class::Storage::DBI::__ANON__ (/usr/share/perl5/DBIx/Class/Storage/DBI.pm line 809)
frame 2: DBIx::Class::Storage::DBI::txn_begin (/usr/share/perl5/DBIx/Class/Storage/DBI.pm line 604)
frame 3: (eval) (/usr/share/perl5/DBIx/Class/Storage/DBI.pm line 600)
frame 4: DBIx::Class::Storage::DBI::txn_do (/usr/share/perl5/DBIx/Class/Schema.pm line 729)
frame 5: DBIx::Class::Schema::txn_do (/usr/share/perl5/Slim/Schema/Playlist.pm line 46)
frame 6: (eval) (/usr/share/perl5/Slim/Schema/Playlist.pm line 39)
frame 7: Slim::Schema::Playlist::setTracks (/usr/share/perl5/Slim/Player/Playlist.pm line 757)
frame 8: Slim::Player::Playlist::modifyPlaylistCallback (/usr/share/perl5/Slim/Control/Request.pm line 1645)
frame 9: (eval) (/usr/share/perl5/Slim/Control/Request.pm line 1645)
frame 10: Slim::Control::Request::notify (/usr/share/perl5/Slim/Control/Request.pm line 751)
frame 11: Slim::Control::Request::checkNotifications (/usr/sbin/slimserver line 476)
frame 12: main::idle (/usr/sbin/slimserver line 452)
frame 13: main::main (/usr/sbin/slimserver line 1076)

2007-09-14 11:50:15.1010 ERROR: DBIx::Class::Storage::NESTED_ROLLBACK_EXCEPTION=HA SH(0xad0455c)
2007-09-14 11:50:15.1013 ERROR: Backtrace follows:

2007-09-14 11:50:15.1020 Backtrace:

frame 0: Slim::Schema::Storage::throw_exception (/usr/share/perl5/DBIx/Class/Storage/DBI.pm line 850)
frame 1: DBIx::Class::Storage::DBI::txn_rollback (/usr/share/perl5/DBIx/Class/Storage/DBI.pm line 621)
frame 2: (eval) (/usr/share/perl5/DBIx/Class/Storage/DBI.pm line 621)
frame 3: DBIx::Class::Storage::DBI::txn_do (/usr/share/perl5/DBIx/Class/Schema.pm line 729)
frame 4: DBIx::Class::Schema::txn_do (/usr/share/perl5/Slim/Schema/Playlist.pm line 46)
frame 5: (eval) (/usr/share/perl5/Slim/Schema/Playlist.pm line 39)
frame 6: Slim::Schema::Playlist::setTracks (/usr/share/perl5/Slim/Player/Playlist.pm line 757)
frame 7: Slim::Player::Playlist::modifyPlaylistCallback (/usr/share/perl5/Slim/Control/Request.pm line 1645)
frame 8: (eval) (/usr/share/perl5/Slim/Control/Request.pm line 1645)
frame 9: Slim::Control::Request::notify (/usr/share/perl5/Slim/Control/Request.pm line 751)
frame 10: Slim::Control::Request::checkNotifications (/usr/sbin/slimserver line 476)
frame 11: main::idle (/usr/sbin/slimserver line 452)
frame 12: main::main (/usr/sbin/slimserver line 1076)



2007-09-14 11:50:18.5530 ERROR: Carp::Clan::__ANON__(): DBI Exception: DBD::mysql::db begin_work failed: Already in a transaction at /usr/share/perl5/Slim/Schema/Storage.pm line 74

2007-09-14 11:50:18.5533 ERROR: Backtrace follows:

2007-09-14 11:50:18.5538 Backtrace:

frame 0: Slim::Schema::Storage::throw_exception (/usr/share/perl5/DBIx/Class/Storage/DBI.pm line 625)
frame 1: DBIx::Class::Storage::DBI::txn_do (/usr/share/perl5/DBIx/Class/Schema.pm line 729)
frame 2: DBIx::Class::Schema::txn_do (/usr/share/perl5/Slim/Music/Import.pm line 241)
frame 3: (eval) (/usr/share/perl5/Slim/Music/Import.pm line 233)
frame 4: Slim::Music::Import::setIsScanning (/usr/sbin/slimserver-scanner line 305)
frame 5: main::cleanup (/usr/share/perl5/Slim/bootstrap.pm line 300)
frame 6: Slim::bootstrap::sigint (/usr/share/perl5/Slim/bootstrap.pm line 331)
frame 7: Slim::bootstrap::END (/usr/sbin/slimserver-scanner line 0)
frame 8: (eval) (/usr/sbin/slimserver-scanner line 0)

2007-09-14 11:50:18.5544 ERROR: Scanner: Failed to update isScanning: [Carp::Clan::__ANON__(): Carp::Clan::__ANON__(): DBI Exception: DBD::mysql::db begin_work failed: Already in a transaction at /usr/share/perl5/Slim/Schema/Storage.pm line 74


I searched these forums but did not find anyone with the same error.
Thanks for your help

SlimServer Version: 6.5.4 - 12568 - Debian - EN - iso-8859-1
Server IP address: 192.168.1.200
Perl Version: 5.8.8 i486-linux-gnu-thread-multi
MySQL Version: 5.0.32-Debian_7etch1

seerdekens
2007-09-14, 04:04
See my solution at http://forums.slimdevices.com/showthread.php?t=37932

At least it works for me.
Maybe a moderator can merge this thread with it.