last night's updates killed NFS server

When my TW, 15.3, Fedora, Debian, Mageia, etc. test boxes on LAN boot I have an alias to connect them manually to my server, this 15.2 PC, as needed, with content taking the form:

mount servername:/exportname

Since zypper up last night, attempts from clients to connect bring this response:

Created symlink /run/systemd/system/remote-fs.target.wants/rpc-statd.service -> /usr/lib/systemd/system/rpc-statd.service.
mount.nfs: requested NFS version or transport protocol is not supported

Only nfs string on client end in journal is:

<date/time> <hostname> kernel: Netfs 'nfs' registered for caching

On server, result is similarly uninformative:

# journalctl -b | grep nfs
Aug 03 01:14:34 00srv systemd[1]: nfs-server.service: Failed with result 'exit-code'.
# systemctl status nfs-server
● nfs-server.service - NFS server and services
   Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; enabled; vendor preset: disabled)
  Drop-In: /usr/lib/systemd/system/nfs-server.service.d
           └─nfsserver.conf, options.conf
           /run/systemd/generator/nfs-server.service.d
           └─order-with-mounts.conf
   Active: failed (Result: exit-code) since Tue 2021-08-03 01:14:34 EDT; 18h ago

Aug 03 01:14:34 00srv systemd[1]: nfs-server.service: Failed with result 'exit-code'.
# cat /etc/nfsserver.conf
cat: /etc/nfsserver.conf: No such file or directory
# lsmod | grep nfs
nfsd                  438272  1
auth_rpcgss           110592  1 nfsd
nfs_acl                16384  1 nfsd
lockd                 114688  1 nfsd
grace                  16384  2 nfsd,lockd
sunrpc                479232  5 nfsd,auth_rpcgss,lockd,nfs_acl
# uname -r
5.3.18-lp152.84-default
# showmount -e
clnt_create: RPC: Program not registered

Clients have fstab entries of the form:

servername:/exportname <mountpoint> nfs [ro,rw],noauto,nosuid,soft,rsize=8192,wsize=8192 0 0

/etc/exports on server was last written 6 years ago. Today is first failure ever noted.

What needs to be changed to fix this?

Is your Leap 15.2 server configured to provide NFSv4? See if this helps…
https://blog.sombex.com/2019/11/fix-requested-nfs-version-or-transport-protocol-not-supported.html

I can’t imagine it isn’t. I didn’t change anything in 6 years. All I did was zypper up. When I reboot into 15.1, everything is fine. When I reboot into TW, the problem is the same as 15.2. Neither booting an older kernel, nor removing ipv6.disable=1 from kernel cmdline helped either.

See if this helps…
https://blog.sombex.com/2019/11/fix-requested-nfs-version-or-transport-protocol-not-supported.html
I suppose it might if I ever had a network connection enabled on something booted to Windows. I tried setting Defaultvers=3 in /etc/nfsmount.conf anyway, but no effect apparent.

Here’s more from the journal, &:

Aug 04 01:57:44 00srv systemd-modules-load[175]: Failed to insert 'snd_pcm_oss': Key has expired
Aug 04 01:57:46 00srv systemd-sysv-generator[409]: stat() failed on /etc/init.d/lpd, ignoring: No such file or directory
Aug 04 01:57:48 00srv systemd-udevd[457]: Process '/usr/sbin/alsactl restore 0' failed with exit code 99.
Aug 04 01:57:48 00srv systemd-udevd[448]: Process '/usr/sbin/alsactl restore 1' failed with exit code 99.
Aug 04 01:57:49 00srv systemd[1]: Dependency failed for System Kernel Logging Service.
Aug 04 01:57:55 00srv rpc.statd[1150]: Failed to create listener xprt (statd, 1, udp6)
Aug 04 01:57:55 00srv rpc.statd[1150]: Failed to create listener xprt (statd, 1, tcp6)
Aug 04 01:57:55 00srv systemd[1]: nfs-server.service: Failed with result 'exit-code'.
Aug 04 01:57:46 00srv systemd[1]: Binding to IPv6 address not available since kernel does not support IPv6.
Aug 04 01:57:46 00srv systemd[1]: Binding to IPv6 address not available since kernel does not support IPv6.
Aug 04 01:57:55 00srv rpc.mountd[1130]: Could not make a socket: (97) Address family not supported by protocol
Aug 04 01:57:55 00srv rpc.mountd[1130]: Could not make a socket: (97) Address family not supported by protocol
Aug 04 01:57:55 00srv rpc.mountd[1130]: Could not make a socket: (97) Address family not supported by protocol
Aug 04 01:57:55 00srv rpc.mountd[1130]: Could not make a socket: (97) Address family not supported by protocol
Aug 04 01:57:55 00srv rpc.mountd[1130]: Could not make a socket: (97) Address family not supported by protocol
Aug 04 01:57:55 00srv rpc.mountd[1130]: Could not make a socket: (97) Address family not supported by protocol
Aug 04 01:57:44 00srv kernel: pmd_set_huge: Cannot satisfy [mem 0xf8000000-0xf8200000] with a huge-page mapping due to MTRR override.
Aug 04 01:57:44 00srv kernel: vesafb: cannot reserve video memory at 0xe0000000
Aug 04 01:57:55 00srv rpcbind[1136]: cannot create socket for udp6
Aug 04 01:57:55 00srv rpcbind[1136]: cannot create socket for tcp6
# systemctl status nfs-server.service
● nfs-server.service - NFS server and services
   Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; enabled; vendor preset: disabled)
  Drop-In: /usr/lib/systemd/system/nfs-server.service.d
           └─nfsserver.conf, options.conf
           /run/systemd/generator/nfs-server.service.d
           └─order-with-mounts.conf
   Active: failed (Result: exit-code) since Wed 2021-08-04 02:09:56 EDT; 5min ago
  Process: 1168 ExecStopPost=/usr/sbin/exportfs -f (code=exited, status=0/SUCCESS)
  Process: 1167 ExecStopPost=/usr/sbin/exportfs -au (code=exited, status=0/SUCCESS)
  Process: 1155 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=1/FAILURE)

Aug 04 02:09:56 00srv systemd[1]: nfs-server.service: Failed with result 'exit-code'.

Would you mind posting;

rpm -qa --last | head -n 50

and

journalctl -b -u nfs-server.service

From your server.

There are errors that indicate it’s trying to bind to ipv6 but that could be informative only and not the real reason it’s failing.

Let’s do a comparison to a Leap 15.3 NFS Server –


 # journalctl -b 0 --no-hostname --unit=nfs-server.service
-- Logs begin at Wed 2021-05-05 18:18:04 CEST, end at Wed 2021-08-04 18:37:15 CEST. --
Aug 04 14:14:27 systemd[1]: Starting NFS server and services...
Aug 04 14:14:28 systemd[1]: Finished NFS server and services.
 # 
 # cat /etc/exports
/home/xxx     *.zzz.ddd(rw,root_squash,sync,hide,no_subtree_check)
/zzz/yyy      *.zzz.ddd(rw,root_squash,sync,hide,no_subtree_check)
 # 
 # systemctl status nfs-server.service 
● nfs-server.service - NFS server and services
     Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; enabled; vendor preset: disabled)
    Drop-In: /usr/lib/systemd/system/nfs-server.service.d
             └─nfsserver.conf, options.conf
             /run/systemd/generator/nfs-server.service.d
             └─order-with-mounts.conf
     Active: active (exited) since Wed 2021-08-04 14:14:28 CEST; 4h 17min ago
   Main PID: 2303 (code=exited, status=0/SUCCESS)
      Tasks: 0 (limit: 4915)
     CGroup: /system.slice/nfs-server.service

Aug 04 14:14:27 xxx systemd[1]: Starting NFS server and services...
Aug 04 14:14:28 xxx systemd[1]: Finished NFS server and services.
 # 
 # lsmod | grep -i 'nfs'
nfsd                  438272  9
auth_rpcgss           110592  1 nfsd
nfs_acl                16384  1 nfsd
lockd                 118784  1 nfsd
grace                  16384  2 nfsd,lockd
sunrpc                483328  17 nfsd,auth_rpcgss,lockd,nfs_acl
 # 
 # uname -r
5.3.18-59.16-default
 # 


 > systemctl list-unit-files | grep -i 'nfs'
proc-fs-nfsd.mount                                                        static          -            
var-lib-nfs-rpc_pipefs.mount                                              static          -            
nfs-blkmap.service                                                        disabled        disabled     
nfs-idmapd.service                                                        static          -            
nfs-mountd.service                                                        static          -            
nfs-server.service                                                        enabled         disabled     
nfs-utils.service                                                         static          -            
nfs.service                                                               enabled         disabled     
nfsserver.service                                                         disabled        disabled     
nfs-client.target                                                         disabled        disabled     
 > 

The file ‘/etc/nfsserver.conf’ has been deprecated – currently ‘/etc/sysconfig/nfs’ handles the NFS server configuration – please note –


 > rpm --query --whatprovides /etc/sysconfig/nfs
file /etc/sysconfig/nfs is not owned by any package
 > 

It may well be that, the latest patches have broken your existing configuration files and, the solution may well be to use the YaST NFS Server configuration to generate the configuration files needed by systemd.

rpm -qa --last | head -n 50 | susepaste

https://paste.opensuse.org/1923251

journalctl -b -u nfs-server.service

– Logs begin at Thu 2017-09-07 21:20:47 EDT, end at Wed 2021-08-04 03:26:20 EDT. –
Aug 04 03:15:12 00srv systemd[1]: nfs-server.service: Failed with result ‘exit-code’.

I moved /etc/sysconfig/nfs, then:

# systemctl start nfs-server.service
# systemctl status nfs-server.service
● nfs-server.service - NFS server and services
   Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; enabled; vendor preset: disabled)
  Drop-In: /usr/lib/systemd/system/nfs-server.service.d
           └─nfsserver.conf, options.conf
           /run/systemd/generator/nfs-server.service.d
           └─order-with-mounts.conf
   Active: active (exited) since Wed 2021-08-04 15:58:26 EDT; 5s ago
  Process: 1156 ExecStopPost=/usr/sbin/exportfs -f (code=exited, status=0/SUCCESS)
  Process: 1155 ExecStopPost=/usr/sbin/exportfs -au (code=exited, status=0/SUCCESS)
  Process: 6631 ExecStart=/usr/sbin/rpc.nfsd $NFSD_OPTIONS (code=exited, status=0/SUCCESS)
  Process: 6630 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS)
 Main PID: 6631 (code=exited, status=0/SUCCESS)
    Tasks: 0
   CGroup: /system.slice/nfs-server.service

It’s fixed! Thanks to you both!!! :slight_smile:

FWIW, the only changes between the (moved) nfs file and the prior version of it were commented lines. :stuck_out_tongue: