Moode Forum
[SOLVED] Problem mounting Synology NAS - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7)
+--- Thread: [SOLVED] Problem mounting Synology NAS (/showthread.php?tid=5242)



Problem mounting Synology NAS - Roberto_A - 12-13-2022

Sorry for my bad English!

I have a problem with Moode mounting my Synology NAS (Samba mode). My Moode is unable to auto-mount the library location of the NAS but I need:
1) manually create the directory at the location /mnt/NAS (Synology directory) and then
2) mount the NAS (using mount -t cifs IP_ADDRESS etc.).

If I then click on the RE-MOUNT button, the directory just created is deleted and there is no other way to remount the NAS other than manually acting as a terminal, rebuilding the directory and remounting the position.
Same problem if I turn off Moode.
Right now I'm using the 64-bit version.
Thanks for any help you can give me.

Roberto


RE: Problem mounting Synology NAS - Tim Curtis - 12-13-2022

To troubleshoot:

1. Open System Config and turn on Debug logging.
2. Reboot
3. Post the startup log using the command below

Code:
moodeutl -l



RE: Problem mounting Synology NAS - Roberto_A - 12-13-2022

(12-13-2022, 12:57 PM)Tim Curtis Wrote: To troubleshoot:

1. Open System Config and turn on Debug logging.
2. Reboot
3. Post the startup log using the command below

Code:
moodeutl -l

Thank You Tim.

This is the log:

