Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Senior Member Lestrad's Avatar
    Join Date
    Oct 2010
    Posts
    414

    LMS committing suicide

    Hello. I've been using this version (8.0.0 - ARCH-AUR-GIT.20200807.1a544e3, on Arch Linux ARM version 5.7.2-1-ARCH) for some time now with few problems, but suddenly in the past few days I've had problems. I just ran systemctl status logitechmediaserver-git
    and this is the result:

    Code:
    [alarm@alarm ~]$ sudo systemctl status logitechmediaserver-git
    ● logitechmediaserver-git.service - Logitech Media Server Daemon
         Loaded: loaded (/usr/lib/systemd/system/logitechmediaserver-git.service; enabled; vendor preset: disabled)
         Active: failed (Result: signal) since Fri 2021-07-23 13:43:30 CEST; 8min ago
        Process: 472 ExecStart=/opt/logitechmediaserver-git/slimserver.pl --prefsdir /opt/logitechmediaserver-git/prefs --cachedir /opt/logitechmediaserver-git/cache --logdir /opt/logitechmediaserver->
       Main PID: 472 (code=killed, signal=KILL)
    
    juil. 23 13:02:15 alarm slimserver.pl[626]: Decompressing...
    juil. 23 13:02:16 alarm slimserver.pl[630]: --- Monkey's Audio Console Front End (v 3.99) (c) Matthew T. Ashland ---
    juil. 23 13:02:16 alarm slimserver.pl[630]: Decompressing...
    juil. 23 13:02:16 alarm slimserver.pl[635]: --- Monkey's Audio Console Front End (v 3.99) (c) Matthew T. Ashland ---
    juil. 23 13:02:16 alarm slimserver.pl[635]: Decompressing...
    juil. 23 13:02:17 alarm slimserver.pl[630]: Error: 1001
    juil. 23 13:02:17 alarm slimserver.pl[626]: Error: 1001
    juil. 23 13:02:18 alarm slimserver.pl[635]: Error: 1001
    juil. 23 13:43:30 alarm systemd[1]: logitechmediaserver-git.service: Main process exited, code=killed, status=9/KILL
    juil. 23 13:43:30 alarm systemd[1]: logitechmediaserver-git.service: Failed with result 'signal'.
    I do not use Monkey's Audio, nor have I ever asked to install any plug-in connected with it. I even make a point of not updating the plug-ins I do use.

    I found the following in dmesg:
    Code:
    [ 3396.734664] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/system.slice/logitechmediaserver-git.service,task=slimserver.pl,pid=472,uid=974
    [ 3396.751696] Out of memory: Killed process 472 (slimserver.pl) total-vm:1997364kB, anon-rss:1934920kB, file-rss:0kB, shmem-rss:0kB, UID:974 pgtables:1932kB oom_score_adj:0
    [ 3397.296739] oom_reaper: reaped process 472 (slimserver.pl), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB
    [ 3397.717436] audit: type=1131 audit(1627040610.924:45): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=_ msg='unit=logitechmediaserver-git comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
    Restarting LMS produced the following:
    Code:
    [alarm@alarm ~]$ sudo systemctl status logitechmediaserver-git
    ● logitechmediaserver-git.service - Logitech Media Server Daemon
         Loaded: loaded (/usr/lib/systemd/system/logitechmediaserver-git.service; enabled; vendor preset: disabled)
         Active: active (running) since Fri 2021-07-23 14:03:54 CEST; 5s ago
       Main PID: 733 (slimserver.pl)
          Tasks: 1 (limit: 4638)
         Memory: 49.3M
         CGroup: /system.slice/logitechmediaserver-git.service
                 └─733 /usr/bin/perl /opt/logitechmediaserver-git/slimserver.pl --prefsdir /opt/logitechmediaserver-git/prefs --cachedir /opt/logitechmediaserver-git/cache --logdir /opt/logitechmedias>
    
    juil. 23 14:03:54 alarm systemd[1]: Started Logitech Media Server Daemon.
    juil. 23 14:03:57 alarm slimserver.pl[733]: Async::HTTP: Unable to load IO::Socket::SSL, will try connecting to SSL servers in non-SSL mode
    juil. 23 14:03:57 alarm slimserver.pl[733]: Can't locate Net/SSLeay.pm in @INC (you may need to install the Net::SSLeay module) (@INC contains: /opt/logitechmediaserver-git/CPAN/arch/5.30/arm-linu>
    juil. 23 14:03:57 alarm slimserver.pl[733]: BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/IO/Socket/SSL.pm line 19.
    juil. 23 14:03:57 alarm slimserver.pl[733]: Compilation failed in require at /opt/logitechmediaserver-git/Slim/Networking/Async/Socket/HTTPS.pm line 13.
    juil. 23 14:03:57 alarm slimserver.pl[733]: BEGIN failed--compilation aborted at /opt/logitechmediaserver-git/Slim/Networking/Async/Socket/HTTPS.pm line 13.
    juil. 23 14:03:57 alarm slimserver.pl[733]: Compilation failed in require at /opt/logitechmediaserver-git/Slim/Networking/Async/HTTP.pm line 22.
    lines 1-16/16 (END)
    But when I try to start LMS it hangs. Can anyone help?
    __________________________________________________ _____________________
    Logitech Media Server Version: 8.0.0 - ARCH-AUR-GIT.20200807.1a544e3 running on Wandboard Quad, music library on USB HDD
    Squeezebox Touch plugged into run-of-the-mill stereo rig via Musical Fidelity X-Act, extra speakers in kitchen, basement, and bedroom connected by ordinary (not unidirectional) copper wire.

  2. #2
    Senior Member
    Join Date
    May 2010
    Location
    London, UK
    Posts
    923
    Quote Originally Posted by Lestrad View Post
    Can anyone help?
    I’d start by figuring out why you might have got an “OOM” error, i.e. insufficient system memory.

  3. #3
    Senior Member
    Join Date
    Aug 2012
    Location
    Austria
    Posts
    1,237
    Quote Originally Posted by Lestrad View Post
    I do not use Monkey's Audio, nor have I ever asked to install any plug-in connected with it. I even make a point of not updating the plug-ins I do use.
    Monkey's Audio is enabled by LMS' default convert.conf for *.ape files

    Restarting LMS produced the following:
    The perl modules IO::Socket::SSL and/or Net::SSLeay seem to be broken (can happen e.g. by upgrading openssl without re-building them). Re-install them.
    Various SW: Web Interface | Text Interface | Playlist Editor / Generator | Music Classification | Similar Music | Announce | EventTrigger | Ambient Noise Mixer | DB Optimizer | Image Enhancer | Chiptunes | LMSlib2go | ...
    Various HowTos: build a self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...

  4. #4
    Senior Member Lestrad's Avatar
    Join Date
    Oct 2010
    Posts
    414
    Quote Originally Posted by mrw View Post
    I’d start by figuring out why you might have got an “OOM” error, i.e. insufficient system memory.
    I had been running samba with a high debug level to try to solve an unrelated problem. It's currently running at 4. Could that have something to do with it? The problem in question causes the system to hang while trying to access a cis share that disconnects for unknown reasons.
    __________________________________________________ _____________________
    Logitech Media Server Version: 8.0.0 - ARCH-AUR-GIT.20200807.1a544e3 running on Wandboard Quad, music library on USB HDD
    Squeezebox Touch plugged into run-of-the-mill stereo rig via Musical Fidelity X-Act, extra speakers in kitchen, basement, and bedroom connected by ordinary (not unidirectional) copper wire.

  5. #5
    Senior Member Lestrad's Avatar
    Join Date
    Oct 2010
    Posts
    414
    Quote Originally Posted by Roland0 View Post
    The perl modules IO::Socket::SSL and/or Net::SSLeay seem to be broken (can happen e.g. by upgrading openssl without re-building them). Re-install them.
    Thanks. Could you give me a hint as to how to re-install the modules? Can I simply re-install perl using pacman? I didn't upgrade anything. I know better.
    Last edited by Lestrad; 2021-07-23 at 07:21.
    __________________________________________________ _____________________
    Logitech Media Server Version: 8.0.0 - ARCH-AUR-GIT.20200807.1a544e3 running on Wandboard Quad, music library on USB HDD
    Squeezebox Touch plugged into run-of-the-mill stereo rig via Musical Fidelity X-Act, extra speakers in kitchen, basement, and bedroom connected by ordinary (not unidirectional) copper wire.

  6. #6
    Senior Member
    Join Date
    Aug 2012
    Location
    Austria
    Posts
    1,237
    Quote Originally Posted by Lestrad View Post
    Thanks. Could you give me a hint as to how to re-install the modules? Can I simply re-install perl using pacman?
    The distros I know package them separately (as 2 packages), and do not include them in perl proper.
    Various SW: Web Interface | Text Interface | Playlist Editor / Generator | Music Classification | Similar Music | Announce | EventTrigger | Ambient Noise Mixer | DB Optimizer | Image Enhancer | Chiptunes | LMSlib2go | ...
    Various HowTos: build a self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...

  7. #7
    Senior Member
    Join Date
    May 2010
    Location
    London, UK
    Posts
    923
    Quote Originally Posted by Lestrad View Post
    I had been running samba with a high debug level to try to solve an unrelated problem. It's currently running at 4. Could that have something to do with it?
    I don't know. Is it possible that you have an enormous log output finding its way into a "ramdisk" ?

    The rare occasions that I have experienced OOM have arisen when I started up another process that turned out to require more memory than was available. I do not have a swap file enabled on my system, so physical memory was a real constraint.

  8. #8
    Senior Member Lestrad's Avatar
    Join Date
    Oct 2010
    Posts
    414
    Quote Originally Posted by mrw View Post
    I don't know. Is it possible that you have an enormous log output finding its way into a "ramdisk" ?

    The rare occasions that I have experienced OOM have arisen when I started up another process that turned out to require more memory than was available. I do not have a swap file enabled on my system, so physical memory was a real constraint.
    It looks to me like LMS as I had it installed was the culprit. Systemctl status reported OK, but when I opened the browser interface it was taking up 80-100% of CPU and 70-80% of memory, and then the output of top just froze. Not much of anything in the log.

    I've decided to reinstall. So far so good. God help me.
    __________________________________________________ _____________________
    Logitech Media Server Version: 8.0.0 - ARCH-AUR-GIT.20200807.1a544e3 running on Wandboard Quad, music library on USB HDD
    Squeezebox Touch plugged into run-of-the-mill stereo rig via Musical Fidelity X-Act, extra speakers in kitchen, basement, and bedroom connected by ordinary (not unidirectional) copper wire.

  9. #9
    Senior Member Lestrad's Avatar
    Join Date
    Oct 2010
    Posts
    414

    Update by OP: Building Full Text Index stalled

    ----------Upate----------------

    Version is logitechmediaserver-git 20210327.21451_359cd3a1d-1. The make process went fine. In all it took about 2.5 hours. I uninstalled the existing LMS and installed the new one and started and enabled the service. The interface came up and I filled in the required info. A scan was run - of the Playlists folder only. So I launched a full scan of the Music folder. That was 9 hours ago. About 1.5 hours ago the Full Text Index process seems to have stalled. It's now 07:17 and the end of the scan log shows:
    Code:
    [21-07-25 00:05:44.3258] Slim::Utils::Scanner::Local::__ANON__ (381) Rescanning changed audio files (0)
    [21-07-25 00:05:44.3275] Slim::Music::Import::endImporter (710) Completed Slim::Music::PlaylistFolderScan Scan in 9 seconds.
    [21-07-25 00:05:44.3293] Slim::Music::Import::runImporter (577) Starting Slim::Plugin::WiMP::Importer scan
    [21-07-25 00:05:45.8436] Slim::Music::Import::endImporter (710) Completed Slim::Plugin::WiMP::Importer Scan in 1 seconds.
    [21-07-25 00:05:45.8495] Slim::Music::Import::runImporter (577) Starting Slim::Plugin::ExtendedBrowseModes::Libraries scan
    [21-07-25 00:05:45.8509] Slim::Music::Import::runImporter (577) Starting Slim::Plugin::FullTextSearch::Plugin scan
    [21-07-25 00:05:45.8536] Slim::Plugin::FullTextSearch::Plugin::_rebuildIndex (453) Starting fulltext index build
    [21-07-25 00:05:45.8547] Slim::Plugin::FullTextSearch::Plugin::_rebuildIndex (457) Initialize fulltext table
    [21-07-25 00:05:45.8622] Slim::Plugin::FullTextSearch::Plugin::_rebuildIndex (470) Create fulltext index for tracks
    at the end, with no new entries in just under two hours.

    The browser display shows:

    Code:
    Discovering files/directories: /mnt/littlenas/media/Music   (84039 of 84039)   Complete  00:02:19
    
    Scanning new music files: /mnt/littlenas/media/Music   (75355 of 75355)   Complete  03:58:36
    
    Discovering playlists: /mnt/littlenas/media/Playlists   (10 of 10)   Complete  00:00:00
    
    Scanning new playlists: /mnt/littlenas/media/Playlists   (9 of 9)   Complete  00:00:02
    
    Building full text index   (1 of 7)   Running  05:40:01
    
    Songs
    CPU use by LMS is close to or at 100% for perl and slimserver.


    The server log shows:
    Code:
    [21-07-24 16:20:21.6919] Slim::Utils::SQLiteHelper::postConnect (377) Optimizing DB because of missing or empty sqlite_stat1 table
    [21-07-24 16:20:21.7181] Slim::Schema::forceCommit (2171) Warning: Trying to commit transactions before DB is initialized!
    [21-07-24 16:25:05.5620] Slim::Utils::SQLiteHelper::postConnect (377) Optimizing DB because of missing or empty sqlite_stat1 table
    [21-07-24 16:25:05.5843] Slim::Schema::forceCommit (2171) Warning: Trying to commit transactions before DB is initialized!
    [21-07-25 04:50:59.9130] Slim::Schema::Storage::throw_exception (121) Error: DBI Exception: DBD::SQLite::st execute failed: database is locked [for Statement "UPDATE contributors SET name = ?, namesearch = ?, namesort = ? WHERE ( id = ? )" with ParamValues: 1='Various Artists', 2='VARIOUS ARTISTS', 3='VARIOUS ARTISTS', 4=4]
    [21-07-25 04:50:59.9246] Slim::Schema::Storage::throw_exception (121) Backtrace:
    
       frame 0: Slim::Utils::Log::logBacktrace (/opt/logitechmediaserver/Slim/Schema/Storage.pm line 121)
       frame 1: Slim::Schema::Storage::throw_exception (/opt/logitechmediaserver/CPAN/DBIx/Class/Storage/DBI.pm line 1007)
       frame 2: DBIx::Class::Storage::DBI::__ANON__ (/opt/logitechmediaserver/CPAN/DBIx/Class/Storage/DBI.pm line 1287)
       frame 3: DBIx::Class::Storage::DBI::_dbh_execute (/opt/logitechmediaserver/CPAN/DBIx/Class/Storage/DBI.pm line 587)
       frame 4: (eval) (/opt/logitechmediaserver/CPAN/DBIx/Class/Storage/DBI.pm line 581)
       frame 5: DBIx::Class::Storage::DBI::dbh_do (/opt/logitechmediaserver/CPAN/DBIx/Class/Storage/DBI.pm line 1297)
       frame 6: DBIx::Class::Storage::DBI::_execute (/opt/logitechmediaserver/CPAN/DBIx/Class/Storage/DBI.pm line 1419)
       frame 7: DBIx::Class::Storage::DBI::update (/opt/logitechmediaserver/CPAN/DBIx/Class/Row.pm line 492)
       frame 8: DBIx::Class::Row::update (/opt/logitechmediaserver/CPAN/DBIx/Class/Relationship/CascadeActions.pm line 35)
       frame 9: DBIx::Class::Relationship::CascadeActions::update (/opt/logitechmediaserver/Slim/Schema/DBI.pm line 32)
       frame 10: Slim::Schema::DBI::update (/opt/logitechmediaserver/Slim/Schema.pm line 1913)
       frame 11: Slim::Schema::variousArtistsObject (/opt/logitechmediaserver/Slim/Control/Queries.pm line 921)
       frame 12: Slim::Control::Queries::artistsQuery (/opt/logitechmediaserver/Slim/Control/Request.pm line 1883)
       frame 13: (eval) (/opt/logitechmediaserver/Slim/Control/Request.pm line 1883)
       frame 14: Slim::Control::Request::execute (/opt/logitechmediaserver/Slim/Menu/BrowseLibrary.pm line 945)
       frame 15: Slim::Menu::BrowseLibrary::_doRequest (/opt/logitechmediaserver/Slim/Menu/BrowseLibrary.pm line 925)
       frame 16: Slim::Menu::BrowseLibrary::_generic (/opt/logitechmediaserver/Slim/Menu/BrowseLibrary.pm line 1239)
       frame 17: Slim::Menu::BrowseLibrary::_artists (/opt/logitechmediaserver/Slim/Menu/BrowseLibrary.pm line 764)
       frame 18: Slim::Menu::BrowseLibrary::_topLevel (/opt/logitechmediaserver/Slim/Control/XMLBrowser.pm line 193)
       frame 19: Slim::Control::XMLBrowser::cliQuery (/opt/logitechmediaserver/Slim/Menu/BrowseLibrary.pm line 301)
       frame 20: Slim::Menu::BrowseLibrary::cliQuery (/opt/logitechmediaserver/Slim/Control/Request.pm line 1883)
       frame 21: (eval) (/opt/logitechmediaserver/Slim/Control/Request.pm line 1883)
       frame 22: Slim::Control::Request::execute (/opt/logitechmediaserver/Slim/Control/Request.pm line 880)
       frame 23: Slim::Control::Request::executeRequest (/opt/logitechmediaserver/Slim/Web/XMLBrowser.pm line 1280)
       frame 24: Slim::Web::XMLBrowser::webLink (/opt/logitechmediaserver/Slim/Web/HTTP.pm line 1138)
       frame 25: Slim::Web::HTTP::generateHTTPResponse (/opt/logitechmediaserver/Slim/Web/HTTP.pm line 912)
       frame 26: Slim::Web::HTTP::processURL (/opt/logitechmediaserver/Slim/Web/HTTP.pm line 707)
       frame 27: Slim::Web::HTTP::processHTTP (/opt/logitechmediaserver/Slim/Networking/IO/Select.pm line 122)
       frame 28: (eval) (/opt/logitechmediaserver/Slim/Networking/IO/Select.pm line 118)
       frame 29: Slim::Networking::IO::Select::__ANON__ (/opt/logitechmediaserver/Slim/Networking/IO/Select.pm line 167)
       frame 30: (eval) (/opt/logitechmediaserver/Slim/Networking/IO/Select.pm line 167)
       frame 31: Slim::Networking::IO::Select::loop (/opt/logitechmediaserver/slimserver.pl line 728)
       frame 32: main::idle (/opt/logitechmediaserver/slimserver.pl line 678)
       frame 33: main::main (/opt/logitechmediaserver/slimserver.pl line 1211)
    Note that somewhere between:
    [21-07-24 16:25:05.5843] Slim::Schema::forceCommit (2171) Warning: Trying to commit transactions before DB is initialized!
    and
    [21-07-25 04:50:59.9130] Slim::Schema::Storage::throw_exception (121) Error: DBI Exception: DBD::SQLite::st execute failed: database is locked [for Statement "UPDATE

    - around 21-07-24 22:00:00.xxxx] - is where I actually launched the scan.

    Any help would be appreciated.

    ______________________
    __________________________________________________ _____________________
    Logitech Media Server Version: 8.0.0 - ARCH-AUR-GIT.20200807.1a544e3 running on Wandboard Quad, music library on USB HDD
    Squeezebox Touch plugged into run-of-the-mill stereo rig via Musical Fidelity X-Act, extra speakers in kitchen, basement, and bedroom connected by ordinary (not unidirectional) copper wire.

  10. #10
    Senior Member
    Join Date
    May 2010
    Location
    London, UK
    Posts
    923
    Quote Originally Posted by Lestrad View Post
    Any help would be appreciated.
    I don't have a library anywhere near 75000 tracks, and have not knowingly experienced the issue.

    In the absence of any informed suggestions:

    What is the available system memory at this point ? The 'free' command would show this.

    Would it be worth trying again with the "Full Text Search" plugin disabled ? That might localize the issue to the operation of the plugin.

Posting Permissions

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