Thank you for your donation!


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


Pi 4 NAS connection failures
#1
Hello everyone, Sorry if my tone is grumpy in this post, but I have spent parts of 4 days trying to connect my HiFiBerry DAC2 Pro. First with volumio, now with moode. 

I have a brand new Pi 4, brand new sandisk 32 gig sd card, and HiFiBerry DAC2 Pro (yes also new).

I am trying to connect a Ubuntu ver 20.04lts server to the pi/DAC via ethernet cable. I have verified that the music files exist in my servers directory. One question I have is since I need to enter username and password to access my server w/putty, does that need to be included to mount this freaking thing.   Please help.
Code:
20210507 103721 waitWorker(): Wait  (2)
20210507 103721 waitWorker(): End   (lib-config, w_active=0)
20210507 104539 waitWorker(): Start (lib-config, w_active=0)
20210507 104539 waitWorker(): End   (lib-config, w_active=0)
20210507 104637 waitWorker(): Start (lib-config, w_active=0)
20210507 104637 waitWorker(): End   (lib-config, w_active=0)
20210507 104641 waitWorker(): Start (lib-config, w_active=1)
20210507 104641 worker: Job sourcecfg
20210507 104852 sourceMount(): Mount error: (mount.nfs: Connection timed out)
20210507 104852 sourceMount(): Command=(mount -t nfs -o ro,nolock,vers=3.1 "192.168.0.23:/home/eetechtom/TJAudio" "/mnt/NAS/audiopi")
20210507 104852 waitWorker(): Wait  (1)
20210507 104852 waitWorker(): End   (lib-config, w_active=0)
20210507 105127 waitWorker(): Start (lib-config, w_active=0)
20210507 105127 waitWorker(): End   (lib-config, w_active=0)


I'm thinking the advanced mount settings could be wrong, but there are so many different possible settings there I don't know where to go next.



A secondary issue is I have loaded music into the sd card audiotest folder, but can't hear it on my system via the RCA jacks. Moode shows it's playing, but no output is heard.
Reply
#2
First you should reboot then post the Moode startup log so we can see details of your configuration.

Code:
moodeutl -l
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
(05-07-2021, 03:36 PM)Tim Curtis Wrote: First you should reboot then post the Moode startup log so we can see details of your configuration.

Code:
moodeutl -l

