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(ubuntu 18.04): portmap query failed: RPC: Program not registered #41

Closed
aesirteam opened this issue Jul 2, 2021 · 2 comments
Closed

Comments

@aesirteam
Copy link

server:
go run ./example/helloworld

Server running at [::]:19815

client:
sudo mount -o port=19815,vers=3,tcp,noacl -t nfs localhost:/ /mnt/nfs -v

mount.nfs: timeout set for Fri Jul  2 13:45:04 2021
mount.nfs: trying text-based options 'port=19815,vers=3,tcp,noacl,addr=127.0.0.1'
mount.nfs: prog 100005, trying vers=3, prot=6
mount.nfs: portmap query failed: RPC: Program not registered
mount.nfs: requested NFS version or transport protocol is not supported

@willscott
Copy link
Owner

you need to also set -o mountport=19815

the portmap query failed message indicates that it's trying to look up the correct port against the portmap service. Portmap is a protocol for saying which port other protocols run on, and runs on the privileged port 110.
This NFS server implementation skips that step so that it doesn't need to be run as root, but you do need to specify both the mountport and port options specifically on the client to skip lookup in portmap as a result.

@aesirteam
Copy link
Author

try it, is successful!
thank you very much

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

2 participants