Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Oct 2005
    Location
    Pangbourne, Berks, UK
    Posts
    72

    PiCorePlayer - retry Network Mount, or delay startup somehow?

    Hi guys

    Firstly many thanks for the great software - much appreciated.

    My LMS runs on PiCorePlayer 5.0.0 on a Pi 3b, and runs well. The music files are on a Zyxel NAS accessed via the Network Disc Mount facility (CIFS)
    My problem is every time we have a power fail, which happens a lot here, once the power is restored, PCP and LMS restart more quickly than the NAS. The mount of the NAS then fails and we have no music! I can resolve this with a reboot of PCP or mount -a, but an automatic solution would be far better.
    Is there a way to retry the Network Mount if it fails?
    Or delay PCP/LMS startup to give the NAS time to get going?
    Or some other solution

    I am about to move over to a Pi 4 which I guess will start even faster!

    Thanks in advance

  2. #2
    Senior Member
    Join Date
    Jan 2011
    Location
    Staffordshire. UK
    Posts
    4,254
    try this on the wi-fi page (this is from v6.0.0 I can't remember if it there on v5.0.0)

    Name:  slow start.jpg
Views: 221
Size:  97.2 KB

    ronnie

  3. #3
    Senior Member
    Join Date
    Jan 2011
    Location
    Staffordshire. UK
    Posts
    4,254
    This is an extract from the "boot" log on a player only pCP

    Loading configuration file... Done.
    Loading pcp-lms-functions... Done.
    Waiting for soundcard sndallodigione to populate. Done (1).
    Waiting for network......................................... Done (41).
    Starting Openssh server... Done.
    Starting Squeezelite and/or Shairport-sync...
    [ INFO ] Starting Squeezelite player: Squeezelite...
    Done.

  4. #4
    Senior Member Greg Erskine's Avatar
    Join Date
    Sep 2006
    Location
    Sydney, Australia
    Posts
    2,203
    My gut feeling is Network wait would only work if the NAS was also the DHCP sever, which if it is slow to boot is not a good idea.

    I think we would need extra code to ping the NAS and wait for it. How long does the NAS take to be available? Is there a delay between the NAS being up and having the drives visible to the network?

  5. #5
    Member
    Join Date
    Nov 2011
    Location
    UK
    Posts
    93
    How about just setting up a cron job to do mount -a every few minutes ? OK, it's a hack, but seems like it would work well enough.

  6. #6
    Senior Member
    Join Date
    Jan 2011
    Location
    Staffordshire. UK
    Posts
    4,254
    If the OP has a smartphone, what about a SSH shortcut to restart LMS ?

    ronnie

  7. #7
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    4,011
    Ive gone round and round on this......the biggest question is how long is too long to keep retrying.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  8. #8
    I have exactly the same problem with my Pi 3B+ setup and my ReadyNAS NV+ v2. Worse still, after a power outage, the ReadyNAS needs the power button pressed before it will startup, so the delay can be quite a while.

    This is so irkesome (mainly as my wife complains that "the Squeezebox is broken" - the height of her diagnosis - when it fails to restart successfully). I'm close to giving in and giving the Pi its own SSD for music storage as a workaround, but it feels like I shouldn't have to do this.

    Any solutions welcome!

  9. #9
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    4,011
    1. Run LMS on your NAS.
    2. Put a manual power button on your pi, so it doesnĺt start up either on a power outage.
    3. Put your NAS on a backup battery.
    4. Write a script hunt four your NAS and Mount the drive, and restart LMS.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

Posting Permissions

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