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.