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:
seems because the rpcbind service not start. nfs-utils/systemd should auto start the rpcbind service.
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
Can confirm. I need to start rbcbind by hand.
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
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).
nfs-utils-1.3.2-9.fc22 works
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.
I have nfs-utils-1.3.2-9.fc22.x86_64 and I still get failures to start NFS on system boot.
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.
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.
(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
(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?