I'll try that. Good news is I can play music that is installed on the SD card now.
Reply
#4
Code:
20210507 114452 worker: -- Start
20210507 114453 worker: Successfully daemonized
20210507 114453 worker: Integrity check (passed)
20210507 114453 worker: File check (OK)
20210507 114454 worker: Session vacuumed
20210507 114454 worker: Session loaded
20210507 114454 worker: Debug logging (ON)
20210507 114454 worker: -- Audio debug
20210507 114454 worker: ALSA cards: (0:sndrpihifiberry | 1:empty | 2:empty | 3:empty
20210507 114454 worker: MPD config: (0:HiFiBerry DAC+ Pro | mixer:(Digital) | card:0)
20210507 114454 worker: ALSA mixer actual (Digital)
20210507 114454 worker: ALSA Digital volume set to (0%)
20210507 114454 worker: -- System
20210507 114455 worker: Host     (TJmoode)
20210507 114455 worker: moOde    (7.2.0 2021-04-24)
20210507 114455 worker: RaspiOS  (10.6)
20210507 114455 worker: Kernel   (5.4.77-v7l+ #1371)
20210507 114455 worker: Platform (Pi-4B 1.4 2GB)
20210507 114455 worker: ARM arch (armv7l, 32-bit kernel)
20210507 114455 worker: MPD ver  (0.22.6_p0x3)
20210507 114455 worker: CPU gov  (ondemand)
20210507 114455 worker: USB boot not available
20210507 114455 worker: File system expanded
20210507 114455 worker: HDMI port off
20210507 114455 worker: -- Network
20210507 114455 worker: eth0 exists
20210507 114455 worker: IP addr (192.168.0.17)
20210507 114455 worker: Netmask (255.255.255.0)
20210507 114455 worker: Gateway (192.168.0.1)
20210507 114455 worker: Pri DNS (72.240.13.5)
20210507 114455 worker: Domain  (72.240.13.6)
20210507 114455 worker: wlan0 does not exist
20210507 114455 worker: -- Audio config
20210507 114456 worker: MPD conf updated
20210507 114456 worker: ALSA card number (0)
20210507 114456 worker: MPD audio output (HiFiBerry DAC+ Pro)
20210507 114456 worker: Audio formats (S16_LE, S24_LE, S32_LE)
20210507 114456 worker: ALSA mixer name (Digital)
20210507 114456 worker: MPD volume control (software)
20210507 114456 worker: Hdwr volume controller exists
20210507 114456 worker: Max ALSA volume (100%)
20210507 114456 worker: ALSA loopback (Off)
20210507 114456 worker: Reset renderer active flags
20210507 114456 worker: CamillaDSP (off)
20210507 114456 worker: -- MPD startup
20210507 114456 worker: MPD started
20210507 114456 openMpdSocket(): error: connection failed (1) 111, Connection refused
20210507 114457 worker: MPD accepting connections
20210507 114457 worker: MPD output 1 ALSA Default (on)
20210507 114457 worker: MPD output 2 ALSA Bluetooth (off)
20210507 114457 worker: MPD output 3 HTTP Server (off)
20210507 114457 worker: MPD crossfade (off)
20210507 114457 worker: MPD ignore CUE files (yes)
20210507 114457 worker: -- Feature availability
20210507 114457 worker: Source select (available)
20210507 114457 worker: Source select (source: MPD)
20210507 114457 worker: Source select (output: HiFiBerry DAC+ Pro)
20210507 114457 worker: Bluetooth (available)
20210507 114457 worker: Airplay renderer (available)
20210507 114457 worker: Spotify renderer (available)
20210507 114457 worker: Squeezelite (available)
20210507 114457 worker: RoonBridge renderer (not installed)
20210507 114457 worker: UPnP renderer (available)
20210507 114457 worker: DLNA server (available)
20210507 114457 worker: UPnP browser (available)
20210507 114457 worker: GPIO button handler (available)
20210507 114457 worker: Stream recorder (n/a)
20210507 114457 worker: -- Music sources
20210507 114457 worker: USB sources (none attached)
20210507 114708 sourceMount(): Mount error: (mount.nfs: Connection timed out)
20210507 114708 sourceMount(): Command=(mount -t nfs -o ro,nolock,vers=3.1 "192.168.0.23:/home/eetechtom/TJAudio" "/mnt/NAS/audiopi")
20210507 114708 worker: NAS and UPnP sources (mountall initiated)
20210507 114708 worker: -- Other
20210507 114708 worker: USB volume knob (Off)
20210507 114708 worker: Shellinabox SSH started
20210507 114708 worker: USB auto-mounter (udisks-glue)
20210507 114708 worker: LED0 (On)
20210507 114708 worker: LED1 (On)
20210507 114708 worker: Saved MPD vol level (0)
20210507 114708 worker: Preamp volume level (0)
20210507 114708 worker: MPD volume level (28) restored
20210507 114708 worker: ALSA Digital volume (100%)
20210507 114708 worker: Auto-play (Off)
20210507 114708 worker: Maintenance interval (3 hours)
20210507 114708 worker: Screen saver activation (Never)
20210507 114708 worker: Session permissions (OK)
20210507 114708 worker: Watchdog started
20210507 114708 worker: Ready
20210507 114709 waitWorker(): Start (snd-config, w_active=0)
20210507 114709 waitWorker(): End   (snd-config, w_active=0)
20210507 114718 waitWorker(): Start (snd-config, w_active=0)
20210507 114718 waitWorker(): End   (snd-config, w_active=0)
20210507 114726 waitWorker(): Start (mpd-config, w_active=0)
20210507 114726 waitWorker(): End   (mpd-config, w_active=0)
20210507 114813 waitWorker(): Start (snd-config, w_active=0)
20210507 114813 waitWorker(): End   (snd-config, w_active=0)
20210507 115154 enhanceMetadata(): error: currentsong file is NULL
20210507 115155 enhanceMetadata(): error: currentsong file is NULL
20210507 115158 enhanceMetadata(): error: currentsong file is NULL
20210507 115201 enhanceMetadata(): error: currentsong file is NULL
20210507 115204 enhanceMetadata(): error: currentsong file is NULL
20210507 115207 enhanceMetadata(): error: currentsong file is NULL
20210507 115209 enhanceMetadata(): error: currentsong file is NULL
20210507 115210 enhanceMetadata(): error: currentsong file is NULL
20210507 115210 enhanceMetadata(): error: currentsong file is NULL
20210507 115213 enhanceMetadata(): error: currentsong file is NULL
20210507 115216 enhanceMetadata(): error: currentsong file is NULL
20210507 115219 enhanceMetadata(): error: currentsong file is NULL
20210507 115222 enhanceMetadata(): error: currentsong file is NULL
20210507 115225 enhanceMetadata(): error: currentsong file is NULL
20210507 115228 enhanceMetadata(): error: currentsong file is NULL
20210507 115231 enhanceMetadata(): error: currentsong file is NULL
20210507 115234 enhanceMetadata(): error: currentsong file is NULL
20210507 115237 enhanceMetadata(): error: currentsong file is NULL
20210507 115240 enhanceMetadata(): error: currentsong file is NULL
20210507 115243 enhanceMetadata(): error: currentsong file is NULL
20210507 115246 enhanceMetadata(): error: currentsong file is NULL
20210507 115249 enhanceMetadata(): error: currentsong file is NULL
20210507 115252 enhanceMetadata(): error: currentsong file is NULL
20210507 115255 enhanceMetadata(): error: currentsong file is NULL
20210507 115258 enhanceMetadata(): error: currentsong file is NULL
20210507 115301 enhanceMetadata(): error: currentsong file is NULL
20210507 115304 enhanceMetadata(): error: currentsong file is NULL
20210507 115307 enhanceMetadata(): error: currentsong file is NULL
20210507 115310 enhanceMetadata(): error: currentsong file is NULL
20210507 115313 enhanceMetadata(): error: currentsong file is NULL
20210507 115316 enhanceMetadata(): error: currentsong file is NULL
20210507 115319 enhanceMetadata(): error: currentsong file is NULL
20210507 115322 enhanceMetadata(): error: currentsong file is NULL
20210507 115325 enhanceMetadata(): error: currentsong file is NULL
20210507 115329 enhanceMetadata(): error: currentsong file is NULL
20210507 115332 enhanceMetadata(): error: currentsong file is NULL
20210507 115335 enhanceMetadata(): error: currentsong file is NULL
20210507 115338 enhanceMetadata(): error: currentsong file is NULL
20210507 115338 enhanceMetadata(): error: currentsong file is NULL
20210507 115341 enhanceMetadata(): error: currentsong file is NULL
20210507 115344 enhanceMetadata(): error: currentsong file is NULL
20210507 115347 enhanceMetadata(): error: currentsong file is NULL
20210507 115350 enhanceMetadata(): error: currentsong file is NULL
20210507 115353 enhanceMetadata(): error: currentsong file is NULL
20210507 115356 enhanceMetadata(): error: currentsong file is NULL
20210507 115359 enhanceMetadata(): error: currentsong file is NULL
20210507 115402 enhanceMetadata(): error: currentsong file is NULL
20210507 115405 enhanceMetadata(): error: currentsong file is NULL
20210507 115408 enhanceMetadata(): error: currentsong file is NULL
20210507 115411 enhanceMetadata(): error: currentsong file is NULL
20210507 115414 enhanceMetadata(): error: currentsong file is NULL
20210507 115417 enhanceMetadata(): error: currentsong file is NULL
20210507 115420 enhanceMetadata(): error: currentsong file is NULL
20210507 115423 enhanceMetadata(): error: currentsong file is NULL
20210507 115426 enhanceMetadata(): error: currentsong file is NULL
20210507 115429 enhanceMetadata(): error: currentsong file is NULL
20210507 115432 enhanceMetadata(): error: currentsong file is NULL
20210507 115435 enhanceMetadata(): error: currentsong file is NULL
20210507 115438 enhanceMetadata(): error: currentsong file is NULL
20210507 115441 enhanceMetadata(): error: currentsong file is NULL
20210507 115444 enhanceMetadata(): error: currentsong file is NULL
20210507 115447 enhanceMetadata(): error: currentsong file is NULL
20210507 115450 enhanceMetadata(): error: currentsong file is NULL
20210507 115453 enhanceMetadata(): error: currentsong file is NULL
20210507 115454 enhanceMetadata(): error: currentsong file is NULL
20210507 115456 enhanceMetadata(): error: currentsong file is NULL
20210507 115459 enhanceMetadata(): error: currentsong file is NULL
20210507 115502 enhanceMetadata(): error: currentsong file is NULL
20210507 115505 enhanceMetadata(): error: currentsong file is NULL
20210507 115508 enhanceMetadata(): error: currentsong file is NULL
20210507 115511 enhanceMetadata(): error: currentsong file is NULL
20210507 115514 enhanceMetadata(): error: currentsong file is NULL
20210507 115517 enhanceMetadata(): error: currentsong file is NULL
20210507 115520 enhanceMetadata(): error: currentsong file is NULL
20210507 115524 enhanceMetadata(): error: currentsong file is NULL
20210507 115527 enhanceMetadata(): error: currentsong file is NULL
20210507 115530 enhanceMetadata(): error: currentsong file is NULL
20210507 115533 enhanceMetadata(): error: currentsong file is NULL
20210507 115536 enhanceMetadata(): error: currentsong file is NULL
20210507 115539 enhanceMetadata(): error: currentsong file is NULL
20210507 115542 enhanceMetadata(): error: currentsong file is NULL
20210507 115545 enhanceMetadata(): error: currentsong file is NULL
20210507 115548 enhanceMetadata(): error: currentsong file is NULL
20210507 115551 enhanceMetadata(): error: currentsong file is NULL
20210507 115554 enhanceMetadata(): error: currentsong file is NULL
20210507 115557 enhanceMetadata(): error: currentsong file is NULL
20210507 115600 enhanceMetadata(): error: currentsong file is NULL
20210507 115603 enhanceMetadata(): error: currentsong file is NULL
20210507 115606 enhanceMetadata(): error: currentsong file is NULL
20210507 115609 enhanceMetadata(): error: currentsong file is NULL
20210507 115612 enhanceMetadata(): error: currentsong file is NULL
20210507 115615 enhanceMetadata(): error: currentsong file is NULL
20210507 115618 enhanceMetadata(): error: currentsong file is NULL
20210507 115621 enhanceMetadata(): error: currentsong file is NULL
20210507 115624 enhanceMetadata(): error: currentsong file is NULL
20210507 115627 enhanceMetadata(): error: currentsong file is NULL
20210507 115630 enhanceMetadata(): error: currentsong file is NULL
20210507 115633 enhanceMetadata(): error: currentsong file is NULL
20210507 115636 enhanceMetadata(): error: currentsong file is NULL
Reply
#5
I don't have any servers running NFS so I'm only able to troubleshoot SMB connections but maybe someone thats running NFS will be able to help you out. IIRC most of the issues with NFS have to do with getting the export and permissions right on the server.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#6
In case this helps, in the Rpi (via putty) I entered "sudo service nfs-kernel-server start". I received the following message:
"Failed to start nfs-kernel-server.service: Unit nfs-kernel-server.service not found".
Reply
#7
I also installed plex on the ubuntu server, as recommended in a youtube video. (Dell laptop connected via ethernet to my router). At this point I don't even remember why. Is connecting through Plex any easier ?? I guess anything is easier than impossible. right?
Reply
#8
sudo nano etc/exports on ubuntu server returns "/mnt/nfs_share 192.xxx.x.x/x(rw,sync,no_subtree_check)"
Reply
#9
Yeah, this is all on your NFS server.

This is Linux-craft, not moOde-craft so maybe read something like How to Install and Configure an NFS Server on Ubuntu.... 

Here's what you can expect once your server is properly configured.

My server host name is DS3615xs.local (I have no local dns resolver on my mesh network so all hosts are "discovered" through mDNS using the .local pseudo-domain).

The share I'm going to mount is /volume1/Music

1. in moOde's Create Music Source screen, I select Type NFS, edit the path manually to be " DS3615xs.local/volume1/Music", and give it a friendly name "NFS-Music"

2. Click Save and return to the Library Config screen. Now I see a Music source "NFS-Music (DS3615XS)" with a green check mark.

3. Click the back arrow to return to the Library screen.

4. Click m to pull up the menu and select the "Update library". Once the action has stopped, enjoy the music.

As for system logs, with debug logging enabled, you should see an entry like

Code:
<snippet from moode.log with debugging logging enabled>
20210507 160227 worker: Job sourcecfg
20210507 160228 sourceMount(): Command=(mount -t nfs -o ro,nolock "DS3615xs:/volume1/Music" "/mnt/NAS/NFS-Music")
20210507 160228 waitWorker(): Wait  (3)
20210507 160228 waitWorker(): End   (lib-config, w_active=0)
20210507 160243 watchdog: Info: Reducing PHP fpm worker pool
20210507 160246 worker: Job update_library
20210507 160246 mpdindex: Start
20210507 160246 thmcache: Start
20210507 160246 thmcache: Priority: Embedded cover
20210507 160246 thmcache: Res,Qual: Auto
20210507 160246 thmcache: Px ratio: 1
20210507 160246 thmcache: Th width: 100
20210507 160246 thmcache: Thm qual: 75
20210507 160246 thmcache: Scanning: NAS, SDCARD, UPNP, KAR04
20210507 160247 thmcache: Done: 20 folders scanned, 0 thumbs created, 20 already in cache.
20210507 160250 mpdindex: Done: indexed 69 artists, 40 albums, 134 songs
20210507 160250 worker: Job update_library done

and an entry like the following in the output from the CLI mount command

Code:
<snippet from output of mount command>
DS3615xs.local:/volume1/Music on /mnt/NAS/NFS-Music type nfs (ro,relatime,vers=3,rsize=131072,wsize=131072,namlen=255,hard,nolock,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.4.60,mountvers=3,mountport=892,mountproto=udp,local_lock=all,addr=192.168.4.60)

which shows you where you'll find the share directory in your player's local file system (as did the log entry, actually).


Regards,
Kent
Reply
#10
(05-07-2021, 08:46 PM)TheOldPresbyope Wrote: Yeah, this is all on your NFS server.

This is Linux-craft, not moOde-craft so maybe read something like How to Install and Configure an NFS Server on Ubuntu.... 

Here's what you can expect once your server is properly configured.

My server host name is DS3615xs.local (I have no local dns resolver on my mesh network so all hosts are "discovered" through mDNS using the .local pseudo-domain).

The share I'm going to mount is /volume1/Music

1. in moOde's Create Music Source screen, I select Type NFS, edit the path manually to be " DS3615xs.local/volume1/Music", and give it a friendly name "NFS-Music"

2. Click Save and return to the Library Config screen. Now I see a Music source "NFS-Music (DS3615XS)" with a green check mark.

3. Click the back arrow to return to the Library screen.

4. Click m to pull up the menu and select the "Update library". Once the action has stopped, enjoy the music.

As for system logs, with debug logging enabled, you should see an entry like

Code:
<snippet from moode.log with debugging logging enabled>
20210507 160227 worker: Job sourcecfg
20210507 160228 sourceMount(): Command=(mount -t nfs -o ro,nolock "DS3615xs:/volume1/Music" "/mnt/NAS/NFS-Music")
20210507 160228 waitWorker(): Wait  (3)
20210507 160228 waitWorker(): End   (lib-config, w_active=0)
20210507 160243 watchdog: Info: Reducing PHP fpm worker pool
20210507 160246 worker: Job update_library
20210507 160246 mpdindex: Start
20210507 160246 thmcache: Start
20210507 160246 thmcache: Priority: Embedded cover
20210507 160246 thmcache: Res,Qual: Auto
20210507 160246 thmcache: Px ratio: 1
20210507 160246 thmcache: Th width: 100
20210507 160246 thmcache: Thm qual: 75
20210507 160246 thmcache: Scanning: NAS, SDCARD, UPNP, KAR04
20210507 160247 thmcache: Done: 20 folders scanned, 0 thumbs created, 20 already in cache.
20210507 160250 mpdindex: Done: indexed 69 artists, 40 albums, 134 songs
20210507 160250 worker: Job update_library done

and an entry like the following in the output from the CLI mount command

Code:
<snippet from output of mount command>
DS3615xs.local:/volume1/Music on /mnt/NAS/NFS-Music type nfs (ro,relatime,vers=3,rsize=131072,wsize=131072,namlen=255,hard,nolock,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.4.60,mountvers=3,mountport=892,mountproto=udp,local_lock=all,addr=192.168.4.60)

which shows you where you'll find the share directory in your player's local file system (as did the log entry, actually).


Regards,
Kent

Thanks Kent, I did read the site you linked regarding a ubuntu server. Guess I'll re-read it and try some more.
Reply


Forum Jump: