4

I tried running systemctl unmask idmapd and then service idmapd restart, but it still gives me the same error.

I'm on Ubuntu 16.04 64-bit and my server is also Ubuntu 16.04 64-bit.

When I check if it's running, I get this:

service idmapd status
● idmapd.service
   Loaded: masked (/dev/null; bad)
   Active: inactive (dead)

And for the other one:

$ service nfs-idmapd status 
● nfs-idmapd.service - NFSv4 ID-name mapping service
   Loaded: loaded (/lib/systemd/system/nfs-idmapd.service; static; vendor preset: enabled)
   Active: inactive (dead)
$ service nfs-idmapd start 
Failed to start nfs-idmapd.service: Unit nfs-server.service not found.
4
  • 1
    Is nfs-idmapd the same as idmapd? The idmapd.service file is installed as /dev/null however, rpc.idmapd should be running if nfs-idmapd is loaded, active, and running.
    – mchid
    Aug 17, 2016 at 13:22
  • Good question, @mchid. I tired (re)starting the nfs-idmapd service and got this error "Failed to start nfs-idmapd.service: Unit nfs-server.service not found". Same for rpc.idpapd. Aug 17, 2016 at 18:50
  • Looks like I may need to reinstall the server completely and start fresh. Sep 13, 2016 at 15:35
  • Do you have installed nfs-kernel-server package on server and client? On my 18.04 client, I need this package on the client too to get the nfs-idmapd.service running. Seems to be a bug, because I need a server package on a client to get a NFS mount with nfsv4??? Oct 14, 2018 at 21:17

2 Answers 2

4

You need to use sudo to unmask and mask services.

The command:

sudo systemctl unmask idmapd

should do the trick. Then:

sudo service idmapd start

or

sudo service idmapd restart

UPDATE

I believe nfs-idmapd replaces this service. You will need the following packages:

sudo apt-get update
sudo apt-get install --reinstall nfs-common nfs-kernel-server

If that doesn't work, purge the offending packages and then reinstall them.

sudo apt-get purge nfs-common nfs-kernel-server
sudo apt-get install nfs-common nfs-kernel-server
4
  • Nope, still getting the same error because it still asks for my password both ways. Aug 12, 2016 at 14:23
  • 1
    @SvetlanaBelkin sudo commands always require a password.
    – Elder Geek
    Sep 6, 2016 at 21:59
  • Read my comment. Sep 6, 2016 at 22:01
  • I tried the updated part and still same error. Sep 13, 2016 at 15:25
2
+50

looks like your nfs-server package has problems

Failed to start nfs-idmapd.service: Unit nfs-server.service not found.

suggests that either the nfs-server.service file is missing or its in the wrong place. You could try to start it manually to test this theory

systemctl nfs-server start

have a look for it in /etc/systemd/ to see if you cant find it, it you are lucky its just in the wrong target folder

find /etc/systemd/ -name nfs-server.service
11
  • Got this: /etc/systemd/system/multi-user.target.wants/nfs-server.service . Sep 7, 2016 at 18:14
  • so you have a script to start it , what happens if you run the systemctl command to start it ?
    – Amias
    Sep 8, 2016 at 9:22
  • I don't have one, I have a freshly installed Ubuntu Server with the basic set up for NFS. Sep 8, 2016 at 15:19
  • i think you need to apt-get install either the nfs-kernel-server or nfs-server package
    – Amias
    Sep 8, 2016 at 16:18
  • I have those installed. Sep 9, 2016 at 13:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .