Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Feb 2006
    Posts
    26

    cannot rescan music folders

    Hi. I'm running Logitech Media Server Version: 7.9.1 - 1515216179 on Linux Mint 17.

    I have LMS set to rescan music folders twice a day.

    However, the last morning scan was still running hours after it should have completed. So I hit "abort scan" and tried to re-run the scan from the LMS user interface and by logging into the Linux Mint machine via ssh and running the scanner via the command line. Both efforts failed with the following messages:

    Code:
    [18-01-09 14:40:54.5286] main::main (205) Starting Logitech Media Server scanner (v7.9.1, 1515216179, Sat Jan  6 06:03:58 UTC 2018) perl 5.018002
    [18-01-09 14:40:54.6869] Slim::Schema::forceCommit (2149) Warning: Trying to commit transactions before DB is initialized!
    [18-01-09 14:40:54.8413] Slim::Music::Import::runImporter (511) Starting Slim::Media::MediaFolderScan scan
    [18-01-09 14:40:54.8417] Slim::Utils::Scanner::Local::rescan (181) Discovering audio files in /mnt/MUSIC1
    [18-01-09 14:40:56.9001] Slim::Utils::SQLiteHelper::updateProgress (446) Warning: Server aborted scan, shutting down
    The LMS media server log file is as follows:

    Code:
    2018-01-09 11:17:35 squeezeboxserver_safe started.
    [18-01-09 11:17:36.5711] main::init (387) Starting Logitech Media Server (v7.9.1, 1515216179, Sat Jan  6 06:03:58 UTC 2018) perl 5.018002 - x86_64-linux-gnu-thread-multi
    [18-01-09 11:17:36.7840] Slim::Utils::IPDetect::_init (113) Warning: Couldn't call connect() - falling back to 127.0.0.1
    [18-01-09 11:17:37.3050] Plugins::NPRRadio::Metadata::init (21) Register NPR meta provider, default icon= 
    [18-01-09 11:17:37.4567] Slim::Networking::Async::Socket::UDP::mcast_add (48) Error: While adding multicast membership, UPnP may not work properly: No such device
    [18-01-09 11:17:38.9987] Slim::Utils::Misc::msg (1250) Warning: [11:17:38.9984] EV: error in callback (ignoring): pack_sockaddr: invalid host at /usr/share/squeezeboxserver/lib/AnyEvent/DNS.pm line 1114.
    [18-01-09 11:17:38.9992] Slim::Utils::Misc::msg (1250) Warning: [11:17:38.9990] EV: error in callback (ignoring): pack_sockaddr: invalid host at /usr/share/squeezeboxserver/lib/AnyEvent/DNS.pm line 1114.
    [18-01-09 11:17:40.9974] Slim::Utils::Misc::msg (1250) Warning: [11:17:40.9971] EV: error in callback (ignoring): pack_sockaddr: invalid host at /usr/share/squeezeboxserver/lib/AnyEvent/DNS.pm line 1114.
    [18-01-09 11:17:40.9979] Slim::Utils::Misc::msg (1250) Warning: [11:17:40.9977] EV: error in callback (ignoring): pack_sockaddr: invalid host at /usr/share/squeezeboxserver/lib/AnyEvent/DNS.pm line 1114.
    [18-01-09 11:17:45.9978] Slim::Utils::Misc::msg (1250) Warning: [11:17:45.9975] EV: error in callback (ignoring): pack_sockaddr: invalid host at /usr/share/squeezeboxserver/lib/AnyEvent/DNS.pm line 1114.
    [18-01-09 11:17:45.9983] Slim::Utils::Misc::msg (1250) Warning: [11:17:45.9981] EV: error in callback (ignoring): pack_sockaddr: invalid host at /usr/share/squeezeboxserver/lib/AnyEvent/DNS.pm line 1114.
    [18-01-09 11:17:47.9994] Slim::Utils::Misc::msg (1250) Warning: [11:17:47.9991] EV: error in callback (ignoring): pack_sockaddr: invalid host at /usr/share/squeezeboxserver/lib/AnyEvent/DNS.pm line 1114.
    [18-01-09 11:17:47.9997] Slim::Utils::Misc::msg (1250) Warning: [11:17:47.9996] EV: error in callback (ignoring): pack_sockaddr: invalid host at /usr/share/squeezeboxserver/lib/AnyEvent/DNS.pm line 1114.
    [18-01-09 11:17:55.9985] Slim::Utils::Misc::msg (1250) Warning: [11:17:55.9983] EV: error in callback (ignoring): pack_sockaddr: invalid host at /usr/share/squeezeboxserver/lib/AnyEvent/DNS.pm line 1114.
    [18-01-09 11:17:55.9989] Slim::Utils::Misc::msg (1250) Warning: [11:17:55.9988] EV: error in callback (ignoring): pack_sockaddr: invalid host at /usr/share/squeezeboxserver/lib/AnyEvent/DNS.pm line 1114.
    [18-01-09 11:17:58.0006] Slim::Utils::Misc::msg (1250) Warning: [11:17:57.0002] EV: error in callback (ignoring): pack_sockaddr: invalid host at /usr/share/squeezeboxserver/lib/AnyEvent/DNS.pm line 1114.
    [18-01-09 11:17:58.0016] Slim::Utils::Misc::msg (1250) Warning: [11:17:58.0012] EV: error in callback (ignoring): pack_sockaddr: invalid host at /usr/share/squeezeboxserver/lib/AnyEvent/DNS.pm line 1114.
    [18-01-09 11:18:01.0594] Slim::Formats::XML::gotErrorViaHTTP (338) Error: getting http://www.mysqueezebox.com/api/sounds/v1/opml
    Couldn't resolve IP address for: www.mysqueezebox.com
    [18-01-09 11:18:01.0596] Slim::Plugin::Sounds::Plugin::_gotSoundsError (83) Error: Unable to cache Sounds & Effects menu from SN: Couldn't resolve IP address for: www.mysqueezebox.com
    [18-01-09 11:18:03.0034] Slim::Formats::XML::gotErrorViaHTTP (338) Error: getting http://opml.radiotime.com/Index.aspx?partnerId=16
    Couldn't resolve IP address for: opml.radiotime.com
    [18-01-09 11:18:03.0037] Slim::Plugin::InternetRadio::Plugin::_gotRadioError (67) Unable to retrieve radio directory from SN: Couldn't resolve IP address for: opml.radiotime.com
    This is the complete log file.

    After rebooting I run another scan and the scanner runs a seemingly endless loop attempting to handle a deleted file which was never deleted from the hard drive.


    Code:
    [18-01-09 14:56:59.7501] main::main (205) Starting Logitech Media Server scanner (v7.9.1, 1515216179, Sat Jan  6 06:03:58 UTC 2018) perl 5.018002
    [18-01-09 14:56:59.9136] Slim::Schema::forceCommit (2149) Warning: Trying to commit transactions before DB is initialized!
    [18-01-09 14:57:00.0688] Slim::Music::Import::runImporter (511) Starting Slim::Media::MediaFolderScan scan
    [18-01-09 14:57:00.0693] Slim::Utils::Scanner::Local::rescan (181) Discovering audio files in /mnt/MUSICFOLDER
    [18-01-09 14:57:41.0078] Slim::Utils::Scanner::Local::__ANON__ (193) Start processing found tracks
    [18-01-09 14:57:41.0082] Slim::Utils::Scanner::Local::__ANON__ (201) Connect do DB
    [18-01-09 14:57:41.0083] Slim::Utils::Scanner::Local::__ANON__ (204) Get latest ID
    [18-01-09 14:57:41.0087] Slim::Utils::Scanner::Local::__ANON__ (226) Delete temporary table if exists
    [18-01-09 14:57:41.0091] Slim::Utils::Scanner::Local::__ANON__ (229) Re-build temporary table
    [18-01-09 14:57:41.9794] Slim::Utils::Scanner::Local::__ANON__ (278) Get deleted tracks count
    [18-01-09 14:57:43.1711] Slim::Utils::Scanner::Local::__ANON__ (285) Get new tracks count
    [18-01-09 14:57:43.1714] Slim::Utils::Scanner::Local::__ANON__ (290) Get changed tracks count
    [18-01-09 14:57:44.5447] Slim::Utils::Scanner::Local::__ANON__ (296) Removing deleted audio files (1)
    [18-01-09 14:57:45.6922] Slim::Utils::Scanner::Local::deleted (828) Handling deleted file file:///mnt/PATHTOMUSICFILE
    [18-01-09 14:57:46.8204] Slim::Utils::Scanner::Local::deleted (828) Handling deleted file
    This is just the top of the scanner log - it goes on like this for more than 100 attempts to "delete" the same file which is still on the hard drive. Eventually I have to stop LMS manually.

    This has happened numerous times - an endless loop of trying to delete a file from LMS which has not been deleted from my music library. And, LMS has successfully scanned this mp3 file for about three years. I suppose something could have happened to it - but I just listened to it, for whatever that might be worth.

    Thanks for your time.

    gmachine_24

  2. #2
    Junior Member
    Join Date
    Feb 2006
    Posts
    26

    Solved, sort of

    Things got worse with this version of LMS - there were hundreds of error messages about the tag info being too large; something about no mp3 frame yadda yadda yadda. Yes, I should have kept a copy of the log but I got so fed up I downloaded the latest install (might not be latest now but as of 1/11/18 it was the latest) and, guess what? No more problems. No error messages. No nothing. I had become afraid that my Linux install was corrupt or something had corrupted my music library. But, apparently not.

    If I can figure out how to mark this threat as solved I will.

Posting Permissions

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