Bug 1233005 - nfs server start fail: rpc.nfsd: writing fd to kernel failed: errno 111 (Connection refused)
Summary: nfs server start fail: rpc.nfsd: writing fd to kernel failed: errno 111 (Conn...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: nfs-utils
Version: 22
Hardware: All
OS: Linux
urgent
urgent
Target Milestone: ---
Assignee: Steve Dickson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1372817
TreeView+ depends on / blocked
 
Reported: 2015-06-18 03:15 UTC by JianHong Yin
Modified: 2016-09-02 19:03 UTC (History)
15 users (show)

Fixed In Version: nfs-utils-1.3.2-9.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1372817 (view as bug list)
Environment:
Last Closed: 2015-07-02 17:08:36 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description JianHong Yin 2015-06-18 03:15:59 UTC
Description of problem:

[root@nec-em11 ~]# mkdir /exportdir
[root@nec-em11 ~]# vim /etc/exports
[root@nec-em11 ~]# service nfs start
Redirecting to /bin/systemctl start  nfs.service
Job for nfs-server.service failed. See "systemctl status nfs-server.service" and "journalctl -xe" for details.
[root@nec-em11 ~]# service nfs status
Redirecting to /bin/systemctl status  nfs.service
● nfs-server.service - NFS server and services
   Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Wed 2015-06-17 23:09:16 EDT; 9s ago
  Process: 1784 ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS (code=exited, status=1/FAILURE)
  Process: 1779 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS)
 Main PID: 1784 (code=exited, status=1/FAILURE)

Jun 17 23:09:16 nec-em11.rhts.eng.bos.redhat.com systemd[1]: Starting NFS server and services...
Jun 17 23:09:16 nec-em11.rhts.eng.bos.redhat.com rpc.nfsd[1784]: rpc.nfsd: writing fd to kernel failed: errno 111 (Connection refused)
Jun 17 23:09:16 nec-em11.rhts.eng.bos.redhat.com rpc.nfsd[1784]: rpc.nfsd: unable to set any sockets for nfsd
Jun 17 23:09:16 nec-em11.rhts.eng.bos.redhat.com systemd[1]: nfs-server.service: main process exited, code=exited, status=1/FAILURE
Jun 17 23:09:16 nec-em11.rhts.eng.bos.redhat.com systemd[1]: Failed to start NFS server and services.
Jun 17 23:09:16 nec-em11.rhts.eng.bos.redhat.com systemd[1]: Unit nfs-server.service entered failed state.
Jun 17 23:09:16 nec-em11.rhts.eng.bos.redhat.com systemd[1]: nfs-server.service failed.


Version-Release number of selected component (if applicable):
Fedora 22

How reproducible:
always

Steps to Reproduce:
1. config a export dir in /etc/exports
2. systemctl start nfs-server
3.

Actual results:
[root@nec-em11 ~]# service nfs status
Redirecting to /bin/systemctl status  nfs.service
● nfs-server.service - NFS server and services
   Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Wed 2015-06-17 23:09:16 EDT; 9s ago
  Process: 1784 ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS (code=exited, status=1/FAILURE)
  Process: 1779 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS)
 Main PID: 1784 (code=exited, status=1/FAILURE)

Jun 17 23:09:16 nec-em11.rhts.eng.bos.redhat.com systemd[1]: Starting NFS server and services...
Jun 17 23:09:16 nec-em11.rhts.eng.bos.redhat.com rpc.nfsd[1784]: rpc.nfsd: writing fd to kernel failed: errno 111 (Connection refused)
Jun 17 23:09:16 nec-em11.rhts.eng.bos.redhat.com rpc.nfsd[1784]: rpc.nfsd: unable to set any sockets for nfsd
Jun 17 23:09:16 nec-em11.rhts.eng.bos.redhat.com systemd[1]: nfs-server.service: main process exited, code=exited, status=1/FAILURE
Jun 17 23:09:16 nec-em11.rhts.eng.bos.redhat.com systemd[1]: Failed to start NFS server and services.
Jun 17 23:09:16 nec-em11.rhts.eng.bos.redhat.com systemd[1]: Unit nfs-server.service entered failed state.
Jun 17 23:09:16 nec-em11.rhts.eng.bos.redhat.com systemd[1]: nfs-server.service failed.


Expected results:
start ok

Additional info:

Comment 1 JianHong Yin 2015-06-18 03:28:15 UTC
seems because the rpcbind service not start.
  nfs-utils/systemd should auto start the rpcbind service.

Comment 2 JianHong Yin 2015-06-18 03:36:30 UTC
Got it:

[root@nec-em11 ~]# cat /usr/lib/systemd/system/nfs-server.service
[Unit]
Description=NFS server and services
DefaultDependencies=no    #<<<---- this line cause the problem.
Requires= network.target proc-fs-nfsd.mount rpcbind.target

Comment 3 Roman C 2015-06-24 12:20:14 UTC
Can confirm. I need to start rbcbind by hand.

Comment 4 Fedora Update System 2015-06-26 15:19:14 UTC
nfs-utils-1.3.2-9.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/nfs-utils-1.3.2-9.fc22

Comment 5 Fedora Update System 2015-06-27 12:41:41 UTC
Package nfs-utils-1.3.2-9.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing nfs-utils-1.3.2-9.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-10837/nfs-utils-1.3.2-9.fc22
then log in and leave karma (feedback).

Comment 6 lnie 2015-06-29 05:58:53 UTC
nfs-utils-1.3.2-9.fc22 works

Comment 7 Fedora Update System 2015-07-02 17:08:36 UTC
nfs-utils-1.3.2-9.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Brian J. Murrell 2015-07-22 12:35:41 UTC
I have nfs-utils-1.3.2-9.fc22.x86_64 and I still get failures to start NFS on system boot.

Comment 9 mario 2016-03-20 21:32:08 UTC
Fedora 22, nfs-utils-1:1.3.3-6.fc22.i686 such that 'service nfs start' always fails.
Downgrade to nfs-utils-1:1.3.2-4.fc22.i686 fixes it.

Comment 10 mario 2016-03-20 21:37:32 UTC
Correction (missing rc3): nfs-utils-1:1.3.3-6.rc3.fc22.i686.
Also: nfs-utils.x86_64-1:1.3.3-6.rc3.fc23 works fine on a Fedora 23 machine.

Comment 11 Steve Dickson 2016-03-21 20:27:43 UTC
(In reply to mario from comment #9)
> Fedora 22, nfs-utils-1:1.3.3-6.fc22.i686 such that 'service nfs start'
> always fails.
> Downgrade to nfs-utils-1:1.3.2-4.fc22.i686 fixes it.

I just update f22 to latest upstream release which hopefully 
takes care of this problem
  https://bodhi.fedoraproject.org/updates/FEDORA-2016-b4b42c9157

Comment 12 mario 2016-03-21 22:15:40 UTC
(In reply to Steve Dickson from comment #11)
> I just update f22 to latest upstream release which hopefully 
> takes care of this problem
>   https://bodhi.fedoraproject.org/updates/FEDORA-2016-b4b42c9157

at link, I see some update for f23, not for f22, am I wrong?


Note You need to log in before you can comment on or make changes to this bug.