nfs-server.service fails to start due to dependency issues or bad unit file configuration

Solution Verified - Updated -

Issue

  • nfs-server.service fails to start with messages similar or related to:

    Failed to start nfs-server.service: Unit is not loaded properly: Bad message.
    
    or
    
    Failed to start nfs-server.service: Unit proc-fs-nfsd.mount has a bad unit file setting.
    
    or 
    
    A dependency job for nfs-server.service failed. See 'journalctl -xe' for details.
    
  • Checking the status of proc-fs-nfsd.mount or system logs show the following errors:

    systemd[1]: [/etc/systemd/system/proc-fs-nfsd.mount:1] Assignment outside of section. Ignoring.
    systemd[1]: proc-fs-nfsd.mount's What setting is missing. Refusing.
    
    or
    
    systemd[1]: /etc/systemd/system/proc-fs-nfsd.mount:1: Assignment outside of section. Ignoring.
    systemd[1]: proc-fs-nfsd.mount: What= setting is missing. Refusing.
    

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content