title: nfs-kernel-server failed to start on debian
body: <p>A bit new to this topic and would be great if one can provide some pointers in this case:
  i have been trying to use NFS on an in-house built cluster. everything worked from the link i <a href="http://selkie-macalester.org/csinparallel/modules/RosieCluster/build/html/" rel="nofollow noreferrer">followed</a>  except common file sharing topic.</p>
  
  <ul>
  <li>installed NFS-kernel-server on master node</li>
  <li>installed NFS-common on slave / worker nodes</li>
  <li>configured /etc/exports on master node as required</li>
  <li>configured /etc/fstab properly on worker nodes with the mount location</li>
  <li><strong>But unable to start nfs-server on master node and the errors show issue with the dependencies</strong></li>
  <li>if needed i can provide output from journalctl -xe but main error shows "Failed to mount NFSD configuration filesystem."</li>
  </ul>
  
  <p>Any pointer / solution would be greatly helpful.</p>
  
  <p><strong>Output from journalctl -xe:</strong></p>
  
  <blockquote>
    <p>*The unit proc-fs-nfsd.mount has entered the 'failed' state with result 'exit-code'. Dec 13 10:06:39 ccc-001 systemd<a href="http://selkie-macalester.org/csinparallel/modules/RosieCluster/build/html/" rel="nofollow noreferrer">1</a>: Failed to
    mount NFSD configuration filesystem.
    -- Subject: A start job for unit proc-fs-nfsd.mount has failed
    -- Defined-By: systemd</p>
    
    <h2>-- Support: <a href="https://www.debian.org/support" rel="nofollow noreferrer">https://www.debian.org/support</a></h2>
    
    <h2>-- A start job for unit proc-fs-nfsd.mount has finished with a failure.</h2>
    
    <p>-- The job identifier is 1032 and the job result is failed. Dec 13 10:06:39 ccc-001 systemd<a href="http://selkie-macalester.org/csinparallel/modules/RosieCluster/build/html/" rel="nofollow noreferrer">1</a>: Dependency failed for NFS Mount Daemon.
    -- Subject: A start job for unit nfs-mountd.service has failed
    -- Defined-By: systemd</p>
    
    <h2>-- Support: <a href="https://www.debian.org/support" rel="nofollow noreferrer">https://www.debian.org/support</a></h2>
    
    <h2>-- A start job for unit nfs-mountd.service has finished with a failure.</h2>
    
    <p>-- The job identifier is 1034 and the job result is dependency. Dec 13 10:06:39 ccc-001 systemd<a href="http://selkie-macalester.org/csinparallel/modules/RosieCluster/build/html/" rel="nofollow noreferrer">1</a>: Dependency failed for NFS server and
    services.
    -- Subject: A start job for unit nfs-server.service has failed
    -- Defined-By: systemd</p>
    
    <h2>-- Support: <a href="https://www.debian.org/support" rel="nofollow noreferrer">https://www.debian.org/support</a></h2>
    
    <h2>-- A start job for unit nfs-server.service has finished with a failure.</h2>
    
    <p>-- The job identifier is 1027 and the job result is dependency. Dec 13 10:06:39 ccc-001 systemd<a href="http://selkie-macalester.org/csinparallel/modules/RosieCluster/build/html/" rel="nofollow noreferrer">1</a>: Dependency failed for NFSv4 ID-name
    mapping service.
    -- Subject: A start job for unit nfs-idmapd.service has failed
    -- Defined-By: systemd</p>
    
    <h2>-- Support: <a href="https://www.debian.org/support" rel="nofollow noreferrer">https://www.debian.org/support</a></h2>
    
    <h2>-- A start job for unit nfs-idmapd.service has finished with a failure.</h2>
    
    <p>-- The job identifier is 1037 and the job result is dependency. Dec 13 10:06:39 ccc-001 systemd<a href="http://selkie-macalester.org/csinparallel/modules/RosieCluster/build/html/" rel="nofollow noreferrer">1</a>: nfs-idmapd.service: Job
    nfs-idmapd.service/start failed with result 'dependency'. Dec 13
    10:06:39 ccc-001 systemd<a href="http://selkie-macalester.org/csinparallel/modules/RosieCluster/build/html/" rel="nofollow noreferrer">1</a>: nfs-server.service: Job
    nfs-server.service/start failed with result 'dependency'. Dec 13
    10:06:39 ccc-001 systemd<a href="http://selkie-macalester.org/csinparallel/modules/RosieCluster/build/html/" rel="nofollow noreferrer">1</a>: nfs-mountd.service: Job
    nfs-mountd.service/start failed with result 'dependency'. Dec 13
    10:06:39 ccc-001 systemd<a href="http://selkie-macalester.org/csinparallel/modules/RosieCluster/build/html/" rel="nofollow noreferrer">1</a>: Condition check resulted in RPC security
    service for NFS server being skipped.
    -- Subject: A start job for unit rpc-svcgssd.service has finished successfully
    -- Defined-By: systemd</p>
    
    <h2>-- Support: <a href="https://www.debian.org/support" rel="nofollow noreferrer">https://www.debian.org/support</a></h2>
    
    <h2>-- A start job for unit rpc-svcgssd.service has finished successfully.</h2>
    
    <p>-- The job identifier is 1042. Dec 13 10:06:39 ccc-001 systemd<a href="http://selkie-macalester.org/csinparallel/modules/RosieCluster/build/html/" rel="nofollow noreferrer">1</a>: Condition check resulted in RPC security service for NFS client and
    server being skipped.
    -- Subject: A start job for unit rpc-gssd.service has finished successfully
    -- Defined-By: systemd</p>
    
    <h2>-- Support: <a href="https://www.debian.org/support" rel="nofollow noreferrer">https://www.debian.org/support</a></h2>
    
    <h2>-- A start job for unit rpc-gssd.service has finished successfully.</h2>
    
    <p>-- The job identifier is 1041. Dec 13 10:06:39 ccc-001 sudo[4469]: pam_unix(sudo:session): session closed for user root*</p>
  </blockquote>