Posts: 1,583
Threads: 25
Joined: Jun 2022
Reputation:
55
The "vers" you have to add is dictated, most probably, by the drop of vers 1.x; but still has to be a version supported by your NAS, so, try with the lowest first, say, 2.0.2
Posts: 21
Threads: 2
Joined: Mar 2025
Reputation:
0
Mounting CIFS is a bundle of joy when it comes to version definition ?
Quote:vers=arg
SMB protocol version. Allowed values are:
• 1.0 - The classic CIFS/SMBv1 protocol.
• 2.0 - The SMBv2.002 protocol. This was initially introduced in Windows Vista Service Pack 1, and Windows Server 2008. Note that the initial re‐
lease version of Windows Vista spoke a slightly different dialect (2.000) that is not supported.
• 2.1 - The SMBv2.1 protocol that was introduced in Microsoft Windows 7 and Windows Server 2008R2.
• 3.0 - The SMBv3.0 protocol that was introduced in Microsoft Windows 8 and Windows Server 2012.
• 3.02 or 3.0.2 - The SMBv3.0.2 protocol that was introduced in Microsoft Windows 8.1 and Windows Server 2012R2.
• 3.1.1 or 3.11 - The SMBv3.1.1 protocol that was introduced in Microsoft Windows 10 and Windows Server 2016.
• 3 - The SMBv3.0 protocol version and above.
• default - Tries to negotiate the highest SMB2+ version supported by both the client and server.
If no dialect is specified on mount vers=default is used. To check Dialect refer to /proc/fs/cifs/DebugData
Note too that while this option governs the protocol version used, not all features of each version are available.
The default since v4.13.5 is for the client and server to negotiate the highest possible version greater than or equal to 2.1. In kernels prior to
v4.13, the default was 1.0. For kernels between v4.13 and v4.13.5 the default is 3.0.
So I guess the advice is to pick a dialect that matches and then rewrite it according to the vers arguments valid values.
E.g.
202 = 2.0
210 = 2.1
300 = 3.0
302 = 3.0.2 or 3.02
Yay! lol
Posts: 21
Threads: 2
Joined: Mar 2025
Reputation:
0
05-17-2025, 11:35 PM
(This post was last modified: 05-17-2025, 11:54 PM by boomblip.)
It looks to me like there's something broken with the latest version of MPD / Moode and SMB shares.
Here's what I've tried now:
Remove all shares.
Regenerate Music Database
tail -f /var/log/mpd/log
Last line in log: "update: updating SDCARD/Stereo Test/LRMonoPhase4.flac"
Add SMB share and defining e.g. vers=2.0
Regenerate Music Database
tail -f /var/log/mpd/log
Last line still "update: updating SDCARD/Stereo Test/LRMonoPhase4.flac"
...nothing happening in the log
According to UI Thumbnail Generator scanned 2933 folders.
still nothing in mpd log
UI showing infinite spinner next to "m"
On the 9.2.x versions when I did "Regen music db" entries would immediately pop into the log.
Don't know what more to do now.
Wasted 12 hours on this conundrum today.
Navigating to the mounted drive also works fine:
me@moode:/var/lib/mpd/music/NAS $ ls
Audio
And I can perfectly navigate around and list all the different contents.
Rebooting Moode after having waited until forever, the MPD process is blocking reboot until 1:35 has passed.
Posts: 14,792
Threads: 342
Joined: Mar 2018
Reputation:
609
I'd start by trying the moodeutl command to see what is discovered on your Samba network
Code: # Scan for SMB hosts
moodeutl -c -C
# Scan for SMB shares
moodeutl -C [host | IP address]
Examples:
Code: pi@moode9:~ $ moodeutl -c
Scanning for SMB hosts...
trx.home 192.168.1.xxx SMB version: 3.1.1
pi@moode9:~ $ moodeutl -C 192.168.1.xxx
Scanning SMB host...
Playlists
SDCard
Music
Help
Code: pi@moode9:~ $ moodeutl --help
Usage: moodeutl [OPTION]
Moode utility programs
With no OPTION print the help text and exit.
-a Print features availability
-A [add|rm N] Update features availability
-d Dump session file (requires sudo)
-d [-nr] Dump session file, no radio (requires sudo)
-d [-gv var] Dump session file, get value (requires sudo)
-D [var] Delete session variable (requires sudo)
-e [filename] Export settings to [filename] or ~/moodecfg-<timestamp>.ini (requires sudo)
-i Import settings from /boot/moodecfg.ini (requires sudo)
-f Print supported audio formats
-F Print full alsacap info
-l Print moode log
-m Run system monitor
-s Print system info
-c Scan for SMB hosts
-C Scan for SMB shares [host | IP address]
-N Scan for NFS hosts
-M Scan for MPD hosts
-o List audio overlays
-q Query sql database
-r Restart servers and renderers
-R Restart renderer [--bluetooth | --airplay | --spotify | --deezer | --squeezelite | --plexamp | --roonbridge]
-t Print last 10 lines of moode log and wait
-u Check radio station urls for playability
-U Check station urls, list only unplayable
--hwparams Print ALSA hardware params
--btreset Reset Bluetooth to off
--odcclear Clear output device cache
--mpdlog Print MPD log
--updlog Print in-place update log
--mountmonlog Print mount monitor log
--autocfglog Print auto config update log
--sleepint Print daemon sleep intervals
--mooderel Print moOde release
--pirev Print Pi revision
--osinfo Print OS info
--version Print program version
--help Print this help text
For Library issues:
- Examine the MPD log. It records all files that are added to the MPD database and any errors that it encounters.
- Try CLEAR Library tag cache on the Library Config screen
You should also reboot and post the moode startup log in case there is something that might provide some insights into what might be happening.
The log can be viewed via the SSH command moodeutl -l or downloaded via the Logs section in System Config, or via Menu, System info from any of the Config screens. The startup log will be at the end of System info output.
Posts: 21
Threads: 2
Joined: Mar 2025
Reputation:
0
05-18-2025, 12:07 PM
(This post was last modified: 05-18-2025, 12:08 PM by boomblip.)
Thanks Tim.
Unfortunately the Mac OS that hosts these SMB shares doesn't announce shares on the network, so -c and -C don't help.
I don't think I can be more clear than stating that it worked on 9.2.6 and I updated yesterday after seeing the great news of Airplay art and metadata now showing (which pleased me immensely btw! Thank you dearly for that  ) and after the update to 9.3.4 I could no longer play a thing off the SMB shares.
I've even tried a clean install of 9.3.4 to another SD card. Same deal: Thumbs are generated just fine but no audio files are being scanned.
To be clear: The shares are mounted and the file systems and files are 100% accessible to the system (it's generating thumbs) but the process that is supposed to scan for music files never gets on with the task, instead it spinds forever.
I've looked at the code changes in the past 3 weeks and I'm greatly confused by nvme+SMB getting mixed in together in the new function, but I'm not enough of a linux shark to decipher if it makes sense.
My best guess based on what's happening is that MPD is looking for the files in the wrong place since it keeps spinning forever but never logs a single line about scanning.
Restarting, notable events:
Failed unmounting mnt-NAS-Audio.mount
Job mpd.service stop is unresponsive until being killed after 95 seconds.
Quote:Examine the MPD log. It records all files that are added to the MPD database and any errors that it encounters.
That's the point I'm trying to share - it never even logs a single line.
Anyways, here's the boot log:
Code: 20250518 135554 worker: --
20250518 135554 worker: -- Start moOde 9 series
20250518 135554 worker: --
20250518 135554 worker: Daemonize: complete
20250518 135555 DEBUG: Wait 1 for Linux startup
20250518 135601 worker: Linux startup: complete
20250518 135601 worker: Boot config: ok
20250518 135601 worker: Boot folder: ok
20250518 135601 worker: Radio table: ok
20250518 135601 worker: PHP session: cleaned
20250518 135601 DEBUG: phpSession(get_status): status=PHP_SESSION_NONE
20250518 135601 worker: PHP session: loaded
20250518 135602 worker: Package locks: applied
20250518 135604 worker: File check: complete
20250518 135604 worker: Log to RAM: on
20250518 135604 worker: Tmp to RAM: on
20250518 135604 worker: Debug logging: on
20250518 135604 worker: --
20250518 135604 worker: -- System
20250518 135604 worker: --
20250518 135605 worker: Host name: moode
20250518 135605 worker: RPi model: Pi-5B 1.0 4GB
20250518 135605 worker: moOde release: 9.3.4 2025-05-13
20250518 135605 worker: RaspiOS: 12.11 Bookworm 64-bit
20250518 135605 worker: Linux Kernel: 6.12.25 64-bit
20250518 135605 worker: MPD version: 0.24.3
20250518 135605 worker: User id: boomblip
20250518 135605 worker: Home folder: /home/boomblip
20250518 135605 worker: Time zone: Europe/Copenhagen
20250518 135605 worker: Kbd layout: dk
20250518 135605 worker: HDMI ports(s): on
20250518 135605 worker: HDMI-CEC: off
20250518 135605 worker: Sys LED0: on
20250518 135605 worker: Sys LED1: on
20250518 135605 worker: Reduce power: off
20250518 135605 worker: Fan control: 50C, 45C, 75
20250518 135605 worker: CPU governor: ondemand
20250518 135605 worker: --
20250518 135605 worker: -- Network
20250518 135605 worker: --
20250518 135605 worker: Eth0
20250518 135606 worker: Ethernet: adapter exists
20250518 135606 worker: Ethernet: timeout off
20250518 135606 worker: Ethernet: method dhcp
20250518 135606 worker: Ethernet: address 192.168.1.x
20250518 135606 worker: Ethernet: netmask 255.255.255.0
20250518 135606 worker: Ethernet: gateway 192.168.1.1
20250518 135606 worker: Ethernet: pri DNS 192.168.1.1
20250518 135606 worker: Ethernet: domain localdomain
20250518 135606 worker: Wlan0
20250518 135606 worker: Wireless: adapter does not exist
20250518 135606 worker: mDNS
20250518 135606 worker: Discover: IPv4 and IPv6
20250518 135606 worker: --
20250518 135606 worker: -- File sharing
20250518 135606 worker: --
20250518 135606 worker: SMB file sharing: off
20250518 135606 worker: SMB password: none
20250518 135606 worker: NFS file sharing: off
20250518 135606 worker: DLNA file sharing: off
20250518 135606 worker: --
20250518 135606 worker: -- Special configs
20250518 135606 worker: --
20250518 135606 worker: Plexamp: not installed
20250518 135606 worker: RoonBridge: not installed
20250518 135606 worker: Allo Boss 2: not detected, OLED script ok
20250518 135606 worker: Allo Piano 2.1: not detected
20250518 135606 worker: IQaudIO DigiAMP+: not detected
20250518 135606 worker: RPi DigiAMP+: not detected
20250518 135606 worker: Bluetooth: session vars ok
20250518 135606 worker: --
20250518 135606 worker: -- ALSA debug
20250518 135606 worker: --
20250518 135606 worker: Cards: 0:vc4hdmi0 1:vc4hdmi1 2:DAC 3:empty
20250518 135606 worker: 4:empty 5:empty 6:empty 7:empty
20250518 135606 worker: Mixers: 0:none 1:none 2:(Digital) 3:none
20250518 135606 worker: 4:none 5:none 6:none 7:none
20250518 135606 worker: --
20250518 135606 worker: -- Audio configuration
20250518 135606 worker: --
20250518 135606 worker: Audio device: 2:Raspberry Pi DAC+
20250518 135606 worker: ALSA card: has not been reassigned
20250518 135606 worker: MPD config: update not needed
20250518 135606 worker: ALSA output: I2S
20250518 135606 worker: ALSA mode: Default (plughw)
20250518 135606 worker: ALSA mixer: Digital
20250518 135606 worker: ALSA volume: 100% (0.00dB)
20250518 135606 worker: ALSA maxvol: 100%
20250518 135606 worker: ALSA loopback: off
20250518 135606 worker: MPD mixer Hardware
20250518 135606 worker: Integ audio: vc4-kms-v3d
20250518 135606 worker: Audio formats: S16_LE, S24_LE, S32_LE
20250518 135606 worker: CamillaDSP: off
20250518 135606 worker: CDSP volume: -120dB
20250518 135606 worker: CDSP volrange: 60dB
20250518 135606 worker: --
20250518 135606 worker: -- MPD startup
20250518 135606 worker: --
20250518 135606 DEBUG: MPD|ALSA devnum: plughw:2,0|i2s
20250518 135606 worker: MPD service: started
20250518 135606 worker: MPD port 6600: accepting connections
20250518 135606 worker: MPD ALSA Default: on
20250518 135606 worker: MPD ALSA Bluetooth: off
20250518 135606 worker: MPD HTTP Server: off
20250518 135606 worker: MPD volume: 100
20250518 135606 worker: Saved MPD vol: -1
20250518 135606 worker: Saved SRC vol: 0
20250518 135606 worker: MPD crossfade: off
20250518 135606 worker: MPD ignore CUE: no
20250518 135606 worker: MPD CDSP volsync: off
20250518 135606 worker: --
20250518 135606 worker: -- Music sources
20250518 135606 worker: --
20250518 135606 worker: USB drives: none
20250518 135606 worker: NVMe drives: none
20250518 135606 worker: SATA drives: none
20250518 135606 worker: NAS source: Audio (smb)
20250518 135607 DEBUG: Mount (mount -t cifs "//192.168.1.xxx/Store/Audio" -o username="x",password="x",rsize=61440,wsize=65536,iocharset=utf8,ro,noserverino,cache=none,dir_mode=0777,file_mode=0777,vers=3.0 "/mnt/NAS/Audio")
20250518 135607 worker: --
20250518 135607 worker: -- Feature availability
20250518 135607 worker: --
20250518 135607 worker: Input select: available, Source: MPD, Output: Raspberry Pi DAC+
20250518 135612 worker: Bluetooth: started, PIN: None, ALSA/CDSP maxvol: 100%/0dB, ALSA outmode: Standard
20250518 135612 DEBUG: startAirPlay(): (/usr/bin/shairport-sync -v -a "Moode AirPlay" -- -d _audioout > /var/log/moode_shairport-sync.log 2>&1 &)
20250518 135612 worker: Retry 1 waiting for metadata pipe
20250518 135613 DEBUG: startAirPlay(): (/var/www/daemon/aplmeta-reader.sh > /dev/null 2>&1 &)
20250518 135613 worker: AirPlay: started
20250518 135613 worker: Spotify Connect: available
20250518 135613 worker: Deezer Connect: n/a
20250518 135613 worker: Squeezelite: available
20250518 135613 worker: UPnP client: available
20250518 135613 worker: Plexamp: not installed, ALSA maxvol: 100%
20250518 135613 worker: RoonBridge: not installed
20250518 135613 worker: Multiroom: available
20250518 135613 worker: GPIO buttons: available
20250518 135613 worker: Stream recorder: n/a
20250518 135613 worker: --
20250518 135613 worker: -- Security
20250518 135613 worker: --
20250518 135613 worker: Web SSH server: off
20250518 135613 worker: XSS detection: off
20250518 135613 worker: HTTPS mode: available
20250518 135613 worker: --
20250518 135613 worker: -- Peripherals
20250518 135613 worker: --
20250518 135614 worker: Local display: on
20250518 135614 worker: Chromium ver: 126.0.6478.164-rpt1
20250518 135614 worker: Chromium cfg: directory ok
20250518 135614 worker: Screen blank 600
20250518 135614 worker: On-screen kbd: off
20250518 135614 worker: Disable GPU: off
20250518 135614 worker: HDMI orient: landscape
20250518 135614 worker: HDMI 4K 60Hz: off
20250518 135614 worker: DSI scn type: 1
20250518 135614 worker: DSI port: 1
20250518 135614 worker: DSI brightness: 255
20250518 135614 worker: DSI rotate: 0
20250518 135614 worker: Rotary encoder: off
20250518 135614 worker: Triggerhappy: off
20250518 135614 worker: LCD updater: off
20250518 135614 worker: --
20250518 135614 worker: -- Miscellaneous
20250518 135614 worker: --
20250518 135614 worker: Software update: Automatic check off
20250518 135614 worker: Auto-CoverView: on
20250518 135614 worker: CoverView timeout: 600
20250518 135614 worker: Auto-shuffle: on
20250518 135614 worker: Auto-play: off
20250518 135614 worker: Maintenance task: 360 mins
20250518 135614 worker: Current view: reset to Playback
20250518 135614 worker: Active flags: all false
20250518 135614 worker: Reset flags: skipped
20250518 135614 worker: Session check: ok
20250518 135614 worker: --
20250518 135614 worker: -- Startup complete
20250518 135614 worker: --
20250518 135614 worker: Mount monitor: started
20250518 135614 worker: Radio monitor: off
20250518 135615 worker: Watchdog monitor: started
20250518 135615 worker: Responsiveness: Default
20250518 135615 DEBUG: Sleep intervals: worker=1.5, waitworker=0.75, watchdog=6, mountmon=30, mpdmon=6, gpiobuttons=1
20250518 135615 worker: Ready
20250518 135615 DEBUG: genLibrary(): jsonErrorMessage(): No errors
20250518 135615 DEBUG: chkVariables(): Excluded key: path
20250518 135616 DEBUG: phpSession(get_status): status=PHP_SESSION_NONE
20250518 135656 DEBUG: chkVariables(): Excluded key: path
20250518 135656 DEBUG: phpSession(get_status): status=PHP_SESSION_NONE
20250518 140214 DEBUG: chkVariables(): Excluded key: fs_smb_pwd <- ... yet included in the debug line for the mount
Posts: 21
Threads: 2
Joined: Mar 2025
Reputation:
0
Code: Last login: Sun May 18 13:33:14 2025 from 192.168.1.x...%eth0
x@moode:~ $ tail -f /var/log/moode.log
20250518 135615 worker: Watchdog monitor: started
20250518 135615 worker: Responsiveness: Default
20250518 135615 DEBUG: Sleep intervals: worker=1.5, waitworker=0.75, watchdog=6, mountmon=30, mpdmon=6, gpiobuttons=1
20250518 135615 worker: Ready
20250518 135615 DEBUG: genLibrary(): jsonErrorMessage(): No errors
20250518 135615 DEBUG: chkVariables(): Excluded key: path
20250518 135616 DEBUG: phpSession(get_status): status=PHP_SESSION_NONE
20250518 135656 DEBUG: chkVariables(): Excluded key: path
20250518 135656 DEBUG: phpSession(get_status): status=PHP_SESSION_NONE
20250518 140214 DEBUG: chkVariables(): Excluded key: fs_smb_pwd
20250518 141156 DEBUG: chkVariables(): Excluded key: password
20250518 141156 DEBUG: phpSession(get_status): status=PHP_SESSION_ACTIVE
20250518 141157 worker: Job nas_source_cfg
20250518 141157 DEBUG: waitWorker(): Wait 1 for lib-config
//manually changing to vers 302
20250518 141158 DEBUG: Mount (mount -t cifs "//192.168.1.X/Store/Audio" -o username="x",password="x",rsize=61440,wsize=65536,iocharset=utf8,ro,noserverino,cache=none,dir_mode=0777,file_mode=0777,vers=3.0.2 "/mnt/NAS/Audio")
//clicking remount button just for good measure
20250518 141226 DEBUG: Mount (mount -t cifs "//192.168.1.X/Store/Audio" -o username="x",password="x",rsize=61440,wsize=65536,iocharset=utf8,ro,noserverino,cache=none,dir_mode=0777,file_mode=0777,vers=3.0.2 "/mnt/NAS/Audio")
^C
//navigate to mount and list content
x@moode:~ $ cd /mnt/NAS/Audio/
x@moode:/mnt/NAS/Audio $ ls
AQS FLAC MP3 MP4
//tail some more
x@moode:/mnt/NAS/Audio $ tail -f /var/log/moode.log
20250518 141342 mpdindex: Start
20250518 141342 mpdindex: Cmd (update)
20250518 141344 thumb-gen: Start
20250518 141344 thumb-gen: Scan opt: Default
20250518 141344 thumb-gen: Priority: Embedded cover
20250518 141344 thumb-gen: Res,Qual: 600px,60
20250518 141344 thumb-gen: Px ratio: 2
20250518 141344 thumb-gen: Th width: 600
20250518 141344 thumb-gen: Thm qual: 60
20250518 141344 thumb-gen: Scanning: NAS, NVME, SATA, SDCARD
20250518 141421 DEBUG: phpSession(get_status): status=PHP_SESSION_NONE
20250518 141433 thumb-gen: Done: 2933 folders scanned, 0 thumbs created, 2933 already in cache.
//and then nothing more ever happens
Posts: 21
Threads: 2
Joined: Mar 2025
Reputation:
0
05-18-2025, 01:21 PM
(This post was last modified: 05-18-2025, 01:25 PM by boomblip.)
If it's any help or hint, the scanning adds the very first folder (with thumb) to the library, but no files are in it and then never gets further.
Downgrading to a clean 9.3.2 did nothing to fix issues.
Testing 9.3.0 shortly and lastly rolling back to 9.2.6
Posts: 6,516
Threads: 189
Joined: Apr 2018
Reputation:
266
The trouble we have with issues like these is we have to repro the environment in which they occur.
I believe all the SMB servers I'm been using to source music files either regularly or for test purposes to my moOde players still work with moOde 9.3.4. I'll double check and report on them late today.
I don't have access to either a MacOS or a recent Synology box (to name two systems which have recently been mentioned). Can only sit by and watch the posts fly by about them. They often lack any details about the sourcing system---make, model, OS version, etc.
Regards,
Kent
Posts: 21
Threads: 2
Joined: Mar 2025
Reputation:
0
Great news! 9.3.0 works out of the box with a clean image.
Posts: 21
Threads: 2
Joined: Mar 2025
Reputation:
0
05-18-2025, 01:51 PM
(This post was last modified: 05-18-2025, 03:21 PM by boomblip.
Edit Reason: more tests
)
Assuming that MPD handles scanning (?):
My best guess is that it is related to MPD version > 0.24, as I can navigate the mounts just fine from ssh and the thumbnail generation works perfectly on the later releases.
It is only the audio file scanning that breaks. Everything else runs fine.
SMB dialect / version does not _seem_ to make a difference.
During the many attempts back and forth I've seen log entries complaining about memory which made the player start playing silence instead of radio.
I've only once succeeded in getting the scanning to scan 10ish folders while I was going back and forth with reboots, library regen, refresh library, faffing with the smb VERS param. And I have no idea what magic combo of coincidents convinced the mpd scanning to actually progress.
More testing news: 9.3.0 with all the post-release patches and after reboot still works as expected with library updates scanning SMB shares.
I've read the entire diff between 9.3.0 and 9.3.2 and I see nothing obvious sticking out.
I've run apt-get update and upgrade and all still good on 9.3.0.
x@moode:~ $ uname -r
6.6.74+rpt-rpi-2712
Could it be kernel 6.12.x causing grief? Can I update that via ssh and see if it breaks things?
Edit: "Found sudo apt update && sudo apt install --reinstall raspi-firmware linux-image-rpi-2712" which seems to update to 6.12.25. Will see if it breaks the scanning.
|