Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
injectives opened this issue Oct 28, 2016 · 5 comments
Closed

Comments

@injectives
Copy link

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
Copy link

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
#10, or mute the thread
https://github.com/notifications/unsubscribe-auth/AB6uSD19mQ0g3r3P6g0S2QIpPL2yExn0ks5q4mNvgaJpZM4Kj3Fh
.

@if-kenn
Copy link
Collaborator

if-kenn commented Oct 29, 2016

@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
Copy link
Collaborator

if-kenn commented Oct 29, 2016

@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
Copy link
Author

injectives commented Oct 29, 2016

@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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants