Page 1 of 1

Cannot rebuild MPD library from SMB share

PostPosted: 05 Aug 2015, 13:23
by andig
I've mapped an SMB share with u/p. Rebuilding MPD library fails. This is the logfile/ ls output:

Aug 05 14:17 : update: starting
Aug 05 14:17 : client: [5] process command "status"
Aug 05 14:17 : client: [5] command returned 0
Aug 05 14:17 : update: Failed to stat /mnt/MPD/NAS/NAS: No such device
Aug 05 14:17 : update: finished

[root@runeaudio ~]# ls -l /mnt/MPD/
total 16
drwxr-xr-x 2 mpd audio 4096 Aug 9 2014 LocalStorage
drwxr-xr-x 3 mpd audio 4096 Aug 5 13:56 NAS
drwxr-xr-x 2 mpd audio 4096 Oct 27 2014 USB
drwxr-xr-x 2 mpd audio 4096 Sep 23 2014 Webradio
[root@runeaudio ~]# ls -l /mnt/MPD/NAS/
ls: cannot access /mnt/MPD/NAS/NAS: No such device
total 0
d????????? ? ? ? ? ? NAS


[root@runeaudio ~]# mpc update
volume: 36% repeat: off random: off single: off consume: off

[root@runeaudio ~]# mpc listall
[root@runeaudio ~]#

This seems to be a permissions problem, however I'm entirely unclear how to fix it. As rune has the u/p for the share I would expect it to setup permissions accordingly?

Re: Cannot rebuild MPD library from SMB share

PostPosted: 20 Aug 2015, 11:56
by delboy711
Is your SMB share actually mounted?
Confirm with the command

mount

You should see a line corresponding to your share.

If it is not mounted the most likely causes are :-
a/ The remote directory setting. This should be the 'name' of the share, not the actual path to the remote directory.

b/ The security settings. If the share is not open for all users to read, then the user name and password you give must be defined on the server hosting the share. If it is a Linux server it is not sufficient to simply use the user name and password you use to log in. You must enable the user to share over Samba and give it a sharing password as well.
You do this with the command 'smbpasswd -a username' given as root on the server.

c/ A firewall. Try with firewall disabled on the server.


HTH