[Bug 1971935] Re: Invalid pipefs-directory prevents rpc-gssd.service from starting

Andreas Hasenack 1971935 at bugs.launchpad.net
Tue Jul 5 20:36:57 UTC 2022


I spent quite some time gathering information about this today, and
narrowed it down to this:

if autofs is setup before nfs-common, we get the incorrect rpc_pipefs
mount point. If nfs-common is setup first, then it's fine.

Furthermore, for some reason if I purge nfs-common and autofs, and
reinstall, this attempt gets the "correct" ordering and the rpc_pipefs
mountpoint is correct.

In Debian it's even more strange: after sudo apt install autofs, you get
rpc_pipefs mounted twice: once by the generator, and once by that var-
lib mount unit.

As a temporary workaround for now, I'd suggest to instead of "apt
install autofs", and rely on that to pull in nfs-common, to first "apt
install nfs-common", and then the rest that is needed/wanted.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to nfs-utils in Ubuntu.
https://bugs.launchpad.net/bugs/1971935

Title:
  Invalid pipefs-directory prevents rpc-gssd.service from starting

Status in nfs-utils package in Ubuntu:
  Confirmed

Bug description:
  Ubuntu 22.04 Server
  Package version: 1:2.6.1-1ubuntu1

  Package nfs-common/nfs-utils provides /etc/nfs.conf and /lib/systemd/system/rpc-gssd.service.
  /etc/nfs.conf (and seems to be copied from /usr/share/nfs-common/conffiles/nfs.conf) has the configuration:
  ...
  [general]
  pipefs-directory=/run/rpc_pipefs
  ...

  When attempting to start rpc-gssd it gives the following error:
  ...
  ERROR: opendir(/run/rpc_pipefs) failed: No such file or directory
  ...

  There is a systemd unit called var-lib-nfs-rpc_pipefs.mount which
  mounts this directory as /var/lib/nfs/rpc_pipefs. However this does
  not match with the configuration in nfs.conf

  It's worth mentioning that sometimes it seems a systemd unit is
  generated (run-rpc_pipefs.mount) which ensures /run/rpc_pipefs is
  created and everything works as expected. Seems to be random.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1971935/+subscriptions




More information about the foundations-bugs mailing list