nfs shares not mounting / rpcbind issue

Kernels & Hardware, configuring network, installing services

nfs shares not mounting / rpcbind issue

Postby maximus1978 » 2020-07-01 12:30

The issue was with rpcbind.service

Failed to preset unit: Unit file /etc/systemd/system/rpcbind.service is
masked.

I am not sure why it became masked. I sort of remember it was after I updated packages in the system.

This really helped.

https://blog.ruanbekker.com/blog/2017/1 ... n-systemd/

My nfs shared stopped mapping.

Code: Select all
Failed to preset unit: Unit file /etc/systemd/system/rpcbind.service is
masked.
/usr/bin/deb-systemd-helper: error: systemctl preset failed on
rpcbind.service: No such file or directory
rpcbind.service is a disabled or a static unit, not starting it.
Job for rpcbind.socket failed.
See "systemctl status rpcbind.socket" and "journalctl -xe" for details.


Fixed it with this.....

Code: Select all
sudo rm /lib/systemd/system/rpcbind.service

sudo aptitude reinstall rpcbind

I re-installed nfs-kernel-server and everything is working now.

systemctl status rpcbind
● rpcbind.service - RPC bind portmap service
   Loaded: loaded (/lib/systemd/system/rpcbind.service; enabled; vendor
preset: enabled)
   Active: active (running) since Wed 2020-07-01 08:26:04 EDT; 48min
ago
     Docs: man:rpcbind(8)
 Main PID: 2958 (rpcbind)
    Tasks: 1 (limit: 4915)
   Memory: 1008.0K
   CGroup: /system.slice/rpcbind.service
           └─2958 /sbin/rpcbind -f -w


I found this helpful.

http://0pointer.de/blog/projects/three-levels-of-off
Last edited by maximus1978 on 2020-07-06 01:06, edited 2 times in total.
maximus1978
 
Posts: 91
Joined: 2015-03-19 12:49

Re: nfs shares not mounting / rpcbind issue

Postby milomak » 2020-07-04 23:45

i think what would be helpful with all your posts, is if you also described what the problem was that led you to post these solutions you have been posting

it seems you had some problems, searched the internet, and found solutions

the errors you were getting and that type of information will probably make these really useful
Desktop: iMac Late-2015 27" 5K Retina (17,1 - 3.3GHz) - MacOS and Windows 10 (Bootcamp)/ Sid (External SSD)
Laptop: Lenovo ideapad Y700-15ISK [nVidia Optimus] (64-bit) - Sid, Win10, Solus
Kodi Box: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid
milomak
 
Posts: 2044
Joined: 2009-06-09 22:20

Re: nfs shares not mounting / rpcbind issue

Postby zenlord » 2020-07-15 14:39

rpcbind is not required if you're using NFSv4 - that is probably why it was masked. I would not recommend using anything else unless it's for a personal home network, protected from the outside world.
zenlord
 
Posts: 76
Joined: 2009-06-17 15:23


Return to System configuration

Who is online

Users browsing this forum: sunrat and 17 guests

fashionable