Announcement

Collapse
No announcement yet.

LMS 8.0.0 on Synology 216II not scanning new music - database is locked

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    LMS 8.0.0 on Synology 216II not scanning new music - database is locked

    I have a Synology 216II running LMS 8.0.0 which is unable to scan for new music.
    I can still listen on my devices but can't add any new music to my library.

    I hope someone can advise me how to get this working again.

    Sorry in advance if I'm posting in the wrong place.

    Unfortunately I can't remember how to update my LMS to the latest version even if that would help.​
    Stopping and restarting LMS makes no difference.

    The user interface always shows Scanning - view progress, however there is not much progress to see, and Abort scan has no effect:
    Building full text index (7 of 7) Complete 00:00:55
    Create library views (1 of 1) Complete 00:00:03
    Database Optimize (2 of 2) Complete 00:01:32

    Here's a log extract ....

    [23-03-12 14:59:44.8847] Slim::Schema::Storage::throw_exception (121) Error: Carp::Clan::__ANON__(): DBI Exception: DBD::SQLite::st execute failed: database is locked [for Statement "UPDATE metainformation SET value = ? WHERE ( name = ? )"] at /volume1/@appstore/SqueezeCenter/Slim/Schema/Storage.pm line 125
    [23-03-12 14:59:44.8851] Slim::Schema::Storage::throw_exception (121) Backtrace:

    frame 0: Slim::Utils::Log::logBacktrace (/volume1/@appstore/SqueezeCenter/Slim/Schema/Storage.pm line 121)
    frame 1: Slim::Schema::Storage::throw_exception (/volume1/@appstore/SqueezeCenter/CPAN/DBIx/Class/Storage/DBI.pm line 598)
    frame 2: DBIx::Class::Storage:BI::dbh_do (/volume1/@appstore/SqueezeCenter/CPAN/DBIx/Class/Storage/DBI.pm line 1297)
    frame 3: DBIx::Class::Storage:BI::_execute (/volume1/@appstore/SqueezeCenter/CPAN/DBIx/Class/Storage/DBI.pm line 1419)
    frame 4: DBIx::Class::Storage:BI::update (/volume1/@appstore/SqueezeCenter/CPAN/DBIx/Class/Row.pm line 492)
    frame 5: DBIx::Class::Row::update (/volume1/@appstore/SqueezeCenter/CPAN/DBIx/Class/Relationship/CascadeActions.pm line 35)
    frame 6: DBIx::Class::Relationship::CascadeActions::update (/volume1/@appstore/SqueezeCenter/Slim/Schema/DBI.pm line 32)
    frame 7: Slim::Schema:BI::update (/volume1/@appstore/SqueezeCenter/Slim/Music/Import.pm line 341)
    frame 8: Slim::Music::Import::setIsScanning (/volume1/@appstore/SqueezeCenter/Slim/Music/Import.pm line 232)
    frame 9: Slim::Music::Import::abortScan (/volume1/@appstore/SqueezeCenter/slimserver.pl line 1168)
    frame 10: main::cleanup (/volume1/@appstore/SqueezeCenter/slimserver.pl line 1151)
    frame 11: main::stopServer (/volume1/@appstore/SqueezeCenter/slimserver.pl line 680)
    frame 12: main::main (/volume1/@appstore/SqueezeCenter/slimserver.pl line 1211)

    ​[23-03-12 14:59:44.9593] Carp::Clan::__ANON__ (214) Warning: Carp::Clan::__ANON__(): Carp::Clan::__ANON__(): DBI Exception: DBD::SQLite::st execute failed: database is locked [for Statement "UPDATE metainformation SET value = ? WHERE ( name = ? )"] at /volume1/@appstore/SqueezeCenter/Slim/Schema/Storage.pm line 125
    [23-03-12 15:04:24.1370] main::init (388) Starting Logitech Media Server (v8.0.0, 1605892076, Fri Nov 20 18:28:44 CET 2020) perl 5.024000 - x86_64-linux
    [23-03-12 15:04:29.6377] Slim::Music::VirtualLibraries::registerLibrary (213) Can't create the library view at this point, as the scanner is running: Hide lossy duplicates if lossless track is available
    [23-03-12 15:04:32.9433] Slim::Formats::XML::gotErrorViaHTTP (339) Error: getting https://www.mysqueezebox.com/api/sounds/v1/opml
    Connect timed out:
    [23-03-12 15:04:32.9436] Slim::Plugin::Sounds::Plugin::_gotSoundsError (82) Error: Unable to cache Sounds & Effects menu from SN: Connect timed out:
    [23-03-12 15:04:33.0109] Slim::Formats::Playlists::Base:laylistEntryIsValid (125) Warning: ///./spotify:track:0I5nw8CmVBlImVGMZYpY6K found in playlist:
    file:///volume1/@appstore/SqueezeCenter/prefs/clientplaylist_0004202654b0.m3u doesn't exist on disk - skipping!
    [23-03-12 15:04:33.0119] Slim::Formats::Playlists::Base:laylistEntryIsValid (125) Warning: file:///volume1/music/spotify:track:0I5nw8CmVBlImVGMZYpY6K found in playlist:
    file:///volume1/@appstore/SqueezeCenter/prefs/clientplaylist_0004202654b0.m3u doesn't exist on disk - skipping!
    [23-03-12 15:04:34.4548] Slim::Networking::SqueezeNetwork::_error (431) Unable to login to SN: Connect timed out:
    [23-03-12 15:04:34.4552] Slim::Networking::SqueezeNetwork::_init_error (156) Unable to login to mysqueezebox.com, sync is disabled: Connect timed out: (https://www.mysqueezebox.com)
    [23-03-12 15:04:34.4558] Slim::Networking::SqueezeNetwork::_init_error (172) mysqueezebox.com sync init failed: Connect timed out: , will retry in 223500 (https://www.mysqueezebox.com)
    [23-03-12 15:04:47.6154] Slim::Formats::XML::gotErrorViaHTTP (339) Error: getting https://www.mysqueezebox.com/api/sounds/v1/opml
    Connect timed out: Bad file descriptor
    [23-03-12 15:04:47.6158] Slim::Plugin::Sounds::Plugin::_gotSoundsError (82) Error: Unable to cache Sounds & Effects menu from SN: Connect timed out: Bad file descriptor
    [23-03-12 15:05:03.5768] Slim::Networking::SqueezeNetwork::_error (431) Unable to login to SN: Connect timed out: Bad file descriptor
    [23-03-12 15:05:03.5773] Slim::Networking::SqueezeNetwork::_init_error (156) Unable to login to mysqueezebox.com, sync is disabled: Connect timed out: Bad file descriptor (https://www.mysqueezebox.com)
    [23-03-12 15:05:03.5779] Slim::Networking::SqueezeNetwork::_init_error (172) mysqueezebox.com sync init failed: Connect timed out: Bad file descriptor, will retry in 223800 (https://www.mysqueezebox.com)

    The last entry in the scanner logfile is just a few lines from January 2022.

    Logitech Media Server Version: 8.0.0 - 1605892076 @ Fri Nov 20 18:28:44 CET 2020
    Operating system: Synology DSM 6.2.3 - EN - utf8
    Platform Architecture: x86_64-linux
    Perl Version: 5.24.0 - x86_64-linux
    Audio::Scan: 0.95
    IO::Socket::SSL: 2.037
    Database Version: DBD::SQLite 1.34_01 (sqlite 3.7.7.1)​
    Last edited by MunichMelly; 2023-03-12, 16:12.
    ~~~~ System Info ~~~~
    Squeezebox Receiver Firmware: 77
    Squeezebox Radio Firmware: 7.7.3-r16676 (x3)
    Squeezebox Touch Firmware: 7.8.0-r16754
    Synology DS216+II
    Logitech Media Server Version: 8.0.0 - 1605892076 @ Fri Nov 20
    Operating system: Synology DSM 6.2.2 - EN - utf8
    Platform Architecture: x86_64-linux
    Perl Version: 5.24.0 - x86_64-linux
    Audio::Scan: 0.95
    Database Version: DBD::SQLite 1.34_01 (sqlite 3.7.7.1)
    BBC iPlayer (v1.6.9)
    BBC iPlayer Extras (v3.4.0)
    BBC Sounds (v2.6.7)

    #2
    Update:

    I managed to stop my existing LMS, and install LMS ("latest") using docker following the easy step by step instructions in the following post (scroll down).

    As a side effect a new scan was made and everything seems to be working again.
    ~~~~ System Info ~~~~
    Squeezebox Receiver Firmware: 77
    Squeezebox Radio Firmware: 7.7.3-r16676 (x3)
    Squeezebox Touch Firmware: 7.8.0-r16754
    Synology DS216+II
    Logitech Media Server Version: 8.0.0 - 1605892076 @ Fri Nov 20
    Operating system: Synology DSM 6.2.2 - EN - utf8
    Platform Architecture: x86_64-linux
    Perl Version: 5.24.0 - x86_64-linux
    Audio::Scan: 0.95
    Database Version: DBD::SQLite 1.34_01 (sqlite 3.7.7.1)
    BBC iPlayer (v1.6.9)
    BBC iPlayer Extras (v3.4.0)
    BBC Sounds (v2.6.7)

    Comment

    Working...
    X