mineshaftgap / d4m-nfs

Docker for Mac with NFS for performance improvements over osxfs
296 stars 26 forks source link

mount.nfs: access denied by server while mounting 192.168.65.1:/Users #10

Closed injectives closed 7 years ago

injectives commented 7 years ago

Hi,

First of all let me thank you for such a brilliant solution, it works great!

But I have one problem with specifying custom mount points, I noticed the following errors in the moby VM:

mount.nfs: access denied by server while mounting 192.168.65.1:/Users
mount.nfs: access denied by server while mounting 192.168.65.1:/Users
mount: mounting 192.168.65.1:/Users on /Users failed: Permission denied

What might be the cause of this problem?

Many thanks.

pensiero commented 7 years ago

Why are you using an IP?

On Fri, Oct 28, 2016, 23:04 injectives notifications@github.com wrote:

Hi,

First of all let me thank you for such a brilliant solution, it works great!

But I have one problem with specifying custom mount points, I noticed the following errors in the moby VM:

mount.nfs: access denied by server while mounting 192.168.65.1:/Users mount.nfs: access denied by server while mounting 192.168.65.1:/Users mount: mounting 192.168.65.1:/Users on /Users failed: Permission denied

What might be the cause of this problem?

Many thanks.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/IFSight/d4m-nfs/issues/10, or mute the thread https://github.com/notifications/unsubscribe-auth/AB6uSD19mQ0g3r3P6g0S2QIpPL2yExn0ks5q4mNvgaJpZM4Kj3Fh .

if-kenn commented 7 years ago

@injectives after running d4m-nfs.sh, can you please the following commands and provide the output.

On you Mac:

showmount cat /etc/exports

On the Moby VM: df -h cat /etc/fstab

if-kenn commented 7 years ago

@pensiero I don't think he is explicitly using IPs, d4m-nfs get the default gateway IP, since it is about the only way that you can do an nfs mount from inside the Moby VM.

injectives commented 7 years ago

@if-kenn @pensiero Thank you for looking at this so quickly. Regarding IP - @if-kenn is correct, I haven't used it explicitly. Below is output of the commands:

/Users is removed from D4M Filesharing section obviously

injectives$ cat etc/d4m-nfs-mounts.txt
/Users:/Users
injectives$ showmount
Hosts on localhost:
localhost
injectives$ cat /etc/exports
# d4m-nfs exports

"/Users/injectives" -alldirs -mapall=501:20 localhost
moby:~# df -h
Filesystem                Size      Used Available Use% Mounted on
tmpfs                   999.7M    166.3M    833.5M  17% /
tmpfs                   199.9M    148.0K    199.8M   0% /run
cgroup_root              10.0M         0     10.0M   0% /sys/fs/cgroup
dev                      10.0M         0     10.0M   0% /dev
shm                     999.7M         0    999.7M   0% /dev/shm
/dev/vda2                59.0G      5.2G     50.8G   9% /var
osxfs                   111.9G     96.5G     15.1G  86% /Volumes
osxfs                   111.9G     96.5G     15.1G  86% /private
osxfs                   111.9G     96.5G     15.1G  86% /tmp
osxfs                   111.9G     96.5G     15.1G  86% /host_docker_app
/dev/vda2                59.0G      5.2G     50.8G   9% /run/log
osxfs                   111.9G     96.5G     15.1G  86% /var/log
/dev/vda2                59.0G      5.2G     50.8G   9% /var/lib/docker/aufs
192.168.65.1:/Users/injectives
                        111.9G     96.5G     15.1G  86% /mnt
moby:~# cat /etc/fstab
tmpfs   /run    tmpfs   defaults,nodev,relatime,size=10%,mode=755 0 0

# d4m-nfs mounts
192.168.65.1:/Users/injectives /mnt nfs nolock,local_lock=all 0 0
192.168.65.1:/Users /Users nfs nolock,local_lock=all 0 0
injectives commented 7 years ago

I have multiple users on my Mac, it looks like changing the mounting point to specific user fixes the problem:

injectives$ cat etc/d4m-nfs-mounts.txt
/Users/injectives:/Users/injectives