Samba network share mounts correctly but no music is added

I have a problem that my music located on a network share aren’t added to the library when running a Rescan. The files are all flac.

I have installed Volumio version 2.323 and it is running on an Raspberry PI 3.

I’ve added a samba network share.
The alias is set to “Music”
No problems there.

I can see the albums when doing a

sudo ls /mnt/NAS/Music/

sudo has to be used. User volumio doesn’t have permission to read the network share.
I can also see the flac files if I continue deeper into the folder structure.

the folder structure of the network share is

/mnt/NAS/Music/"Artist"/"Album"/"Songs.flac"

below is the output from

sudo journalctl -f

when clicking the Rescan button

Any ideas as to what I’m doing wrong?
I assume that Volumio only needs read permission from the network share.

Jan 01 11:15:32 volumio volumio[902]: info: CoreCommandRouter::executeOnPlugin: mpd , rescanDb
Jan 01 11:15:32 volumio volumio[902]: info: [1514805332489] ControllerMpd::sendMpdCommand rescan
Jan 01 11:15:32 volumio volumio[902]: info: [1514805332490] sending command...
Jan 01 11:15:32 volumio volumio[902]: info: [1514805332493] ControllerMpd::sendMpdCommand status
Jan 01 11:15:32 volumio volumio[902]: info: Mpd Status Update: update
Jan 01 11:15:32 volumio volumio[902]: info:
Jan 01 11:15:32 volumio volumio[902]: [1514805332495] ---------------------------- MPD announces state update
Jan 01 11:15:32 volumio volumio[902]: info: [1514805332495] parsing response...
Jan 01 11:15:32 volumio volumio[902]: info: [1514805332496] sending command...
Jan 01 11:15:32 volumio volumio[902]: info: [1514805332497] ControllerMpd::getState
Jan 01 11:15:32 volumio volumio[902]: info: [1514805332497] ControllerMpd::sendMpdCommand status
Jan 01 11:15:32 volumio volumio[902]: info: [1514805332498] sending command...
Jan 01 11:15:32 volumio volumio[902]: info: [1514805332499] parsing response...
Jan 01 11:15:32 volumio volumio[902]: info: [1514805332500] ControllerMpd::parseState
Jan 01 11:15:32 volumio volumio[902]: info: Command Router : Notfying DB Updatetrue
Jan 01 11:15:32 volumio volumio[902]: info: [1514805332548] ControllerMpd::sendMpdCommand status
Jan 01 11:15:32 volumio volumio[902]: info: Mpd Status Update: update
Jan 01 11:15:32 volumio volumio[902]: info:
Jan 01 11:15:32 volumio volumio[902]: [1514805332549] ---------------------------- MPD announces state update
Jan 01 11:15:32 volumio volumio[902]: info: [1514805332550] parsing response...
Jan 01 11:15:32 volumio volumio[902]: info: [1514805332550] sending command...
Jan 01 11:15:32 volumio volumio[902]: info: [1514805332551] ControllerMpd::getState
Jan 01 11:15:32 volumio volumio[902]: info: [1514805332552] ControllerMpd::sendMpdCommand status
Jan 01 11:15:32 volumio volumio[902]: info: [1514805332552] ControllerMpd::parseState
Jan 01 11:15:32 volumio volumio[902]: info: [1514805332553] sending command...
Jan 01 11:15:32 volumio volumio[902]: info: [1514805332554] ControllerMpd::pushState
Jan 01 11:15:32 volumio volumio[902]: info: CoreCommandRouter::servicePushState
Jan 01 11:15:32 volumio volumio[902]: info: [1514805332555] CoreStateMachine::syncState
Jan 01 11:15:32 volumio volumio[902]: info: [1514805332555] CorePlayQueue::getTrack 0
Jan 01 11:15:32 volumio volumio[902]: info: [1514805332556] Received update from a service different from the one supposed to be playing music. Skipping notification.Current webradio Received mpd
Jan 01 11:15:32 volumio volumio[902]: info: [1514805332556] ------------------------------ 62ms
Jan 01 11:15:32 volumio volumio[902]: info: [1514805332560] parsing response...
Jan 01 11:15:32 volumio volumio[902]: info: [1514805332561] parsing response...
Jan 01 11:15:32 volumio volumio[902]: info: [1514805332562] ControllerMpd::parseState
Jan 01 11:15:32 volumio volumio[902]: info: Command Router : Notfying DB Updatefalse
Jan 01 11:15:32 volumio volumio[902]: info: CoreCommandRouter::Close All Modals sent
Jan 01 11:15:32 volumio volumio[902]: info: [1514805332581] ControllerMpd::parseState
Jan 01 11:15:32 volumio volumio[902]: info: [1514805332583] ControllerMpd::pushState
Jan 01 11:15:32 volumio volumio[902]: info: CoreCommandRouter::servicePushState
Jan 01 11:15:32 volumio volumio[902]: info: [1514805332584] CoreStateMachine::syncState
Jan 01 11:15:32 volumio volumio[902]: info: [1514805332585] CorePlayQueue::getTrack 0
Jan 01 11:15:32 volumio volumio[902]: info: [1514805332585] Received update from a service different from the one supposed to be playing music. Skipping notification.Current webradio Received mpd
Jan 01 11:15:32 volumio volumio[902]: info: [1514805332586] ------------------------------ 38ms
Jan 01 11:15:35 volumio volumio[902]: info: CoreCommandRouter::executeOnPlugin: mpd , getMyCollectionStats
Jan 01 11:15:39 volumio volumio[902]: info: CoreCommandRouter::executeOnPlugin: mpd , getMyCollectionStats
Jan 01 11:15:43 volumio volumio[902]: info: CoreCommandRouter::executeOnPlugin: mpd , getMyCollectionStats

check your (new) files for read permissions
volumio user should have read permisson on your smb share & folders, files

if not solved, tell more about your file server

It’s weird…

volumio@volumio:~$ ls -l /mnt/NAS/ total 0 drwxr-xr-- 92 1001 1002 0 Jun 21 2017 Music

volumio@volumio:~$ ls -l /mnt/NAS/Music/ ls: cannot access /mnt/NAS/Music/Twisted Sister: Permission denied d????????? ? ? ? ? ? Twisted Sister

volumio@volumio:~$ sudo ls -l /mnt/NAS/Music/ drwxr-xr-- 19 1001 1002 0 Jun 21 2017 Twisted Sister

It is a samba46 share run under FreeBSD.
snippet from the smb4.conf

	[media]
	  path = /xxx/media
	  browseable = yes
	  read only = yes
	  writable = no
	  valid users = yyy
	  veto files = /lost+found/
	  create mask = 0660
	  directory mask = 0770

Your files must be readable for all
on your bsd box and with root privileges, type this:

 chmod -R a+r /xxx/media/

Your share must be readable for all
edit your file sbm4.conf
in the [media] section

directory mask = 0770

should be

directory mask = 0775

or

directory mask = 0755

Then restart smb daemon and try it

Problem solved (Volumio has at least started to index the files).
Thx icoco for pointing me in the right direction.

I had to add ‘x’ privileges to all users on my server.

chmod -R 766 /xxx/media/

In reality I think it is only the directories that need execute permission for all users .

I did not change anything in the smb4.conf file (but I probably should update it nonetheless…)

“directory mask” is only there for when creating new folders in the same was as “create mask” is there for when creating files. That is at least how I understand it. That would imply that those two lines are pointless when there is a “read only = yes” or a “writable = no”. Further more, “read only = yes” and “writable = no” should be interchangeable and as such only one needs to be there.

That doesn’t make sense.

I have the same problem that no music shows up.
I’m the file owner - the same as the username i added in the network drive settings.

Fire TV, Kodi or Windows PCs have no problems playing all the files from that share.

Ok, its not a permission problem.

I have read, write, execute for the owner and just read for the group (2740) on my folders.
I have read, write for the owner and just read for the group (0640) on my files.
NO others/public

The problem is somewhere else on the protocol.
The moment i set “min protocol = SMB2” in my smb config the files are not added.
It also does not work with vers=2.0 if the min protocol is set.

If you don’t set vers=2.0 in the options NT1 is used as protocol and also files are not added.

Is that a bug? How can i set SMBv2 as minimum in my SAMBA server and still have stuff working?