Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 7 of 7
  1. #1
    Senior Member dolodobendan's Avatar
    Join Date
    Dec 2017
    Location
    Braunschweig, Germany
    Posts
    1,446

    LMS restarts during scan, then hangs

    My new Ubuntu server is up and running - LMS (let's call it ULMS) isn't quite there yet. ULMS restarted roughly one hour in the initial scan, continues the scan, then hangs at a track, scanning (or claiming to scan) it forever. When I click "Abort scan", I get "The server has finished scanning your media library. Total Time:" with total time still counting. The track is fine, LMS on my NAS (QLMS) scans that file without any problems. I copied that track's album from /Music to /Music-Test, pointed ULMS to the new share, stopped ULMS, wiped the cache, restarted ULMS. The scan finished successfully.

    There's nothing in server.log that indicates why a restart occurred:

    Code:
    [21-10-12 00:27:57.1052] main::init (390) Starting Logitech Media Server (v8.3.0, 1633378714, Tue Oct  5 00:23:55 CEST 2021) perl 5.030000 - x86_64-linux-gnu-thread-multi
    [21-10-12 00:27:57.8418] Slim::Utils::Misc::msg (1341) Warning: [00:27:57.8417] MultiLibrary: Creating database tables
    [21-10-12 00:27:59.0504] main::checkDataSource (1121) Warning: Schema updated or no media found in the database, initiating scan.
    [21-10-12 01:15:26.7707] main::init (390) Starting Logitech Media Server (v8.3.0, 1633378714, Tue Oct  5 00:23:55 CEST 2021) perl 5.030000 - x86_64-linux-gnu-thread-multi
    IIRC there was nothing in scanner.log, either, but it got overwritten when I fixed a playlist and triggered a playlist-only rescan. That scan also finished as expected.

    What do I have to enable in logging to be able to provide any useful information about what is happening here?
    QLMS 8.3@2.21 x64 (digimaster) / QNAP 469L QTS 4.3.4
    LMS 8.3 x64 / Intel NUC8 i3

  2. #2
    Senior Member
    Join Date
    May 2010
    Location
    London, UK
    Posts
    923
    Quote Originally Posted by dolodobendan View Post
    What do I have to enable in logging to be able to provide any useful information about what is happening here?
    I would think the predefined "Media Scanner" log set would do you quite nicely.

  3. #3
    Senior Member dolodobendan's Avatar
    Join Date
    Dec 2017
    Location
    Braunschweig, Germany
    Posts
    1,446
    Quote Originally Posted by mrw View Post
    I would think the predefined "Media Scanner" log set would do you quite nicely.
    I always forget about these. Thank you!
    QLMS 8.3@2.21 x64 (digimaster) / QNAP 469L QTS 4.3.4
    LMS 8.3 x64 / Intel NUC8 i3

  4. #4
    Senior Member dolodobendan's Avatar
    Join Date
    Dec 2017
    Location
    Braunschweig, Germany
    Posts
    1,446
    LMS restarted halfway through the scan. Nothing in server.log except the restart entry:

    Code:
    [21-10-12 15:49:00.9083] main::init (390) Starting Logitech Media Server (v8.3.0, 1633378714, Tue Oct  5 00:23:55 CEST 2021) perl 5.030000 - x86_64-linux-gnu-thread-multi
    scanner.log is 750MB... The last entries are:

    Code:
    [21-10-12 15:47:29.0697] Slim::Music::Artwork::findStandaloneArtwork (161) Using /mnt/NAS/Music/2check/Mozart, Wolfgang Amadeus/Mozart, W.A. - Klavierkonzerte (Anda)/Disc 10-10 (Vol. 3)/cover.jpg                                                                                      
    [21-10-12 15:47:29.0700] Slim::Schema::_createOrUpdateAlbum (977) -- NOT Checking for discs                                                                                                                                                                                              
    [21-10-12 15:47:29.0703] Slim::Schema::_createOrUpdateAlbum (1129) -- Searching for an album with: (                                                                                                                                                                                     
      [                                                                                                                                                                                                                                                                                      
        "albums.title = ?",                                                                                                                                                                                                                                                                  
        "albums.discc = ?",                                                                                                                                                                                                                                                                  
        "albums.contributor = ?",                                                                                                                                                                                                                                                            
      ],                                                                                                                                                                                                                                                                                     
      ["Mozart, W.A.: Piano Concertos Nos. 26 & 27", 10, 15_270],                                                                                                                                                                                                                            
    )                                                                                                                                                                                                                                                                                        
    [21-10-12 15:47:29.0707] Slim::Schema::_createOrUpdateAlbum (1293) -- Creating album 'Mozart, W.A.: Piano Concertos Nos. 26 & 27' with columns:                                                                                                                                          
    [21-10-12 15:47:29.0709] Slim::Schema::_createOrUpdateAlbum (1297) --- titlesearch : MOZART W A PIANO CONCERTOS NOS 26 27                                                                                                                                                                
    [21-10-12 15:47:29.0710] Slim::Schema::_createOrUpdateAlbum (1297) --- disc : 10                                                                                                                                                                                                         
    [21-10-12 15:47:29.0711] Slim::Schema::_createOrUpdateAlbum (1297) --- contributor : 15270                                                                                                                                                                                               
    [21-10-12 15:47:29.0712] Slim::Schema::_createOrUpdateAlbum (1297) --- artwork : 97c41449                                                                                                                                                                                                
    [21-10-12 15:47:29.0713] Slim::Schema::_createOrUpdateAlbum (1297) --- title : Mozart, W.A.: Piano Concertos Nos. 26 & 27                                                                                                                                                                
    [21-10-12 15:47:29.0714] Slim::Schema::_createOrUpdateAlbum (1297) --- year : 1970                                                                                                                                                                                                       
    [21-10-12 15:47:29.0715] Slim::Schema::_createOrUpdateAlbum (1297) --- discc : 10                                                                                                                                                                                                        
    [21-10-12 15:47:29.0716] Slim::Schema::_createOrUpdateAlbum (1297) --- titlesort : MOZART W A PIANO CONCERTOS NOS 26 27                                                                                                                                                                  
    [21-10-12 15:47:29.0719] Slim::Schema::_createOrUpdateAlbum (1333) -- Created
    QLMS 8.3@2.21 x64 (digimaster) / QNAP 469L QTS 4.3.4
    LMS 8.3 x64 / Intel NUC8 i3

  5. #5
    Senior Member dolodobendan's Avatar
    Join Date
    Dec 2017
    Location
    Braunschweig, Germany
    Posts
    1,446
    Some additional info:

    Code:
    Logitech Media Server Version: 8.3.0 - 1633378714 @ Tue Oct 5 00:23:55 CEST 2021
    Hostname: LMS
    Server IP Address: 192.168.178.2
    Server HTTP Port Number: 9000
    Operating system: Debian - EN - utf8
    Platform Architecture: x86_64-linux
    Perl Version: 5.30.0 - x86_64-linux-gnu-thread-multi
    Audio::Scan: 1.02
    IO::Socket::SSL: 2.067
    Database Version: DBD::SQLite 1.58 (sqlite 3.22.0)
    I enabled server logging and started a new scan.
    QLMS 8.3@2.21 x64 (digimaster) / QNAP 469L QTS 4.3.4
    LMS 8.3 x64 / Intel NUC8 i3

  6. #6
    Senior Member
    Join Date
    May 2010
    Location
    London, UK
    Posts
    923
    Quote Originally Posted by dolodobendan View Post
    LMS restarted halfway through the scan. Nothing in server.log except the restart entry:
    There's nothing obviously apparent in the brief logs you provided.

    I'm not aware of anything in LMS that automatically restarts the server without user intervention, but that doesn't count for much. Someone else may know better.

    I don't think systemd will automatically restart it, either, if it terminated for some reason. (I assume your Ubuntu uses systemd).

    So it's a puzzle.

    As a long shot - is there anything apparent in the system log after it stops ?

    On a systemd system:
    Code:
    systemctl status logitechmediaserve
    journalctl -r -u logitechmediaserver
    Although it may be somewhat spammed by all the logging.

  7. #7
    Senior Member dolodobendan's Avatar
    Join Date
    Dec 2017
    Location
    Braunschweig, Germany
    Posts
    1,446
    Quote Originally Posted by mrw View Post
    There's nothing obviously apparent in the brief logs you provided.

    I'm not aware of anything in LMS that automatically restarts the server without user intervention, but that doesn't count for much. Someone else may know better.

    I don't think systemd will automatically restart it, either, if it terminated for some reason. (I assume your Ubuntu uses systemd).
    Yes, it's Ubuntu 20.04 LTS server with LXQt.

    Quote Originally Posted by mrw View Post
    So it's a puzzle.

    As a long shot - is there anything apparent in the system log after it stops ?

    On a systemd system:
    Code:
    systemctl status logitechmediaserve
    journalctl -r -u logitechmediaserver
    Although it may be somewhat spammed by all the logging.
    "Clear library and rescan everything" did work. Maybe the Ubuntu-LMS doesn't like the "Wipe-the-cache-and-start-the-server" procedure. Hopefully, I don't have to do that anymore if I disable all refresh and rescanning for Multi Library. (If new library IDs are assigned, which does happen on startups or rescans occasionally, my Custom Browse menus stop working because they rely on a fixed ID. And the only way to fix this that I know of is to wipe the cache. Because I never know if it happens after a rescan, I made it a habit to wipe the cache before a scan.)

    But I'll keep that in mind, thank you. I disabled special logging again, so maybe the logs won't be as clogged if it happens again. Again, thanks for your help!
    Last edited by dolodobendan; 2021-10-12 at 13:25.
    QLMS 8.3@2.21 x64 (digimaster) / QNAP 469L QTS 4.3.4
    LMS 8.3 x64 / Intel NUC8 i3

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •