Thank you for your donation!


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


Solved: Files not listed via SMB/NAS
#1
I have problems with some files. When I copy them on a stick and connect it to the raspi they are showed in the library.

When they are on a nas system, the folders are empty. It is a shared folder of a windows10 system.

mount flag config used in moode is
ro,dir_mode=0777,file_mode=0777,vers=3.0

NAS system has a green check box.
How can I investigate the issue?

kind regards, Martin


Attached Files Thumbnail(s)
   
Reply
#2
Regenerate the Library and then examine the MPD log to see if there any errors.

Code:
cat /var/log/mpd/log
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
Didn't found anything helpful in the logs.

mpd log shows only added entries:
Code:
Jan 22 09:40 : update: updating SDCARD/Stereo Test/LRMonoPhase4.flac
Jan 22 09:40 : update: added NAS/LaptopNAS/EPs_neu/Joline Scheffler - Force Uknown/01 - White Stone.flac
Jan 22 09:40 : update: added NAS/LaptopNAS/EPs_neu/Joline Scheffler - Force Uknown/02 - White Stone (Gareth Wild Remix).flac
Jan 22 09:40 : update: added NAS/LaptopNAS/EPs_neu/Joline Scheffler - Force Uknown/03 - Energi Passage.flac
Jan 22 09:40 : update: added NAS/LaptopNAS/EPs_neu/Joline Scheffler - Force Uknown/04 - Observe.flac
Jan 22 09:40 : update: added NAS/LaptopNAS/Essential/Daft Punk - Essential Mix 1997-03-02.mp3
Jan 22 09:40 : update: added NAS/LaptopNAS/Essential/Eclair Fifi - Essential Mix 2021-09-11.mp3
Jan 22 09:40 : update: added NAS/LaptopNAS/Essential/Elkka - Essential Mix 2021-11-13.mp3
Jan 22 09:40 : update: added NAS/LaptopNAS/Essential/Floating Points - Essential Mix 2015-11-28.mp3
Jan 22 09:40 : update: added NAS/LaptopNAS/Essential/Floorplan - Essential Mix 2017-05-27.mp3
Jan 22 09:40 : update: added NAS/LaptopNAS/Essential/Flying Lotus - Essential Mix 2008-11-29.mp3
Jan 22 09:40 : update: added NAS/LaptopNAS/Essential/Four Tet - Essential Mix 2010-01-23.mp3
Jan 22 09:40 : update: added NAS/LaptopNAS/Essential/Four Tet - Essential Mix 2018-03-17.mp3
Jan 22 09:40 : update: added NAS/LaptopNAS/Essential/Four Tet - Peggy Gou - Essential Mix 2020-06-27.mp3
Jan 22 09:40 : update: added NAS/LaptopNAS/Essential/Frankie Knuckles - Essential Mix 1999-09-05.mp3
Jan 22 09:40 : update: added NAS/LaptopNAS/Essential/Goldie - Essential Mix 1996-04-28.mp3
Jan 22 09:40 : update: added NAS/LaptopNAS/Essential/James Blake - Essential Mix 2011-09-17.mp3
Jan 22 09:40 : update: added NAS/LaptopNAS/Essential/Jamie Xx - Essential Mix 2011-08-27.mp3
Jan 22 09:40 : update: added NAS/LaptopNAS/Essential/Jamie xx - Essential Mix 2020-04-25.mp3
Jan 22 09:40 : update: added NAS/LaptopNAS/Essential/Joris Voorn - Essential Mix 2009-04-17.mp3
Jan 22 09:40 : update: added NAS/LaptopNAS/Essential/LSDXOXO - Essential Mix 2021-10-21.mp3
Jan 22 09:40 : update: added NAS/LaptopNAS/Essential/Maya Jane Coles - Essential Mix 2013-05-04.mp3
Jan 22 09:40 : update: added NAS/LaptopNAS/Essential/Maya Jane Coles - Essential Mix 2017-08-19.m4a
Jan 22 09:40 : update: added NAS/LaptopNAS/Essential/Mind Against - Essential Mix 2016-09-10.m4a
Jan 22 09:40 : update: added NAS/LaptopNAS/Essential/Mind Against - Essential Mix 2021-05-08.mp3
Jan 22 09:40 : update: added NAS/LaptopNAS/Essential/Orla - Essential Mix 2020-11-07.mp3
Jan 22 09:40 : update: added NAS/LaptopNAS/Essential/Ricardo Villalobos b2b Raresh - Essential Mix 2020-07-18.mp3
Jan 22 09:40 : update: added NAS/LaptopNAS/Essential/Saoirse - Essential Mix 2021-12-04.mp3
Jan 22 09:40 : update: added NAS/LaptopNAS/Essential/Seth Troxler - Essential Mix 2011-05-07.mp3
Jan 22 09:40 : update: added NAS/LaptopNAS/Essential/Seth Troxler - Essential Mix 2016-10-01.mp3
Jan 22 09:40 : update: added NAS/LaptopNAS/Essential/Skee Mask - Essential Mix 2021-05-15.mp3
Jan 22 09:40 : update: added NAS/LaptopNAS/Essential/Soulwax - Essential Mix 2017-05-20.mp3
Jan 22 09:40 : update: added NAS/LaptopNAS/Essential/VTSS - Essential Mix 2021-08-21.mp3
Jan 22 09:40 : update: added NAS/LaptopNAS/Essential/Worldwide FM - World of Echoes_ François K _ 08-10-21.m4a
Jan 22 09:40 : update: added NAS/LaptopNAS/Sets/Delta Funktionen - CHAØS Festival, Athense Greece 2021-12-05.flac
Jan 22 09:40 : update: added NAS/LaptopNAS/Sets/Dr. Rubinstein _ HÖR - Jan 4 _ 2022 (192kbit_AAC).m4a

moode log shows nothing helpful. Here is the forced mount error of NAS - I entered a wrong password to get a fresh input for the library:
Code:
pi@moode:~ $ moodeutl -l
20220122 093727 worker: -- Start
20220122 093727 worker: Successfully daemonized
20220122 093728 worker: Integrity check (passed)
20220122 093728 worker: File check (OK)
20220122 093729 worker: Session vacuumed
20220122 093729 worker: Session loaded
20220122 093729 worker: Debug logging (ON)
20220122 093729 worker: -- Audio debug
20220122 093729 worker: ALSA cards: (0:sndrpirpidac | 1:empty | 2:empty | 3:empty
20220122 093729 worker: MPD config: (0:Generic-2 I2S (rpi-dac) | mixer:(none) | card:0)
20220122 093729 worker: ALSA mixer actual (none)
20220122 093729 worker: ALSA volume (none)
20220122 093729 worker: -- System
20220122 093731 worker: Host     (moode)
20220122 093731 worker: moOde    (7.6.0 2021-11-20)
20220122 093731 worker: RaspiOS  (10.6)
20220122 093731 worker: Kernel   (5.4.77-v7+ #1371)
20220122 093731 worker: Platform (Pi-3A+ 1.0 512MB)
20220122 093731 worker: ARM arch (armv7l, 32-bit kernel)
20220122 093731 worker: MPD ver  (0.23.4_p0x3)
20220122 093731 worker: CPU gov  (performance)
20220122 093731 worker: USB boot not enabled yet
20220122 093732 worker: File system expanded
20220122 093732 worker: HDMI port off
20220122 093732 worker: -- Network
20220122 093732 worker: IP address check timeout (90 secs)
20220122 093732 worker: eth0 adapter exists
20220122 093732 worker: eth0 IP address check (Yes)
20220122 093732 worker: IP addr (192.168.178.64)
20220122 093732 worker: Netmask (255.255.255.0)
20220122 093732 worker: Gateway (192.168.178.1)
20220122 093732 worker: Pri DNS (192.168.178.1)
20220122 093732 worker: Domain  (fritz.box)
20220122 093732 worker: wlan0 adapter does not exist
20220122 093732 worker: -- Audio config
20220122 093732 worker: MPD conf updated
20220122 093732 worker: ALSA card number (0)
20220122 093732 worker: MPD audio output (Generic-2 I2S (rpi-dac))
20220122 093732 worker: Audio formats (S16_LE, S24_LE)
20220122 093732 worker: ALSA mixer name (none)
20220122 093732 worker: MPD mixer type (fixed 0dB)
20220122 093733 worker: Hdwr volume controller not detected
20220122 093733 worker: ALSA output mode (Direct: hw)
20220122 093733 worker: ALSA loopback (Off)
20220122 093733 worker: Reset renderer active flags
20220122 093733 worker: CamillaDSP (off)
20220122 093733 worker: -- MPD startup
20220122 093733 worker: MPD started
20220122 093733 openMpdSocket(): error: connection failed (1) 111, Connection refused
20220122 093733 worker: MPD accepting connections
20220122 093733 worker: MPD output 1 ALSA Default (on)
20220122 093733 worker: MPD output 2 ALSA Bluetooth (off)
20220122 093733 worker: MPD output 3 HTTP Server (on)
20220122 093733 worker: MPD crossfade (off)
20220122 093733 worker: MPD ignore CUE files (yes)
20220122 093733 worker: -- Feature availability
20220122 093733 worker: Source select (available)
20220122 093733 worker: Source select (source: MPD)
20220122 093733 worker: Source select (output: Generic-2 I2S (rpi-dac))
20220122 093733 worker: Bluetooth (available)
20220122 093733 worker: Airplay renderer (available)
20220122 093733 startSpotify(): (librespot --name "Moode Spotify" --bitrate 320 --format S16 --mixer softvol --initial-volume 80 --volume-ctrl linear --volume-range 60 --cache /var/local/www/spotify_cache --disable-audio-cache --backend alsa --device "_audioout" --onevent /var/local/www/commandw/spotevent.sh > /dev/null 2>&1 &)
20220122 093733 worker: Spotify renderer (available: started)
20220122 093733 worker: Squeezelite (available)
20220122 093733 worker: RoonBridge renderer (not installed)
20220122 093733 worker: Multiroom sender (available)
20220122 093733 worker: Multiroom receiver (available)
20220122 093733 worker: UPnP renderer (available: started)
20220122 093733 worker: DLNA server (available)
20220122 093733 worker: UPnP browser (available)
20220122 093733 worker: GPIO button handler (available)
20220122 093733 worker: Stream recorder (n/a)
20220122 093733 worker: -- Music sources
20220122 093733 worker: USB sources (none attached)
20220122 093734 sourceMount(): Mount error: (mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs))
20220122 093734 sourceMount(): Command=(mount -t cifs "//DESKTOP/musik_pi" -o username="Gast-konto",password="xxxxx",rsize=61440,wsize=65536,iocharset=utf8,ro,dir_mode=0777,file_mode=0777,vers=3.0 "/mnt/NAS/LaptopNAS")
20220122 093734 worker: NAS and UPnP sources (mountall initiated)
20220122 093734 worker: -- Other
20220122 093734 worker: USB volume knob (Off)
20220122 093734 worker: Shellinabox SSH started
20220122 093734 worker: USB auto-mounter (udisks-glue)
20220122 093734 worker: LED0 (On)
20220122 093734 worker: LED1 (On)
20220122 093734 worker: Saved MPD vol level (0)
20220122 093734 worker: Preamp volume level (0)
20220122 093734 worker: MPD volume level (0) restored
20220122 093734 worker: ALSA volume level (None)
20220122 093734 worker: Auto-play (Off)
20220122 093734 worker: Maintenance interval (3 hours)
20220122 093734 worker: Screen saver activation (Never)
20220122 093734 worker: Session permissions (OK)
20220122 093734 worker: Watchdog started
20220122 093734 worker: Ready
20220122 093946 waitWorker(): Start (lib-config, w_active=0)
20220122 093946 waitWorker(): End   (lib-config, w_active=0)
20220122 093948 waitWorker(): Start (lib-config, w_active=0)
20220122 093948 waitWorker(): End   (lib-config, w_active=0)
20220122 093952 waitWorker(): Start (lib-config, w_active=1)
20220122 093953 waitWorker(): Wait  (1)
20220122 093954 waitWorker(): Wait  (2)
20220122 093954 worker: Job sourcecfg
20220122 093955 sourceMount(): Command=(mount -t cifs "//DESKTOP/musik_pi" -o username="Gast-konto",password="xxxxx",rsize=61440,wsize=65536,iocharset=utf8,ro,dir_mode=0777,file_mode=0777,vers=3.0 "/mnt/NAS/LaptopNAS")
20220122 093955 waitWorker(): Wait  (3)
20220122 093955 waitWorker(): End   (lib-config, w_active=0)
20220122 094001 waitWorker(): Start (lib-config, w_active=1)
20220122 094001 worker: Job regen_library
20220122 094001 thmcache: Start
20220122 094001 thmcache: Priority: Embedded cover
20220122 094001 thmcache: Res,Qual: Auto
20220122 094001 thmcache: Px ratio: 1
20220122 094001 thmcache: Th width: 100
20220122 094001 thmcache: Thm qual: 75
20220122 094001 thmcache: Scanning: NAS, SDCARD, UPNP
20220122 094002 waitWorker(): Wait  (1)
20220122 094002 waitWorker(): End   (lib-config, w_active=0)
20220122 094004 thmcache: Done: 4 folders scanned, 0 thumbs created, 4 already in cache.
20220122 094013 worker: Job regen_library done

what can do next?
Reply
#4
Logs look ok. Typically when files don't show up in the Library it's due to one of the conditions below.

- Insufficient permissions. MPD needs read permission to the files and execute permission to all the containing directories.
- Missing or corrupt metadata
- Corrupt files

In your particular case its not obvious to me what is preventing the files from showing up.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#5
@zOr7gA8

From your moOde player's command line you can list the entire directory structure of the mounted source as seen by moOde/MPD (the output can be volumious!), e.g., 

Code:
cd /mnt/NAS/LaptopNAS
ls -laR

The output will show all files and directories (including "hidden" items), their ownership and permissions as interpreted by Linux.

I usually redirect the output to a file so I can explore it at my leisure; something like

Code:
ls -laR > ~/NAS.listing

which stores the output in a text file named NAS.listing in user pi's home directory.

Obviously you can start at a lower level in the directory tree if you already have an idea where your "missing" files are.

Regards,
Kent
Reply
#6
(01-22-2022, 02:44 PM)TheOldPresbyope Wrote: @zOr7gA8

From your moOde player's command line you can list the entire directory structure of the mounted source as seen by moOde/MPD (the output can be volumious!), e.g., 

Code:
cd /mnt/NAS/LaptopNAS
ls -laR

The output will show all files and directories (including "hidden" items), their ownership and permissions as interpreted by Linux.

I usually redirect the output to a file so I can explore it at my leisure; something like

Code:
ls -laR > ~/NAS.listing

which stores the output in a text file named NAS.listing in user pi's home directory.

Obviously you can start at a lower level in the directory tree if you already have an idea where your "missing" files are.

Regards,
Kent

I can see the problematic folders and they appear in the library of moode. But they are empty. The music files do not appear, when accessing folder via terminal or in the library.
Reply
#7
This is just a guess, mind, but it sounds like improper permissions or ownership on directories in the share (in Windows 10 or whatever) are preventing the Samba client (in moOde/MPD/Linux) from seeing the files in question.

Try comparing 
  • the permissions on the directories leading to a file which can be seen
  • the permissions on the directories leading to a file you know is present but not seen.

Drawing from the MPD output in a previous post, for example, the directories "EPs_Neu" and "Joline Scheffler - Force Uknown" apparently have acceptable permissions and ownership.

The Library/Folder view in moOde is *not* a file manager, BTW. It displays only what MPD considers to be playable tracks [1]  and what it believes to be albums. It can be fooled by the other issues Tim mentioned such as missing or corrupt metadata or corrupt files. 

ETA - I use the words "folder" and "directory" interchangeably. They've always been directories but, to the best of my recollection, they started getting called folders when Xerox introduced the desktop metaphor as part of the Xerox Star GUI.

Regards,
Kent

[1] and, loosely, the like contents of playlist files.
Reply
#8
Hey,

problem is solved. The issue was a result of missing rights as you exspected. don't know why, but while copying to the shared folder for some folder the inheritance of rights was deactivated. 

what a pain in the ass :-)

thanks for support.

kind regards, Martin


Attached Files Thumbnail(s)
   
Reply


Forum Jump: