Article View: linux.debian.bugs.dist
Article #1509Bug#1150964: nfs-kernel-server: autostart or listeners won't start with nfsdctl reporting "Error: Invalid argument"
From: Salvatore Bonaccorso
Date: Wed, 21 Oct 2026 09:20
Date: Wed, 21 Oct 2026 09:20
64 lines
4095 bytes
4095 bytes
Control: severity -1 normal
Control: tags -1 + moreinfo
Hi Christian,
On Thu, Oct 15, 2026 at 11:33:02AM +0200, Christian Montanari wrote:
> Package: nfs-kernel-server
> Version: 1:3.1.1-1
> Severity: important
> Tags: upstream
>
> running "nfsdctl autostart" fails to start any kernel nfs servers
> , this , reporting "nfsdctl: Error: Invalid argument".
>
> same with trying instanciating a listener as the event kernel trace for "nfsdctl listener +tcp::2049" shows...:
>
> "...
> # tracer: function_graph
> #
> # CPU DURATION FUNCTION CALLS
> # | | | | | | |
> 3) | /* netlink_extack: msg=Unknown attribute type */
> ..."
> ("nfsdctl listener +tcp:127.0.0.1:2049" is with same invalid argument).
>
> using commands ...:
>
> cd /sys/kernel/tracing # as root
> echo nfsd_nl_listener_set_doit > set_graph_function
> echo function_graph > current_tracer
> echo 1 > options/funcgraph-retval # if your kernel has it
> echo 1 > events/netlink/netlink_extack/enable
> echo 1 > tracing_on
> nfsdctl listener +tcp::2049
> echo 0 > tracing_on
> cat trace
>
>
> I had a jugle with https://claude.ai/chat/feb4de00-a80d-4063-b9d6-eec0417ce2f9 ,
>
> and it pointed out to look for some mismatch with /usr/include/linux/nfsd_netlink.h and the one of kernel releases,
>
> since kernel users interactions are done using agreed and well ordered codes...(must be with the 'NFSD_A_' families).
>
> those must have been sabotaged to avoid backward compatibility....!
>
> (I speculate also that, consequently, "mount -t nfs4 -o sec=krb5..." will fail client side with same error.)
The systemd service has on purpose the following constructs:
ExecStart=/bin/sh -c '/usr/sbin/nfsdctl autostart || /usr/sbin/rpc.nfsd'
ExecStop=/bin/sh -c '/usr/sbin/nfsdctl threads 0 || /usr/sbin/rpc.nfsd 0'
so when the netlink support is not yet there in the kernel the nfsd
still get started (and work).
If you do not agree on how it is implemented upstream, because you
cannot use nfsdctl directly to autostart the nfsd, can you please
approach linux-nfs? Please loop back here your report.
Thank you already!
Regards,
Salvatore
Technical Details
Message-ID:
<NQAEh-6WYL-3@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news.szaf.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<NOqg1-5EZJ-1@gated-at.bofh.it> <NOqg1-5EZJ-1@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news.szaf.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Salvatore Bonaccorso <carnil@debian.org> Newsgroups: linux.debian.bugs.dist,linux.debian.kernel Subject: Bug#1150964: nfs-kernel-server: autostart or listeners won't start with nfsdctl reporting "Error: Invalid argument" Date: Wed, 21 Oct 2026 11:20:01 +0200 Message-ID: <NQAEh-6WYL-3@gated-at.bofh.it> References: <NOqg1-5EZJ-1@gated-at.bofh.it> <NOqg1-5EZJ-1@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Wed Oct 21 09:15:13 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.7 Reply-To: Salvatore Bonaccorso <carnil@debian.org>, 1150964@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: debian-kernel@lists.debian.org X-Debian-Pr-Message: followup 1150964 X-Debian-Pr-Package: nfs-kernel-server X-Debian-Pr-Keywords: upstream X-Debian-Pr-Source: nfs-utils MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Debian-User: carnil X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1997879 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 64 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Wed, 21 Oct 2026 11:12:47 +0200 X-Original-Message-ID: <atiCDwYEN_kffdda@eldamar.lan> X-Original-References: <179205678248.1665775.17882289413091973728.reportbug@choucas.lan> <179205678248.1665775.17882289413091973728.reportbug@choucas.lan>