Moode Forum
[SOLVED] Unable to connect to NAS Server - Printable Version

+- Moode Forum (http://moodeaudio.org/forum)
+-- Forum: moOde audio player (http://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: Support (http://moodeaudio.org/forum/forumdisplay.php?fid=7)
+--- Thread: [SOLVED] Unable to connect to NAS Server (/showthread.php?tid=1468)



Unable to connect to NAS Server - drfous - 06-15-2019

Running Moode 5.3.1 from 6/12.
Freenas server contains my library.
DAC = Allo Boss 1.2

Prior to version above I was running an earlier version and I was connected to my library on a Freenas.  I tried to do an in app upgrade to the latest version of Moode.  The upgrade seemed to fail (I waited a long time and it never came back).  So I did a clean install of the latest.

Everything seems to be working except I can't reconnect to the NAS library.

It seems to be trying to change the path to one that contains my "Friendly Name" NasR2.

Any thoughts?

Thx!


0190614 182321 sourceMount(): mountstr=(mount -t cifs "//192.168.18.215/NasRaid1" -o username="",password="",rsize=61440,wsize=65536,iocharset=utf8,vers=1.0 "/mnt/NAS/NasR2")
20190614 182321 sourceMount(): sysoutput=(Couldn't chdir to /mnt/NAS/NasR2: No such file or directory)
20190614 182321 sourceMount(): Mount error: (Couldn't chdir to /mnt/NAS/NasR2: No such file or directory)



RE: Unable to connect to NAS Server - Tim Curtis - 06-15-2019

Open System Config anf turn on Debug logging, then reboot.

Run the command below and look for the full mount string in the log. Post the string and I'll have a look.

Code:
moodeutl -l

The turn Debug logging off and reboot.


RE: Unable to connect to NAS Server - drfous - 06-15-2019

Code:
20190615 125242 worker: (/usr/local/bin/shairport-sync -vv -a "MoodeLR Airplay" -- -d hw:0 > /var/log/shairport-sync.log 2>&1 &)                    
20190615 125242 worker: Airplay receiver started                                                                                                    
20190615 125242 worker: (librespot --name "MoodeLR Spotify" --bitrate 320 --initial-volume 60 --enable-volume-normalisation --normalisation-pregain 0
--cache /var/local/www/spotify_cache --disable-audio-cache --backend alsa --device "plughw:0" --onevent /var/local/www/commandw/spotevent.sh > /dev/
null 2>&1 &)                                                                                                                                        
20190615 125243 worker: Spotify receiver started                                                                                                    
20190615 125243 worker: Shellinabox SSH started                                                                                                      
20190615 125243 worker: - Music sources                                                                                                              
20190615 125243 worker: USB sources (none attached)                                                                                                  
20190615 125243 sourceMount(): mountstr=(mount -t cifs "//192.168.18.215/NasRaid1" -o username="xxx",password="xxxx",rsize=61440,wsize=65536,ioc
harset=utf8,vers=1.0 "/mnt/NAS/NasR2")                                                                                                              
20190615 125243 sourceMount(): sysoutput=(Couldn't chdir to /mnt/NAS/NasR2: No such file or directory)                                              
20190615 125243 sourceMount(): Mount error: (Couldn't chdir to /mnt/NAS/NasR2: No such file or directory)                                            
20190615 125243 worker: NAS sources (mountall initiated)                                                                                            
20190615 125243 worker: - Miscellaneous                                                                                                              
20190615 125243 worker: Saved MPD vol level (0)                                                                                                      
20190615 125243 worker: Preamp volume level (0)                                                                                                      
20190615 125243 worker: MPD volume level (55) restored                                                                                              
20190615 125243 worker: ALSA volume level (100%)                                                                                                    
20190615 125243 worker: Auto-play is off                                                                                                            
20190615 125243 worker: Maintenance interval (21600)                                                                                                
20190615 125243 worker: Screen saver activation (Never)                                                                                              
20190615 125243 worker: Watchdog started                                                                                                            
20190615 125243 worker: Ready                          
Thanks for looking!


RE: Unable to connect to NAS Server - Tim Curtis - 06-15-2019

Looks like some breakage

20190615 125243 sourceMount(): sysoutput=(Couldn't chdir to /mnt/NAS/NasR2: No such file or directory)

Is there a NAS subdirectory under /mnt ?


RE: Unable to connect to NAS Server - drfous - 06-16-2019

/mnt/ZFS/windowset


RE: Unable to connect to NAS Server - Tim Curtis - 06-16-2019

Post steps that can be used to reproduce the directory.

/mnt/ZFS/windowset

-Tim


RE: Unable to connect to NAS Server - drfous - 06-16-2019

Is this what you need?

And thanks for taking the time to help with this!

Code:
20190615 200137 worker: Job sourcecfg                                                                                                                
20190615 200137 sourceMount(): mountstr=(mount -t cifs "//192.168.18.215/mnt/ZFS/windowset" -o username="xxx",password="xxxx",rsize=61440,wsize=
65536,iocharset=utf8,vers=1.0,ro,dir_mode=0777,file_mode=0777 "/mnt/NAS/NasRaid1")                                                                  
20190615 200137 sourceMount(): sysoutput=(Couldn't chdir to /mnt/NAS/NasRaid1: No such file or directory)                                            
20190615 200137 sourceMount(): Mount error: (Couldn't chdir to /mnt/NAS/NasRaid1: No such file or directory)                                        
20190615 200137 waitWorker(): Wait  (3)                                                                                                              
20190615 200137 waitWorker(): End   (lib-config, w_active=0)                                                



RE: Unable to connect to NAS Server - drfous - 06-16-2019

It dawned on me that I have a second RPi/Allo Boss running in another room.  Still on 4.4.

It's connected NFS and running

IP/mnt/ZFS/windowset.

Now I get this error when the unit with the new version is set to exactly the same library setup as the working unit with version 4.4.

To me it looks like it's overwriting the mount point with NAS followed by my description field.

Code:
20190615 212230 worker: Airplay receiver started                                                                                                    
20190615 212230 worker: Spotify receiver started                                                                                                    
20190615 212230 worker: Shellinabox SSH started                                                                                                      
20190615 212230 worker: - Music sources                                                                                                              
20190615 212230 worker: USB sources (none attached)                                                                                                  
20190615 212230 sourceMount(): Mount error: (mount.nfs: mount point /mnt/NAS/Music does not exist)                                                  
20190615 212230 worker: NAS sources (mountall initiated)                                                                                            
20190615 212230 worker: - Miscellaneous              



RE: Unable to connect to NAS Server - Tim Curtis - 06-16-2019

On a fresh moOde 5.3.1 image the subdirectories under /mnt are as follows:

pi@moode:~ $ ls -l /mnt
total 8
drwxr-xr-x 2 root root 4096 May  9 19:30 NAS
drwxr-xr-x 3 root root 4096 May  9 19:30 SDCARD
pi@moode:~ $

There is no code in moOde that deletes these subdirectories so if either of them are missing it would indicate the image has somehow become corrupted.

Try a fresh image and verify the two subdirectories under /mnt exist, then fill out the NAS Config screen and see if your mount is successful.


RE: Unable to connect to NAS Server - drfous - 06-16-2019

Did the fresh install and all is well.

Sorry this was such a simple fix. With everything else working, I assumed the image was good.

Thx!!