20221211 065832 worker: --
20221211 065832 worker: -- Start moOde 8 series
20221211 065832 worker: --
20221211 065832 worker: Successfully daemonized
20221211 065836 worker: File check (OK)
20221211 065837 worker: Session vacuumed
20221211 065837 worker: Session loaded
20221211 065837 worker: Debug logging (ON)
20221211 065837 worker: --
20221211 065837 worker: -- Audio debug
20221211 065837 worker: --
20221211 065837 worker: ALSA cards: (0:BossDAC | 1:empty | 2:empty | 3:empty
20221211 065837 worker: MPD config: (0:Allo Boss DAC | mixerSadDigital) | card:0)
20221211 065837 worker: ALSA mixer actual (Digital)
20221211 065837 worker: ALSA Digital volume set to (0%)
20221211 065837 worker: --
20221211 065837 worker: -- System
20221211 065837 worker: --
20221211 065840 worker: Host      (moode)
20221211 065840 worker: moOde     (8.2.2 2022-10-23)
20221211 065840 worker: RaspiOS   (11.5)
20221211 065840 worker: Kernel    (5.15.61-v8+ #1579)
20221211 065840 worker: Platform  (Pi-3B+ 1.3 1GB)
20221211 065840 worker: ARM arch  (aarch64, 64-bit)
20221211 065840 worker: MPD ver   (0.23.5)
20221211 065840 worker: CPU gov   (ondemand)
20221211 065840 worker: USB boot  (enabled)
20221211 065840 worker: File sys  (expanded)
20221211 065840 worker: HDMI port (On)
20221211 065840 worker: Sys LED0  (On)
20221211 065840 worker: Sys LED1  (On)
20221211 065840 worker: --
20221211 065840 worker: -- Network
20221211 065840 worker: --
20221211 065840 worker: eth0 adapter exists
20221211 065840 worker: eth0 check for address (No)
20221211 065840 worker: eth0 address not assigned
20221211 065840 worker: wlan0 adapter exists
20221211 065840 worker: wlan0 country (IT)
20221211 065840 worker: wlan0 trying saved SSID(s)
20221211 065840 worker: wlan0 check 0 for IP address
20221211 065842 worker: wlan0 connected SSID is (HOME_FAMILY_24)
20221211 065842 worker: IP addr (192.168.1.90)
20221211 065842 worker: Netmask (255.255.255.0)
20221211 065842 worker: Gateway (192.168.1.254)
20221211 065843 worker: Pri DNS (127.0.0.1)
20221211 065843 worker: Domain  ()
20221211 065843 worker: wlan0 power save disabled
20221211 065843 worker: apd0 router mode (Off)
20221211 065843 worker: --
20221211 065843 worker: -- Software update
20221211 065843 worker: --
20221211 065843 worker: Automatic check (On)
20221211 065843 worker: Checking for available update...
20221211 065843 worker: Release , None is available
20221211 065843 worker: --
20221211 065843 worker: -- Audio config
20221211 065843 worker: --
20221211 065843 worker: MPD conf updated
20221211 065843 worker: ALSA card number (0)
20221211 065843 worker: MPD audio output (Allo Boss DAC)
20221211 065843 worker: Audio formats (S16_LE, S24_LE, S32_LE)
20221211 065843 worker: ALSA mixer name (Digital)
20221211 065843 worker: MPD mixer type (hardware)
20221211 065843 worker: Hdwr volume controller exists
20221211 065843 worker: Max ALSA volume (100%)
20221211 065843 worker: ALSA output mode (Direct: hw)
20221211 065843 worker: ALSA loopback (Off)
20221211 065843 worker: Reset renderer active flags
20221211 065844 worker: CamillaDSP (off)
20221211 065844 worker: --
20221211 065844 worker: -- File sharing
20221211 065844 worker: --
20221211 065844 worker: SMB file sharing (Off)
20221211 065844 worker: NFS file sharing (Off)
20221211 065844 worker: --
20221211 065844 worker: -- MPD startup
20221211 065844 worker: --
20221211 065845 worker: MPD started
20221211 065845 worker: MPD accepting connections
20221211 065845 worker: MPD output 1 ALSA Default (On)
20221211 065845 worker: MPD output 2 ALSA Bluetooth (Off)
20221211 065845 worker: MPD output 3 HTTP Server (Off)
20221211 065845 worker: MPD crossfade (off)
20221211 065845 worker: MPD ignore CUE files (yes)
20221211 065845 worker: --
20221211 065845 worker: -- Music sources
20221211 065845 worker: --
20221211 065845 worker: USB sources
20221211 065845 worker: No drives found
20221211 065845 worker: NAS sources
20221211 065845 worker: Synology
20221211 065845 worker: Try (mount -t cifs "//MyNAS/music/01 - Lossless" -o username="Moode",password="xxxxxxxx",rsize=61440,wsize=65536,iocharset=utf8,vers=1.0,ro,noserverino,dir_mode=0777,file_mode=0777 "/mnt/NAS/Synology")
20221211 065845 worker: Err (mount error: could not resolve address for MyNAS: Unknown error)
20221211 065845 worker: Mount all submitted
20221211 065845 worker: --
20221211 065845 worker: -- Feature availability
20221211 065845 worker: --
20221211 065845 worker: Source select (available)
20221211 065845 worker: Source select (source: MPD)
20221211 065845 worker: Source select (output: Allo Boss DAC)
20221211 065845 worker: Bluetooth (available)
20221211 065845 worker: AirPlay renderer (available)
20221211 065845 worker: Spotify renderer (available)
20221211 065845 worker: Squeezelite (available)
20221211 065845 worker: RoonBridge renderer (not installed)
20221211 065845 worker: Multiroom sender (available)
20221211 065845 worker: Multiroom receiver (available)
20221211 065845 worker: UPnP renderer (available)
20221211 065845 worker: DLNA server (available)
20221211 065845 worker: GPIO button handler (available)
20221211 065845 worker: Stream recorder (n/a)
20221211 065845 worker: --
20221211 065845 worker: -- Other
20221211 065845 worker: --
20221211 065845 worker: USB volume knob (Off)
20221211 065845 worker: USB auto-mounter (udisks-glue)
20221211 065845 worker: Saved MPD vol level (0)
20221211 065845 worker: Preamp volume level (0)
20221211 065845 worker: MPD volume level (35) restored
20221211 065845 worker: ALSA Digital volume (74%)
20221211 065845 worker: Auto-play (Off)
20221211 065845 worker: CoverView toggle (-on)
20221211 065845 worker: On-screen keyboard (Off)
20221211 065845 worker: Library scope (all)
20221211 065845 worker: Maintenance interval (360 minutes)
20221211 065845 worker: Screen saver activation (Never)
20221211 065845 worker: Session permissions (OK)
20221211 065845 worker: Mount monitor started
20221211 065846 worker: Watchdog started
20221211 065846 worker: Ready
20221211 065926 waitWorker(): Start (lib-config, w_active=0)
20221211 065926 waitWorker(): End   (lib-config, w_active=0)


I also try with IP address instead of MyNAS name.
I tried to edit the fstab file without success, due to missing directory (I think).

Thank you for all

Roberto


RE: Problem mounting Synology NAS - TheOldPresbyope - 12-13-2022

@Roberto_A

Hi, Roberto.

[First, if you start hand-editing system files then we have no way of knowing what state your player is in.]

The symptom you describe suggests your LAN doesn't have a local DNS resolver on it.

Using the built-in SSH Terminal or SSH'ing from another computer, see how the Synology NAS can be "found".

Code:
ping MyNAS
ping MyNAS.local
ping <IP adddress MyNAS>


Here, for example, is the output when I search for my virtual Synology NAS with hostname DS3615xs

Code:
pi@m823p2b:~ $ ping -c1 DS3615xs
ping: DS3615xs: Name or service not known
pi@m823p2b:~ $ ping -c1 DS3615xs.local
PING DS3615xs.local (10.0.0.223) 56(84) bytes of data.
64 bytes from DS3615xs.local (10.0.0.223): icmp_seq=1 ttl=64 time=9.00 ms

--- DS3615xs.local ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 9.001/9.001/9.001/0.000 ms
pi@m823p2b:~ $ ping -c1 10.0.0.56
PING 10.0.0.56 (10.0.0.56) 56(84) bytes of data.
64 bytes from 10.0.0.56: icmp_seq=1 ttl=128 time=10.5 ms

--- 10.0.0.56 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 10.491/10.491/10.491/0.000 ms

The raw hostname doesn't work because there's no local DNS resolver on my LAN; only the ISP-provided DNS and mDNS.

If I use moOde's SCAN function, it returns all the shares on the Synology NAS including "DS3615xs/Music". Unfortunately, moOde finds advertised shares via mDNS but doesn't return them with a fully qualified mDNS name. [I keep meaning to make this an issue on the moOde github repo.]

This means, in my case, that I have to enter the Music source path manually with either "DS3615xs/Music" "DS3615xs.local/Music"or "10.0.0.56/Music". This setting works fine and persists over reboots.

An alternative with current moOde would be to edit /etc/hosts to add "DS3615xs 10.0.0.56" but this is a hack unsuited for an appliance player.

Regards,
Kent


RE: Problem mounting Synology NAS - Roberto_A - 12-13-2022

Thanks so much Kent

I'll keep your advice in mind but the changes I made to the FSTAB file were immediately undone.
Ping MyNAS returns "Name or service not known" as expected while pinging the IP address (192.168.1.15) transmits the packet.
In recent days I had already tried with the IP address directly in the "Music Source" section without success. I have now used the IP address and restarted Moode and the application seems to work. Then I check its operation for a few days.
If so, I apologize for the pointlessness of reporting.


RE: Problem mounting Synology NAS - the_bertrum - 12-13-2022

On my network, I can only ever get to my Synology NAS with <NAS_host>.local, try MyNAS.local if you don't like to use the IP. That works for me every time from the moOde UI.


RE: Problem mounting Synology NAS - Roberto_A - 12-13-2022

Thanks but I try with MyNAS.local and it doesn't work.
Now, with the IP address, the NAS is recognized correctly.

Thank you all