Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 5 123 ... LastLast
Results 1 to 10 of 42
  1. #1
    Senior Member
    Join Date
    Dec 2017
    Location
    PARIS, Fr
    Posts
    212

    PicorePlayer LMS Media scan terminated unexpectedly and then rescans randomly

    Dear Forum,
    i try to run LMS on Raspberry Pi 3 with picorePlayer, but i get an error every time i try to scan my library:
    Database Optimize (1 of 2) Complete 00:05:37
    Media scan terminated unexpectedly (Scanning Progress)
    unfortunately LMS just starts to rescan the library randomly then, LMS gets unresponsive and i can't listen to my music.
    I tried a complete reinstall of picore, but still the same.
    Attached is the Scanner log file, i really hope that somebody can help me here again, having updated my Synology to DSM7 is a total nightmare:-(

    Thank you
    Pommes
    Attached Files Attached Files
    The Earth Has Music For Those Who Listen

  2. #2
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    20,345
    Quote Originally Posted by Pommes View Post
    Dear Forum,
    i try to run LMS on Raspberry Pi 3 with picorePlayer, but i get an error every time i try to scan my library:
    Database Optimize (1 of 2) Complete 00:05:37
    Media scan terminated unexpectedly (Scanning Progress)
    unfortunately LMS just starts to rescan the library randomly then, LMS gets unresponsive and i can't listen to my music.
    I tried a complete reinstall of picore, but still the same.
    Attached is the Scanner log file, i really hope that somebody can help me here again, having updated my Synology to DSM7 is a total nightmare:-(

    Thank you
    Pommes
    I don't PCP well enough to knw pcp specifics but start with basics -
    what size sdcard ?
    Assuming library is o the Synology and LMS is scanning it. How much free space is left on the card for LMS database ?

  3. #3
    Senior Member
    Join Date
    Dec 2017
    Location
    PARIS, Fr
    Posts
    212
    Quote Originally Posted by bpa View Post
    I don't PCP well enough to knw pcp specifics but start with basics -
    what size sdcard ?
    Assuming library is o the Synology and LMS is scanning it. How much free space is left on the card for LMS database ?
    Thanks for helping,
    SDcard is 32 GB, musicfiles on synology

    Device Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id Type
    /dev/mmcblk0p1 128,0,1 127,3,16 8192 139263 131072 64.0M c Win95 FAT32 (LBA)
    /dev/mmcblk0p2 1023,3,16 1023,3,16 139264 62136319 61997056 29.5G 83 Linux
    The Earth Has Music For Those Who Listen

  4. #4
    Senior Member
    Join Date
    Dec 2017
    Location
    PARIS, Fr
    Posts
    212
    My library is huge, maybe there is not enough ram in the Raspberry?
    The Earth Has Music For Those Who Listen

  5. #5
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    20,345
    Quote Originally Posted by Pommes View Post
    My library is huge, maybe there is not enough ram in the Raspberry?
    PCP is only pure RAM based when as a player only.
    When LMS is run then files are stored on the sdcard.
    LMS database is stored on SDcard and the partition looks it is 29GB so should be enough space for it & cache.

    If your library is "huge " - how long does a "clear library & rescan everyhting" take ?

  6. #6
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    4,011
    That log doesn't have the error message is it, where do you see the error? But 29G partition should be plenty large enough. Ram should not be an issue either. Did you configure LMS to install the cache files in locations other than default?

    The only general scanning issue I know of, is a bug in 8.0 that would cause rescans if you have unconfigured plugins installed. If you do not uses internet streaming services like Qobuz, Tidal....etc, Make sure to uninstall the plugins. Some may have been installed by default. Another option is to upgrade to 8.0.1

    Otherwise we will need more logs...
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  7. #7
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,530

    PicorePlayer LMS Media scanterminated unexpectedly and then rescans randomly

    > My library is huge, maybe there is not enough ram in the Raspberry?

    How many tracks do you have? What is the db memory setting in
    LMS/Settings/Advanced/Performance? If it's on "max", set it to "high"
    instead, or vice-versa. It might have an impact on the overall scanning
    performance, but there are differences in the optimize step which might
    make a difference on the crash.

    Background: the optimization uses a lot of memory and/or disk space. Try
    to monitor both while running the scanner. Disk space could be the
    partition used for /tmp - which sometimes is created in RAM. In that
    case the size of the SD card wouldn't matter. Or it runs the
    optimization in RAM - which could be too small with 1GB if your
    collection was really huge.

    --

    Michael

  8. #8
    Senior Member
    Join Date
    Dec 2017
    Location
    PARIS, Fr
    Posts
    212

    Solved

    Thank you all so much for your help.
    My library is not giant, it’s monstrous. Over 200,000 tracks, a lot of spoken word, loops and samples, though. I did change the performance setting from maximum to high, and now the scanning went through without a problem.
    It took a couple of hours, but now, finally I am able to use LMS again, thanks to you.
    Best regards
    Pommes
    Last edited by Pommes; 2020-12-17 at 23:56. Reason: Adding

  9. #9
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,530

    PicorePlayer LMS Media scanterminated unexpectedly and then rescans randomly

    > My library is not giant, it’s monstrous. Over 200,000 tracks, a lot of
    > spoken word, loops and samples, though. I did change the performance
    > setting from maximum to high, and now the scanning went through without
    > a problem.
    > It took a couple of hours, but now, finally I am able to use LMS again,
    > thanks to you.


    Hmm... it's a pity you can't use the max memory option. How large would
    your library.db be?

    The reason I'm asking is that I did add some logic at some point to
    prevent the issue you're facing. But you might somehow be in a gray zone
    where that protection does not kick in yet, but still manages to run the
    scanner out of memory. This might be one of the cases where a Pi4 with
    larger memory might actually have an advantage.

    --

    Michael

  10. #10
    Senior Member
    Join Date
    Dec 2017
    Location
    PARIS, Fr
    Posts
    212
    Quote Originally Posted by mherger View Post
    > My library is not giant, it’s monstrous. Over 200,000 tracks, a lot of
    > spoken word, loops and samples, though. I did change the performance
    > setting from maximum to high, and now the scanning went through without
    > a problem.
    > It took a couple of hours, but now, finally I am able to use LMS again,
    > thanks to you.


    Hmm... it's a pity you can't use the max memory option. How large would
    your library.db be?

    The reason I'm asking is that I did add some logic at some point to
    prevent the issue you're facing. But you might somehow be in a gray zone
    where that protection does not kick in yet, but still manages to run the
    scanner out of memory. This might be one of the cases where a Pi4 with
    larger memory might actually have an advantage.

    --

    Michael
    Thank you Michael, exactly the question I wanted to ask, if the PI four would be of advantage here.
    Could you please let me know where to check the size of the DB? I could check the size tonight and then post it here.
    Thank you,
    Pommes
    The Earth Has Music For Those Who Listen

Tags for this Thread

Posting Permissions

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