I tired 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:

    svetlana@svetlana-laptop:~$ 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)
svetlana@svetlana-laptop:~$ service nfs-idmapd start 
Failed to start nfs-idmapd.service: Unit nfs-server.service not found.
share|improve this question
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 '16 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. – Svetlana Belkin Aug 17 '16 at 18:50
    
Looks like I may need to reinstall the server completely and start fresh. – Svetlana Belkin Sep 13 '16 at 15:35
up vote 1 down vote accepted
+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
share|improve this answer
    
Got this: /etc/systemd/system/multi-user.target.wants/nfs-server.servi‌​ce . – Svetlana Belkin Sep 7 '16 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 '16 at 9:22
    
I don't have one, I have a freshly installed Ubuntu Server with the basic set up for NFS. – Svetlana Belkin Sep 8 '16 at 15:19
    
i think you need to apt-get install either the nfs-kernel-server or nfs-server package – Amias Sep 8 '16 at 16:18
    
I have those installed. – Svetlana Belkin Sep 9 '16 at 13:43

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
share|improve this answer
    
Nope, still getting the same error because it still asks for my password both ways. – Svetlana Belkin Aug 12 '16 at 14:23
    
@SvetlanaBelkin sudo commands always require a password. – Elder Geek Sep 6 '16 at 21:59
    
Read my comment. – Svetlana Belkin Sep 6 '16 at 22:01
    
I tried the updated part and still same error. – Svetlana Belkin Sep 13 '16 at 15:25

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.