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

Anders Larsson 1971935 at bugs.launchpad.net
Tue Jul 5 11:21:18 UTC 2022


Was able to reproduce the issue by installing autofs on a newly
installed system:

# apt-get install autofs                                                                                                                                                                                                
Reading package lists... Done                                                                                                                                                                                                                
Building dependency tree... Done                                                                                                                                                                                                             
Reading state information... Done                                                                                                                                                                                                            
The following additional packages will be installed:                                                                                                                                                                                         
  keyutils libnfsidmap1 nfs-common                                                                                                                                                                                                           
Suggested packages:                                                                                                                                                                                                                          
  watchdog                                                                                                                                                                                                                                   
The following NEW packages will be installed:                                                                                                                                                                                                
  autofs keyutils libnfsidmap1 nfs-common                                                                                                                                                                                                    
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.                                                                                                                                                                               
Need to get 620 kB of archives.                                                                                                                                                                                                              
After this operation, 2299 kB of additional disk space will be used.                                                                                                                                                                         
Do you want to continue? [Y/n] y       
[...]                                                                                                                                                                                                                                                                                                    
Selecting previously unselected package libnfsidmap1:amd64.                                                                                                                                                                                  
(Reading database ... 91286 files and directories currently installed.)                                                                                                                                                                      
Preparing to unpack .../libnfsidmap1_1%3a2.6.1-1ubuntu1_amd64.deb ...                                                                                                                                                                        
Unpacking libnfsidmap1:amd64 (1:2.6.1-1ubuntu1) ...                                                                                                                                                                                          
Selecting previously unselected package keyutils.                                                                                                                                                                                            
Preparing to unpack .../keyutils_1.6.1-2ubuntu3_amd64.deb ...                                                                                                                                                                                
Unpacking keyutils (1.6.1-2ubuntu3) ...                                                                                                                                                                                                      
Selecting previously unselected package nfs-common.                                                                                                                                                                                          
Preparing to unpack .../nfs-common_1%3a2.6.1-1ubuntu1_amd64.deb ...                                                                                                                                                                          
Unpacking nfs-common (1:2.6.1-1ubuntu1) ...                                                                                                                                                                                                  
Selecting previously unselected package autofs.
Preparing to unpack .../autofs_5.1.8-1ubuntu1_amd64.deb ...
Unpacking autofs (5.1.8-1ubuntu1) ...
Setting up libnfsidmap1:amd64 (1:2.6.1-1ubuntu1) ...
Setting up keyutils (1.6.1-2ubuntu3) ...
Setting up autofs (5.1.8-1ubuntu1) ...

Creating config file /etc/auto.master with new version

Creating config file /etc/auto.net with new version

Creating config file /etc/auto.misc with new version

Creating config file /etc/auto.smb with new version

Creating config file /etc/autofs.conf with new version

Creating config file /etc/default/autofs with new version
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Created symlink /etc/systemd/system/multi-user.target.wants/autofs.service → /lib/systemd/system/autofs.service.
Setting up nfs-common (1:2.6.1-1ubuntu1) ...

Creating config file /etc/idmapd.conf with new version

Creating config file /etc/nfs.conf with new version
Adding system user `statd' (UID 116) ...
Adding new user `statd' (UID 116) with group `nogroup' ...
Not creating home directory `/var/lib/nfs'.
Created symlink /etc/systemd/system/multi-user.target.wants/nfs-client.target → /lib/systemd/system/nfs-client.target.
Created symlink /etc/systemd/system/remote-fs.target.wants/nfs-client.target → /lib/systemd/system/nfs-client.target.
auth-rpcgss-module.service is a disabled or a static unit, not starting it.
nfs-idmapd.service is a disabled or a static unit, not starting it.
nfs-utils.service is a disabled or a static unit, not starting it.
proc-fs-nfsd.mount is a disabled or a static unit, not starting it.
rpc-gssd.service is a disabled or a static unit, not starting it.
rpc-statd-notify.service is a disabled or a static unit, not starting it.
rpc-statd.service is a disabled or a static unit, not starting it.
rpc-svcgssd.service is a disabled or a static unit, not starting it.
rpc_pipefs.target is a disabled or a static unit, not starting it.
var-lib-nfs-rpc_pipefs.mount is a disabled or a static unit, not starting it.
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for libc-bin (2.35-0ubuntu3) ...
Scanning processes...
Scanning linux images...

Running kernel seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this
host.

# systemctl status run-rpc_pipefs.mount
○ run-rpc_pipefs.mount - RPC Pipe File System
     Loaded: loaded (/run/systemd/generator/run-rpc_pipefs.mount; generated)
     Active: inactive (dead)
      Where: /run/rpc_pipefs
       What: sunrpc

-- 
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:
  Incomplete

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