After I installed Windows 8, LMS failed to recognise my library (settings are all correct). Despite reinstalling LMS several times, the scan fails, and the log shows that 'database disk image is malformed'. What steps can I take to remedy this? Full log here:
[12-10-28 15:06:00.3714] Slim::Utils::SQLHelper::executeSQLFile (85) Error: Couldn't execute SQL statement: [DELETE FROM comments;] : [Carp::Clan::__ANON__(): DBI Exception: DBD::SQLite::db do failed: database disk image is malformed [for Statement "DELETE FROM comments;"] at /<C:\PROGRA~1\SQUEEZ~1\server\scanner.exe>Slim/Schema/Storage.pm line 126
]
[12-10-28 15:06:00.4820] Slim::Music::Import::runImporter (485) Starting Slim::Media::MediaFolderScan scan
[12-10-28 15:06:00.4825] Slim::Utils::Scanner::Local::rescan (171) Discovering audio files in D:\Music
[12-10-28 15:06:57.7532] Slim::Schema::Storage::throw_exception (122) Error: DBI Exception: DBD::SQLite::db selectrow_array failed: database disk image is malformed [for Statement "
SELECT COUNT(*) FROM (
SELECT DISTINCT(url)
FROM tracks
WHERE url NOT IN (
SELECT url FROM scanned_files
WHERE filesize != 0
)
AND url LIKE 'file:///D:/Music%'
AND virtual IS NULL
AND content_type != 'dir'
) AS t1
"]
[12-10-28 15:06:57.7538] Slim::Schema::Storage::throw_exception (122) Backtrace:
frame 0: Slim::Utils::Log::logBacktrace (/<C:\PROGRA~1\SQUEEZ~1\server\scanner.exe>Slim/Schema/Storage.pm line 122)
frame 1: Slim::Schema::Storage::throw_exception (/<C:\PROGRA~1\SQUEEZ~1\server\scanner.exe>DBIx/Class/Storage/DBI.pm line 1006)
frame 2: DBIx::Class::Storage::DBI::__ANON__ (/<C:\PROGRA~1\SQUEEZ~1\server\scanner.exe>Slim/Utils/Scanner/Local.pm line 242)
frame 3: Slim::Utils::Scanner::Local::__ANON__ (/<C:\PROGRA~1\SQUEEZ~1\server\scanner.exe>Slim/Utils/Scanner/Local/Async.pm line 84)
frame 4: Slim::Utils::Scanner::Local::Async::__ANON__ (/<C:\PROGRA~1\SQUEEZ~1\server\scanner.exe>Slim/Utils/Scanner/Local/Async.pm line 165)
frame 5: Slim::Utils::Scanner::Local::Async::find (/<C:\PROGRA~1\SQUEEZ~1\server\scanner.exe>Slim/Utils/Scanner/Local.pm line 102)
frame 6: Slim::Utils::Scanner::Local::find (/<C:\PROGRA~1\SQUEEZ~1\server\scanner.exe>Slim/Utils/Scanner/Local.pm line 515)
frame 7: Slim::Utils::Scanner::Local::rescan (/<C:\PROGRA~1\SQUEEZ~1\server\scanner.exe>Slim/Media/MediaFolderScan.pm line 68)
frame 8: Slim::Media::MediaFolderScan::startScan (/<C:\PROGRA~1\SQUEEZ~1\server\scanner.exe>Slim/Music/Import.pm line 487)
frame 9: Slim::Music::Import::runImporter (/<C:\PROGRA~1\SQUEEZ~1\server\scanner.exe>Slim/Music/Import.pm line 327)
frame 10: Slim::Music::Import::runScan (scanner.pl line 322)
frame 11: (eval) (scanner.pl line 316)
frame 12: main::main (scanner.pl line 494)
[12-10-28 15:06:57.7549] main::main (327) Error: Failed when running main scan: [Carp::Clan::__ANON__(): DBI Exception: DBD::SQLite::db selectrow_array failed: database disk image is malformed [for Statement "
SELECT COUNT(*) FROM (
SELECT DISTINCT(url)
FROM tracks
WHERE url NOT IN (
SELECT url FROM scanned_files
WHERE filesize != 0
)
AND url LIKE 'file:///D:/Music%'
AND virtual IS NULL
AND content_type != 'dir'
) AS t1
"] at /<C:\PROGRA~1\SQUEEZ~1\server\scanner.exe>Slim/Schema/Storage.pm line 126
]
[12-10-28 15:06:57.7556] main::main (328) Error: Skipping post-process & Not updating lastRescanTime!
[12-10-28 15:06:00.3714] Slim::Utils::SQLHelper::executeSQLFile (85) Error: Couldn't execute SQL statement: [DELETE FROM comments;] : [Carp::Clan::__ANON__(): DBI Exception: DBD::SQLite::db do failed: database disk image is malformed [for Statement "DELETE FROM comments;"] at /<C:\PROGRA~1\SQUEEZ~1\server\scanner.exe>Slim/Schema/Storage.pm line 126
]
[12-10-28 15:06:00.4820] Slim::Music::Import::runImporter (485) Starting Slim::Media::MediaFolderScan scan
[12-10-28 15:06:00.4825] Slim::Utils::Scanner::Local::rescan (171) Discovering audio files in D:\Music
[12-10-28 15:06:57.7532] Slim::Schema::Storage::throw_exception (122) Error: DBI Exception: DBD::SQLite::db selectrow_array failed: database disk image is malformed [for Statement "
SELECT COUNT(*) FROM (
SELECT DISTINCT(url)
FROM tracks
WHERE url NOT IN (
SELECT url FROM scanned_files
WHERE filesize != 0
)
AND url LIKE 'file:///D:/Music%'
AND virtual IS NULL
AND content_type != 'dir'
) AS t1
"]
[12-10-28 15:06:57.7538] Slim::Schema::Storage::throw_exception (122) Backtrace:
frame 0: Slim::Utils::Log::logBacktrace (/<C:\PROGRA~1\SQUEEZ~1\server\scanner.exe>Slim/Schema/Storage.pm line 122)
frame 1: Slim::Schema::Storage::throw_exception (/<C:\PROGRA~1\SQUEEZ~1\server\scanner.exe>DBIx/Class/Storage/DBI.pm line 1006)
frame 2: DBIx::Class::Storage::DBI::__ANON__ (/<C:\PROGRA~1\SQUEEZ~1\server\scanner.exe>Slim/Utils/Scanner/Local.pm line 242)
frame 3: Slim::Utils::Scanner::Local::__ANON__ (/<C:\PROGRA~1\SQUEEZ~1\server\scanner.exe>Slim/Utils/Scanner/Local/Async.pm line 84)
frame 4: Slim::Utils::Scanner::Local::Async::__ANON__ (/<C:\PROGRA~1\SQUEEZ~1\server\scanner.exe>Slim/Utils/Scanner/Local/Async.pm line 165)
frame 5: Slim::Utils::Scanner::Local::Async::find (/<C:\PROGRA~1\SQUEEZ~1\server\scanner.exe>Slim/Utils/Scanner/Local.pm line 102)
frame 6: Slim::Utils::Scanner::Local::find (/<C:\PROGRA~1\SQUEEZ~1\server\scanner.exe>Slim/Utils/Scanner/Local.pm line 515)
frame 7: Slim::Utils::Scanner::Local::rescan (/<C:\PROGRA~1\SQUEEZ~1\server\scanner.exe>Slim/Media/MediaFolderScan.pm line 68)
frame 8: Slim::Media::MediaFolderScan::startScan (/<C:\PROGRA~1\SQUEEZ~1\server\scanner.exe>Slim/Music/Import.pm line 487)
frame 9: Slim::Music::Import::runImporter (/<C:\PROGRA~1\SQUEEZ~1\server\scanner.exe>Slim/Music/Import.pm line 327)
frame 10: Slim::Music::Import::runScan (scanner.pl line 322)
frame 11: (eval) (scanner.pl line 316)
frame 12: main::main (scanner.pl line 494)
[12-10-28 15:06:57.7549] main::main (327) Error: Failed when running main scan: [Carp::Clan::__ANON__(): DBI Exception: DBD::SQLite::db selectrow_array failed: database disk image is malformed [for Statement "
SELECT COUNT(*) FROM (
SELECT DISTINCT(url)
FROM tracks
WHERE url NOT IN (
SELECT url FROM scanned_files
WHERE filesize != 0
)
AND url LIKE 'file:///D:/Music%'
AND virtual IS NULL
AND content_type != 'dir'
) AS t1
"] at /<C:\PROGRA~1\SQUEEZ~1\server\scanner.exe>Slim/Schema/Storage.pm line 126
]
[12-10-28 15:06:57.7556] main::main (328) Error: Skipping post-process & Not updating lastRescanTime!