Skip to content

NFS mount program didn't pass remote address #374

Open
@hugoallaine

Description

@hugoallaine

Hi there,
I discovered this awesome project and tried it on a Kubernetes cluster running on NixOS. Unfortunately, I have an error in the events of my namespace:

0s (x5 over 8s) Warning FailedMount Pod/nfs-subdir-external-provisioner-547d9f6c74-5jrlw MountVolume.SetUp failed for volume "pv-nfs-subdir-external-provisioner" : mount failed: exit status 32 Mounting command: mount Mounting arguments: -t nfs -o nfsvers=4.2 192.168.1.202:/ /var/lib/kubelet/pods/3d7a44c3-7cb4-4085-b0b0-d85ade2fe015/volumes/kubernetes.io~nfs/pv-nfs-subdir-external-provisioner Output: mount: /var/lib/kubelet/pods/3d7a44c3-7cb4-4085-b0b0-d85ade2fe015/volumes/kubernetes.io~nfs/pv-nfs-subdir-external-provisioner: échec de fsconfig() :NFS: mount program didn't pass remote address. dmesg(1) peut avoir plus d'informations après un échec de l'appel système du montage.

After some research on the internet, I tried to add some lines on my NixOS configuration such as installing the nfs-utils package and things related to rpcbind but nothing changes. The pod gives the same error all times.
I noticed that the NFS share is working when I mount it manually with sudo but I cannot mount it without as a regular user (error: mount.nfs: not installed setuid - "user" NFS mounts not supported.). My guess was that mounting NFS in Kubernetes is done without root access but when I tried with privileged: true in the Helm chart, nothing changes again.

So, I don't know if it's a NixOS related issue or a nfs-subdir-external-provisioner one. I'll probably open the same issue on nixpkgs repo but I wanted some advice before to be sure.

Useful informations:

  • Kubernetes 1.33 (latest now)
  • Helm 3.17.1
  • 3 nodes cluster on NixOS 25.05

Don't hesitate to ask me more information on my setup.

Please help me. Thanks! (French speaker, please correct me if I'm wrong)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions