Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: Music Library not mounting after restart
#1
Recently I update moOde to the latest 8.2.2 release... I actually had to do several updates to get to 8.2.2

When I restart moOde, I get a MPD Error stating "failed to open" with "no such file or directory" when attempting to play something from the library.

What I have discovered is that after a restart/reboot, the (NAS) music library is failing to be remounted. This was confirmed by checking the available mounts in "/mnt/NAS". Also, the moode log shows "mount error(101): Network is unreachable".


If I go back to the Music Source settings under Music Library I can see the NAS mount error with the red cross against it. If I click Save, without making any changes to the music library settings, the NAS is remounted successfully and I can play my music again :-) 

The previous version of moOde (it would have been 3 revisions ago?) didn't have this problem. Nothing else has changed with my moOde or NAS configuration besides updating to the latest moOde release.

Any reason why the NAS mount is failing to be remounted after a reboot/restart?

Thanks for your help :-)
Reply
#2
The error you reported MPD Error stating "failed to open" with "no such file or directory" suggests some kind of corruption, possibly an incomplete update.

I'd start with a fresh image.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
Hi Tim,

As suggested I have reinstalled the latest moOde release using a fresh install.

However, the same problem is still occurring:

1. Setup and configure Music Source successfully.

2. Restart device.

3. Library thumbnails still present. However, if try to play a file I get MPD error stating "failed to open" with "no such file or directory".
Moode log has mount error(101): Network is unreachable
Music source not mounted at "/mnt/NAS"

4. If go back to configure Music Source there is a red cross against it. By clicking 'Save' (no need to change anything) the Music Source gets mounted again successfully with a green tick against it. Also the music source can be seen mounted at "/mnt/NAS".

Normally does the (NAS) mount persist between restarts or does moOde recreate the (NAS) mount on every restart?

Are there are any other logs to look at?
Reply
#4
Reboot then post the startup log

Code:
moodeutl -l
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#5
A possible cause of the mount error 101 on restart would be the system attempting the mount operation before the network connection was ready.

Regards,
Kent
Reply
#6
I'm now getting this same issue after the latest update.
The issue I was having with the previous release (thread https://moodeaudio.org/forum/showthread.php?tid=5122) has now gone though

The network was definitely up as I accessed it seconds before from the PC and heard the disk spin etc on the remote nas.

log:
moodeutl -l
20221108 193758 worker: --
20221108 193758 worker: -- Start moOde 8 series
20221108 193758 worker: --
20221108 193758 worker: Successfully daemonized
20221108 193800 worker: File check (OK)
20221108 193801 worker: Session vacuumed
20221108 193801 worker: Session loaded
20221108 193801 worker: Debug logging (OFF)
20221108 193801 worker: --
20221108 193801 worker: -- Audio debug
20221108 193801 worker: --
20221108 193801 worker: ALSA cards: (0:sndrpihifiberry | 1:empty | 2:empty | 3:empty
20221108 193801 worker: MPD config: (0:HiFiBerry DAC+ Pro | mixer:(Digital) | card:0)
20221108 193801 worker: ALSA mixer actual (Digital)
20221108 193801 worker: ALSA Digital volume set to (0%)
20221108 193801 worker: --
20221108 193801 worker: -- System
20221108 193801 worker: --
20221108 193802 worker: Host      (moode)
20221108 193802 worker: moOde     (8.2.2 2022-10-23)
20221108 193802 worker: RaspiOS   (11.2)
20221108 193802 worker: Kernel    (5.15.32-v7l+ #1537)
20221108 193802 worker: Platform  (Pi-4B 1.4 2GB)
20221108 193802 worker: ARM arch  (armv7l, 32-bit)
20221108 193802 worker: MPD ver   (0.23.5)
20221108 193802 worker: CPU gov   (ondemand)
20221108 193802 worker: USB boot  (enabled)
20221108 193802 worker: File sys  (expanded)
20221108 193802 worker: HDMI port (Off)
20221108 193803 worker: Sys LED0  (On)
20221108 193803 worker: Sys LED1  (On)
20221108 193803 worker: --
20221108 193803 worker: -- Network
20221108 193803 worker: --
20221108 193803 worker: eth0 adapter exists
20221108 193803 worker: eth0 check for address (No)
20221108 193803 worker: eth0 address not assigned
20221108 193803 worker: wlan0 adapter does not exist
20221108 193803 worker: apd0 router mode (Off)
20221108 193803 worker: No active network interface
20221108 193803 worker: --
20221108 193803 worker: -- Software update
20221108 193803 worker: --
20221108 193803 worker: Automatic check (Off)
20221108 193803 worker: --
20221108 193803 worker: -- Audio config
20221108 193803 worker: --
20221108 193803 worker: MPD conf updated
20221108 193803 worker: ALSA card number (0)
20221108 193803 worker: MPD audio output (HiFiBerry DAC+ Pro)
20221108 193803 worker: Audio formats (S16_LE, S24_LE, S32_LE)
20221108 193803 worker: ALSA mixer name (Digital)
20221108 193803 worker: MPD mixer type (hardware)
20221108 193803 worker: Hdwr volume controller exists
20221108 193803 worker: Max ALSA volume (100%)
20221108 193803 worker: ALSA output mode (Default: plughw)
20221108 193803 worker: ALSA loopback (Off)
20221108 193803 worker: Reset renderer active flags
20221108 193803 worker: CamillaDSP (off)
20221108 193803 worker: --
20221108 193803 worker: -- File sharing
20221108 193803 worker: --
20221108 193803 worker: SMB file sharing (Off)
20221108 193803 worker: NFS file sharing (Off)
20221108 193803 worker: --
20221108 193803 worker: -- MPD startup
20221108 193803 worker: --
20221108 193804 worker: MPD started
20221108 193804 worker: MPD accepting connections
20221108 193804 worker: MPD output 1 ALSA Default (On)
20221108 193804 worker: MPD output 2 ALSA Bluetooth (Off)
20221108 193804 worker: MPD output 3 HTTP Server (Off)
20221108 193804 worker: MPD crossfade (off)
20221108 193804 worker: MPD ignore CUE files (yes)
20221108 193804 worker: --
20221108 193804 worker: -- Music sources
20221108 193804 worker: --
20221108 193804 worker: USB sources
20221108 193804 worker: No drives found
20221108 193804 worker: NAS sources
20221108 193804 worker: Music
20221108 193804 worker: Try (mount -t nfs -o ro,nolock "192.168.1.101:/mnt/b289c1d9-3a01-4047-bbe0-7a76685cf13e/Music" "/mnt/NAS/Music")
20221108 193804 worker: Err (mount.nfs: Network is unreachable)
20221108 193804 worker: Mount all submitted
20221108 193804 worker: --
20221108 193804 worker: -- Feature availability
20221108 193804 worker: --
20221108 193804 worker: Source select (available)
20221108 193804 worker: Source select (source: MPD)
20221108 193804 worker: Source select (output: HiFiBerry DAC+ Pro)
20221108 193804 worker: Bluetooth (available)
20221108 193804 worker: AirPlay renderer (available)
20221108 193804 worker: Spotify renderer (available)
20221108 193804 worker: Squeezelite (available)
20221108 193804 worker: RoonBridge renderer (not installed)
20221108 193804 worker: Multiroom sender (available)
20221108 193804 worker: Multiroom receiver (available)
20221108 193804 worker: UPnP renderer (available)
20221108 193804 worker: DLNA server (available)
20221108 193804 worker: GPIO button handler (available)
20221108 193804 worker: Stream recorder (n/a)
20221108 193804 worker: --
20221108 193804 worker: -- Other
20221108 193804 worker: --
20221108 193804 worker: USB volume knob (Off)
20221108 193804 worker: USB auto-mounter (udisks-glue)
20221108 193804 worker: Saved MPD vol level (0)
20221108 193804 worker: Preamp volume level (0)
20221108 193804 worker: MPD volume level (100) restored
20221108 193804 worker: ALSA Digital volume (100%)
20221108 193804 worker: Auto-play (Off)
20221108 193804 worker: CoverView toggle (-off)
20221108 193804 worker: On-screen keyboard (Off)
20221108 193804 worker: Library scope (all)
20221108 193804 worker: Maintenance interval (360 minutes)
20221108 193804 worker: Screen saver activation (Never)
20221108 193804 worker: Session permissions (OK)
20221108 193804 worker: Mount monitor (Off)
20221108 193805 worker: Watchdog started
20221108 193805 worker: Ready
Reply
#7
The log entries below indicates no IP address was assigned.

Code:
20221108 193803 worker: eth0 adapter exists
20221108 193803 worker: eth0 check for address (No)[/size]
20221108 193803 worker: eth0 address not assigned[/size]
20221108 193803 worker: wlan0 adapter does not exist[/size]
20221108 193803 worker: apd0 router mode (Off)[/size]
20221108 193803 worker: No active network interface
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#8
(11-08-2022, 08:02 PM)Tim Curtis Wrote: The log entries below indicates no IP address was assigned.

Code:
20221108 193803 worker: eth0 adapter exists
20221108 193803 worker: eth0 check for address (No)[/size]
20221108 193803 worker: eth0 address not assigned[/size]
20221108 193803 worker: wlan0 adapter does not exist[/size]
20221108 193803 worker: apd0 router mode (Off)[/size]
20221108 193803 worker: No active network interface

Yeah, suggesting what TheOldPresbyope typed above to be likely.
I was incorrectly thinking "the system attempting the mount operation before the network connection was ready" was referring to the NAS.
This is still a new issue though with the latest release.
Reply
#9
The log says it all but it leaves me wondering

1) how you captured the log if the Pi isn’t connected to the LAN.

2) why an RPi4B has no wlan interface…did you fiddle with Config.txt?

Regards,
Kent
Reply
#10
(11-08-2022, 10:24 PM)TheOldPresbyope Wrote: The log says it all but it leaves me wondering

1) how you captured the log if the Pi isn’t connected to the LAN.

2) why an RPi4B has no wlan interface…did you fiddle with Config.txt?

Regards,
Kent

No, nothing has been changed by command line and nothing in config has been changed with the setup scripts since ages ago either, only change is updates, I haven't added any music for a wee bit either.
Reply


Forum Jump: