Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1
    Junior Member
    Join Date
    Jan 2019
    Posts
    17

    Songs disappear from LMS' database when NAS is not (yet) connected

    Hi all,

    I am using LMS on a Raspberry Pi (piCorePlayer) with a network share as music source.
    Sometimes it happens the network share is not mounted properly during LMS' boot phase because the NAS is not yet up and ready (see also piCorePlayer v7.0.0: network disk mount -- retry settings not working).

    When attempting to play songs, LMS can't do that of course (because the corresponding files are not visible to it).
    Here is an example of what server.log is telling me:
    Code:
    [21-06-23 09:42:42.8585] Slim::Formats::readTags (176) File missing: /mnt/music/Black Sabbath/1980 - Heaven and Hell/02 - Black Sabbath - Children of the Sea.mp3
    [21-06-23 09:42:42.8770] Slim::Player::Protocols::File::open (91) Warning: [file:///mnt/music/Black%20Sabbath/1980%20-%20Heaven%20and%20Hell/02%20-%20Black%20Sabbath%20-%20Children%20of%20the%20Sea.mp3] not bothering opening file with zero size or duration
    [21-06-23 09:42:42.8790] Slim::Player::Song::open (480) Warning: stream failed to open [file:///mnt/music/Black%20Sabbath/1980%20-%20Heaven%20and%20Hell/02%20-%20Black%20Sabbath%20-%20Children%20of%20the%20Sea.mp3].
    The actual problem now is that LMS removes those songs from its database. And the only way to get the songs back into the database (once the network share is properly mounted) is to do a full rescan ("Clear library and rescan everything"). This is pretty annoying as it always takes a while to complete the rescan operation (approx. 1 hour).

    Is there any way to avoid songs being removed from the database in such situations?
    If not, is there any quicker way get "lost" songs back into the database?

    Best regards, Christoph

  2. #2
    Senior Member
    Join Date
    Feb 2011
    Location
    Cheshire, UK
    Posts
    5,918
    Is your NAS always on OR does it have Wake-on-LAN enabled

    I have a number of pCP servers with NFS mounts to my various NAs devices and not experienced this issue at all.
    VB2.4 storage QNAP TS419p (NFS)
    Living Room Joggler & Pi4/Khadas -> Onkyo TXNR686 -> Celestion F20s
    Office Joggler & Pi3 -> Denon RCD N8 -> Celestion F10s
    Dining Room SB Boom
    Kitchen UE Radio (upgraded to SB Radio)
    Bedroom (Bedside) Pi Zero+DAC ->ToppingTP21 ->AKG Headphones
    Bedroom (TV) & Bathroom SB Touch ->Denon AVR ->Mordaunt Short M10s + Kef ceiling speakers
    Guest Room Joggler > Topping Amp -> Wharfedale Modus Cubes
    Everything controlled by iPeng & Material on iOS

  3. #3
    Junior Member
    Join Date
    Jan 2019
    Posts
    17
    Usually the NAS is always on. The problematic situation is not the NAS going offline. Once piCorePlayer has mounted the share properly I can even reboot the NAS and piCorePlayer will still play fine once the NAS is back in operation.

    The problem usually occurs, when I re-power the NAS and the Raspberry Pi.
    The piCorePlayer takes less than a minute to get ready while the NAS needs 2+ minutes before it is operational.
    => The situation when I see this problem (songs disappearing from database because corresponding files are not available) is when piCorePlayer finishes its boot/init phase while the NAS is not yet ready.

    Of course, I could avoid this problem by switching on the NAS a bit before the Raspberry Pi. But unfortunately, I am not always that mindful.

  4. #4
    Senior Member
    Join Date
    Feb 2011
    Location
    Cheshire, UK
    Posts
    5,918
    Quote Originally Posted by chrober View Post
    Usually the NAS is always on. The problematic situation is not the NAS going offline. Once piCorePlayer has mounted the share properly I can even reboot the NAS and piCorePlayer will still play fine once the NAS is back in operation.

    The problem usually occurs, when I re-power the NAS and the Raspberry Pi.
    The piCorePlayer takes less than a minute to get ready while the NAS needs 2+ minutes before it is operational.
    => The situation when I see this problem (songs disappearing from database because corresponding files are not available) is when piCorePlayer finishes its boot/init phase while the NAS is not yet ready.

    Of course, I could avoid this problem by switching on the NAS a bit before the Raspberry Pi. But unfortunately, I am not always that mindful.
    have you tried shelling onto the Pi when this occurs and run

    sudo mount -a
    VB2.4 storage QNAP TS419p (NFS)
    Living Room Joggler & Pi4/Khadas -> Onkyo TXNR686 -> Celestion F20s
    Office Joggler & Pi3 -> Denon RCD N8 -> Celestion F10s
    Dining Room SB Boom
    Kitchen UE Radio (upgraded to SB Radio)
    Bedroom (Bedside) Pi Zero+DAC ->ToppingTP21 ->AKG Headphones
    Bedroom (TV) & Bathroom SB Touch ->Denon AVR ->Mordaunt Short M10s + Kef ceiling speakers
    Guest Room Joggler > Topping Amp -> Wharfedale Modus Cubes
    Everything controlled by iPeng & Material on iOS

  5. #5
    Senior Member
    Join Date
    Jan 2011
    Location
    Staffordshire. UK
    Posts
    4,438
    There is this setting on the pCP LMS tab page

    Name:  pCP waiting time.png
Views: 80
Size:  55.8 KB

    ronnie

  6. #6
    Junior Member
    Join Date
    Jan 2019
    Posts
    17
    Hi Ronnie,
    I assume this setting would be very helpful to avoid this problem.
    Actually, I have discovered this config option already a while ago, however it does not work for me:
    piCorePlayer v7.0.0: network disk mount -- retry settings not working

  7. #7
    Junior Member
    Join Date
    Jan 2019
    Posts
    17
    Quote Originally Posted by d6jg View Post
    have you tried shelling onto the Pi when this occurs and run

    sudo mount -a
    I have just tried this and it did not work.
    What usually helps is sudo reboot in order to get the shares mounted.

  8. #8
    Senior Member
    Join Date
    Jan 2011
    Location
    Staffordshire. UK
    Posts
    4,438
    Quote Originally Posted by chrober View Post
    Hi Ronnie,
    I assume this setting would be very helpful to avoid this problem.
    Actually, I have discovered this config option already a while ago, however it does not work for me:
    piCorePlayer v7.0.0: network disk mount -- retry settings not working

    Well you do have a lot of devices connect don't you

    To my simple mind it is showing the mount as not being available.


    Code:
    [1;34mStarting Openssh server...[0;39m [1;32mDone.[0;39m
    [1;34mMounting Network Drive...[1;33m
    mount: /mnt/music: special device //192.168.1.100/music does not exist.
    [1;31mDisk Mount Error, Retrying 2 more times...sleeping 10 seconds.[1;33m
    mount: /mnt/music: special device //192.168.1.100/music does not exist.
    [1;31mDisk Mount Error, Retrying 1 more times...sleeping 10 seconds.[1;33m
    mount: /mnt/music: special device //192.168.1.100/music does not exist.
    [1;31mDisabling network mount from server at 192.168.1.100.[0;39m
    mount: /mnt/audiobooks: special device //192.168.1.100/audiobooks does not exist.
    [1;31mDisk Mount Error, Retrying 2 more times...sleeping 10 seconds.[1;33m
    mount: /mnt/audiobooks: special device //192.168.1.100/audiobooks does not exist.
    [1;31mDisk Mount Error, Retrying 1 more times...sleeping 10 seconds.[1;33m
    mount: /mnt/audiobooks: special device //192.168.1.100/audiobooks does not exist.
    [1;31mDisabling network mount from server at 192.168.1.100.[0;39m
     [1;32mDone.[0;39m
    [1;34mWaiting for valid date before starting LMS [0;39m [1;32mDone.[0;39m
    which NAS do you have ?

    ronnie

    Edit: and how long did you set the wait time for, did you save the setting and reboot the pCP ?

  9. #9
    Junior Member
    Join Date
    Jan 2019
    Posts
    17
    Quote Originally Posted by Man in a van View Post
    Well you do have a lot of devices connect don't you
    Yes, there is one player for (almost) every room.

    Quote Originally Posted by Man in a van View Post
    which NAS do you have ?
    It is a Synology DS415play.

    Quote Originally Posted by Man in a van View Post
    and how long did you set the wait time for, did you save the setting and reboot the pCP ?
    The current value is 300 seconds. Of course this config option is persisted, i.e. it does survive a pCP reboot.
    Name:  23-06-_2021_17-19-39.png
Views: 64
Size:  3.6 KB
    However, this value does not has any effect (that is why I have written this other forum post). It is always just 3 mount attempts with a 10 second waiting period in between.

  10. #10
    Senior Member
    Join Date
    Jan 2011
    Location
    Staffordshire. UK
    Posts
    4,438

Posting Permissions

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