Linux Administrator

Error : Cannot register service: RPC: Unable to receive; errno = Connection refused

If you are getting the below error while starting your NFS service, this tutorial will help you to fix the this error :

Error:

Cannot register service: RPC: Unable to receive; errno = Connection refused unable to register (NFS3_PROGRAM, NFS_V3, udp)

In this article I will show you how to fix the above error.

You will get this error if there is not rpcbind service not installed or not started on your server.

Check rpcbind is running or not if not running you will get below error:

# rpcinfo
rpcinfo: can't contact rpcbind: RPC: Remote system error - No such file or directory

Start rpcbind service on your sever and if not running.

# /etc/init.d/rpcbind start

After starting rpcbind check again.

# rpcinfo

You will get some output like below if running.

program version netid     address                service    owner
    100000    4    tcp6      ::.0.111               portmapper superuser
    100000    3    tcp6      ::.0.111               portmapper superuser
    100000    4    udp6      ::.0.111               portmapper superuser
    100000    3    udp6      ::.0.111               portmapper superuser
    100000    4    tcp       0.0.0.0.0.111          portmapper superuser
    100000    3    tcp       0.0.0.0.0.111          portmapper superuser
    100000    2    tcp       0.0.0.0.0.111          portmapper superuser
    100000    4    udp       0.0.0.0.0.111          portmapper superuser
    100000    3    udp       0.0.0.0.0.111          portmapper superuser
    100000    2    udp       0.0.0.0.0.111          portmapper superuser
    100000    4    local     /var/run/rpcbind.sock  portmapper superuser
    100000    3    local     /var/run/rpcbind.sock  portmapper superuser

Install rpcbind

If rpcbind is not installed on your server follow the below command to install it.

# yum -y install rpcbind
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * epel: mirror.compevo.com
 * openvz-kernel-rhel6: mirror.steadfast.net
 * openvz-utils: mirror.steadfast.net
 * rpmforge: mirror.lstn.net
Resolving Dependencies
--> Running transaction check
---> Package rpcbind.x86_64 0:0.2.0-13.el6_9.1 will be installed
--> Processing Dependency: libgssglue for package: rpcbind-0.2.0-13.el6_9.1.x86_64
--> Processing Dependency: libtirpc.so.1()(64bit) for package: rpcbind-0.2.0-13.el6_9.1.x86_64
--> Running transaction check
---> Package libgssglue.x86_64 0:0.1-11.el6 will be installed
---> Package libtirpc.x86_64 0:0.2.1-13.el6_9 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================================================================================
 Package                           Arch                          Version                                   Repository                      Size
================================================================================================================================================
Installing:
 rpcbind                           x86_64                        0.2.0-13.el6_9.1                          updates                         51 k
Installing for dependencies:
 libgssglue                        x86_64                        0.1-11.el6                                base                            23 k
 libtirpc                          x86_64                        0.2.1-13.el6_9                            updates                         82 k

Transaction Summary
================================================================================================================================================
Install       3 Package(s)

Total download size: 156 k
Installed size: 312 k
Downloading Packages:
(1/3): libgssglue-0.1-11.el6.x86_64.rpm                                                                                  |  23 kB     00:00
(2/3): libtirpc-0.2.1-13.el6_9.x86_64.rpm                                                                                |  82 kB     00:00
(3/3): rpcbind-0.2.0-13.el6_9.1.x86_64.rpm                                                                               |  51 kB     00:00
------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                            18 MB/s | 156 kB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : libgssglue-0.1-11.el6.x86_64                                                                                                 1/3
  Installing : libtirpc-0.2.1-13.el6_9.x86_64                                                                                               2/3
  Installing : rpcbind-0.2.0-13.el6_9.1.x86_64                                                                                              3/3
  Verifying  : rpcbind-0.2.0-13.el6_9.1.x86_64                                                                                              1/3
  Verifying  : libgssglue-0.1-11.el6.x86_64                                                                                                 2/3
  Verifying  : libtirpc-0.2.1-13.el6_9.x86_64                                                                                               3/3

Installed:
  rpcbind.x86_64 0:0.2.0-13.el6_9.1

Dependency Installed:
  libgssglue.x86_64 0:0.1-11.el6                                        libtirpc.x86_64 0:0.2.1-13.el6_9

Complete!

Start rpcbind service after installing.

# /etc/init.d/rpcbind start
Thank you! for visiting LookLinux.

If you find this tutorial helpful please share with your friends to keep it alive. For more helpful topic browse my website www.looklinux.com. To become an author at LookLinux Submit Article. Stay connected to Facebook.

About the author

mm

Santosh Prasad

Hi! I'm Santosh and I'm here to post some cool article for you. If you have any query and suggestion please comment in comment section.

Leave a Comment