Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Can't connect to NFS (RPC: Program not registered)

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
daaaaang
n00b
n00b
User avatar
Posts: 48
Joined: Sun Jul 04, 2010 4:54 pm
Location: Ann Arbor, Michigan, US
Contact:
Contact daaaaang
Website

Can't connect to NFS (RPC: Program not registered)

  • Quote

Post by daaaaang » Sat Jul 12, 2014 11:29 pm

It seems like the fellow in this solved thread had the same issue, except a lot of the solutions there involve systemd, which does not apply to me (still using regular-ol' OpenRC).

The client computer is a macbook. From it, I get this error:

Code: Select all

$ showmount -e gan
showmount: Cannot retrieve info from host: gan: RPC: Program not registered
From the server:

Code: Select all

# exportfs -rav
exporting 192.168.0.0/24:/mnt/export/ngv
exporting 192.168.0.0/24:/mnt/export/ngp
exporting 192.168.0.0/24:/mnt/export/ram
exporting 192.168.0.0/24:/mnt/export

Code: Select all

# cat /etc/exports
/mnt/export     192.168.0.0/24(rw,fsid=root,insecure,no_subtree_check)
/mnt/export/ram 192.168.0.0/24(rw,nohide,insecure,no_subtree_check,fsid=58989459-faf9-4ca1-9c59-ebf55c5de6ea)
/mnt/export/ngp 192.168.0.0/24(rw,nohide,insecure,no_subtree_check)
/mnt/export/ngv 192.168.0.0/24(rw,nohide,insecure,no_subtree_check)

Code: Select all

# showmount -e localhost
clnt_create: RPC: Program not registered

Code: Select all

# rpcinfo -p localhost
   program vers proto   port  service
    100000    4   tcp    111  portmapper
    100000    3   tcp    111  portmapper
    100000    2   tcp    111  portmapper
    100000    4   udp    111  portmapper
    100000    3   udp    111  portmapper
    100000    2   udp    111  portmapper
    100024    1   udp  42381  status
    100024    1   tcp  59875  status
    100003    3   tcp   2049  nfs
    100003    4   tcp   2049  nfs
    100003    3   udp   2049  nfs
    100003    4   udp   2049  nfs
    100021    1   udp  44882  nlockmgr
    100021    3   udp  44882  nlockmgr
    100021    4   udp  44882  nlockmgr
    100021    1   tcp  34392  nlockmgr
    100021    3   tcp  34392  nlockmgr
    100021    4   tcp  34392  nlockmgr
I'm pretty sure it has everything it needs from the kernel:

Code: Select all

# zgrep -i nfs /proc/config.gz
CONFIG_NFS_FS=y
CONFIG_NFS_V2=y
CONFIG_NFS_V3=y
CONFIG_NFS_V3_ACL=y
CONFIG_NFS_V4=y
# CONFIG_NFS_SWAP is not set
# CONFIG_NFS_V4_1 is not set
CONFIG_ROOT_NFS=y
# CONFIG_NFS_USE_LEGACY_DNS is not set
CONFIG_NFS_USE_KERNEL_DNS=y
CONFIG_NFSD=y
CONFIG_NFSD_V3=y
# CONFIG_NFSD_V3_ACL is not set
CONFIG_NFSD_V4=y
# CONFIG_NFSD_V4_SECURITY_LABEL is not set
# CONFIG_NFSD_FAULT_INJECTION is not set
CONFIG_NFS_ACL_SUPPORT=y
CONFIG_NFS_COMMON=y
Not sure if it's relevant, but when I stop rpcbind, I do get an error from start-stop-daemon (that bullet is red; the rest are green):

Code: Select all

# /etc/init.d/rpcbind stop
nfsmount         | * Unmounting NFS filesystems ...
nfs              | * Stopping NFS mountd ...                          [ ok ]
nfs              | * start-stop-daemon: no matching processes found   [ ok ]
nfs              | * Stopping NFS daemon ...                          [ ok ]
nfs              | * Unexporting NFS directories ...                  [ ok ]
rpc.statd        | * Stopping NFS statd ...
rpc.idmapd       | * Stopping idmapd ...                              [ ok ]
rpcbind          | * Stopping rpcbind ...                             [ ok ]
On the other hand, nfs always looks happy enough when it starts:

Code: Select all

# /etc/init.d/nfs start
rpcbind          | * Starting rpcbind ...                             [ ok ]
rpc.idmapd       | * Starting idmapd ...                              [ ok ]
rpc.statd        | * Starting NFS statd ...                           [ ok ]
nfs              | * Exporting NFS directories ...                    [ ok ]
nfs              | * Starting NFS mountd ...
nfs              |rpc.mountd version 1.3.0                            [ ok ]
nfs              | * Starting NFS daemon ...                          [ ok ]
nfs              | * Starting NFS smnotify ...                        [ ok ]
Lastly, if it's important, ngv and ngp bind to directories on a ZFS filesystem, and ram binds to a tmpfs mount.

Thanks!
Matt
Top
mike155
Advocate
Advocate
Posts: 4438
Joined: Fri Sep 17, 2010 11:33 pm
Location: Frankfurt, Germany

  • Quote

Post by mike155 » Sun Jul 13, 2014 10:37 am

Hi Matt,

what are th IP addresses of your Linux server and your Mac client?

First of all, you should try to find out why "showmount -e localhost" on your server doesn't work. Do "showmount -e" or "showmount -e <ip address of your server>" work on your server? Did you execute "exportfs -a"?

Michael
Top
szatox
Advocate
Advocate
Posts: 3858
Joined: Tue Aug 27, 2013 12:35 pm

  • Quote

Post by szatox » Sun Jul 13, 2014 7:57 pm

Do you have either /etc/init.d/nfsmount or /etc/init.d/nfs started on your client?
Top
Post Reply

3 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic