fgfanta
Posts: 8
Joined: Thu Apr 07, 2016 2:40 pm

NFS server only starts on second attempt

Thu Nov 24, 2016 10:47 am

I try to start the NFS server with

Code: Select all

sudo service nfs-kernel-server start
or with

Code: Select all

sudo systemctl start nfs-kernel-server
after a wait of a few minutes I get:

Code: Select all

Job for nfs-kernel-server.service failed. See 'systemctl status nfs-kernel-server.service' and 'journalctl -xn' for details. 
But when I try a second time, it completes successfully right away.
Here the output of systemctl status nfs-kernel-server.service

Code: Select all

● nfs-kernel-server.service - LSB: Kernel NFS server support
   Loaded: loaded (/etc/init.d/nfs-kernel-server)
   Active: failed (Result: timeout) since Thu 2016-11-24 10:35:48 UTC; 1min 57s ago
  Process: 435 ExecStart=/etc/init.d/nfs-kernel-server start (code=killed, signal=TERM)
And this is my /etc/exports

Code: Select all

/home/pi 192.168.1.0/24(rw,sync,no_subtree_check)
What could be wrong the first time I issue the command? Any information I can collect to troubleshoot the issue?

fgfanta
Posts: 8
Joined: Thu Apr 07, 2016 2:40 pm

Re: NFS server only starts on second attempt

Thu Nov 24, 2016 11:10 am

Update: if I wait for a while after I booted, then the command to start the NFS server works right away. This is OK to make the NFS work, but no good to have it start automatically at boot time (unless I stick a sleep before it, not an ideal solution).

Canedje
Posts: 265
Joined: Thu Mar 26, 2015 7:18 am

Re: NFS server only starts on second attempt

Thu Nov 24, 2016 4:34 pm

I did have almost the same problem.
Maybe this item will help you:

viewtopic.php?f=28&t=166479

Return to “Troubleshooting”