-
Notifications
You must be signed in to change notification settings - Fork 232
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
Client error 'mounting ... failed, reason given by server: No such file or directory' #58
Comments
Hi All, So then I was wondering how to share multiple folders. I tested with the following command
The above generated the following output
Now when I run
There really is only one directory that I need to share so I should be fine with the above. But still I dont understand why this is not working. Can anyone offer some insight? Thanks |
@andrewklajman For example, if you want to share
Then, create the
After the server is started, you can now nfs-mount any of the folders:
I hope this will help. |
@jjwong0915 , Yes you were absolutely correct. I spent a few hours looking for the solution myself Im just curious for future reference how you came across the solution? Thanks again. |
@andrewklajman |
I tried to set it up with nfs4 protocol, but no luck.
|
same issue @2021 |
NFS V4 cannot work, always reports:
Maybe we should update the document about disable V3, it's so time-wasting, thank you. |
NFSv4 is virtual filesystem, it must have only one root path with $ mount -t nfs <SERVER>:/ /mnt/nfs instead of mount -t nfs <SERVER>:/container/path/foo /mnt/nfs and Another easy way to use NFSv4 Server in Docker: $ curl -fsSL https://raw.githubusercontent.com/zmicro-design/service-nfs/master/install -o /tmp/install.sh && bash /tmp/install.sh OR $ curl -fSL https://zmicro.zcorky.com/ | bash
$ zmicro service start nfs then Client $ mkdir -p /mnt/nfs
$ mount -t nfs <SERVER>:/ /mnt/nfs |
Apologies in advance for the amateurish question. I know that there must be something that I have done wrong but I am unsure what. If someone can help it would be appreciated.
On my docker server (192.168.1.39) I am running the following.
The output when I run the above is the following.
But when I try to mount the folder from the client machine (192.168.1.189) I get the following.
I feel like it has something to do with the RPC (but I only have a basic understanding of it). However when I set up a native installation (not docker) of the nfs-server package on my server then my client has no problem connecting to it.
I did log into the container and confirmed that the path /container/path/foo exists. While in the container I also confirmed that the /etc/exports was there and correct.
So I am unsure what the problem is or how to follow up any more (I have spent a day on Google with this problem and have not gotten anywhere). I have tried several variations of the above.
This is only for a home server setup but if anyone can suggest how I would appreciate it.
Thankyou
The text was updated successfully, but these errors were encountered: