nfs-ganesha 4.0.12 mount failing with No such file or directory
by Drew Eckhardt
Running nfs-ganesha 4.0.12 in a Debian Bookworm container, I get mount failures
mount -t nfs -o proto=tcp,vers=4 localhost:/exports /mount_nfs
mount.nfs: mounting localhost:/exports failed, reason given by server:
No such file or directory
from within the container and the host operating system when I've
exposed port 2049 for NFS v4 although I've exported the directory and
the ganesha log output reflects this.
/exports is the root of an ext4 file system
Any ideas? The failure mode is the same if I try mounting a directory
which does not exist and is not exported.
Export clause:
EXPORT {
# Export Id (mandatory, each EXPORT must have a unique Export_Id)
Export_Id = 1;
# Exported path (mandatory)
Path = "/exports";
# Pseudo Path (required for NFS v4)
Pseudo = "/exports";
# Access control options
Access_Type = NONE;
#Access_Type = RW;
Squash = No_Root_Squash;
# NFS protocol options
Transports = UDP, TCP;
Protocols = 3, 4;
SecType = sys;
Disable_ACL = false;
# changed to false, otherwise normal users can't access
directories where gid=0
Manage_Gids = false;
#to test disable getattr cache
#Attr_Expiration_Time = 0;
Anonymous_uid = 65534;
Anonymous_gid = 65534;
CLIENT {
Clients = 127.0.0.1, 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16;
Access_Type = RW;
}
Filesystem_id = 1.1;
# Exporting FSAL
FSAL {
name = VFS;
}
}
Apparently relevant log messages follow
Messages from startup
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] EXPORT :F_DBG :get export ref for id 1 /exports,
refcount = 2
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] EXPORT :F_DBG :Releasing refstr /exports
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] EXPORT :F_DBG :Releasing refstr /exports
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] EXPORT :F_DBG :Cleaning paths for 1 fullpath
/exports pseudopath /exports
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] EXPORT :F_DBG :Final paths for 1 fullpath
/exports pseudopath /exports
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] FSAL :F_DBG :statfs of /exports pathlen 0
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] FSAL :INFO :Added filesystem 0x55dede7e78d0
/exports namelen=255 dev=8.112
fsid=0x3646939e9566547c.0x385d59e5de1472af
3910975635738481788.4061501282766320303 type=ext4
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] FSAL :INFO :Added filesystem 0x55dede7e78d0
/exports namelen=255 dev=8.112
fsid=0x3646939e9566547c.0x385d59e5de1472af
3910975635738481788.4061501282766320303 type=ext4
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] FSAL :F_DBG :PROCESS CLAIM FS 0x55dede7e78d0
/exports parent 0x55dede7e77d0 / children? NO siblings? YES FSAL NONE
exports? NO private (nil) claims ALL 0 ROOT 0 SUBTREE 0 CHILD 0 TEMP 0
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] FSAL :F_DBG :VFS CLAIM FS FS 0x55dede7e78d0
/exports parent 0x55dede7e77d0 / children? NO siblings? YES FSAL NONE
exports? NO private (nil) claims ALL 0 ROOT 0 SUBTREE 0 CHILD 0 TEMP 0
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] FSAL :INFO :FSAL VFS Claiming 0x55dede7e78d0
/exports
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] FSAL :F_DBG :Attempting claim type CLAIM_ROOT by
FSAL VFS on filesystem /exports
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] FSAL :F_DBG :Completing claim type CLAIM_ROOT by
FSAL VFS on filesystem /exports
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] FSAL :F_DBG :PROCESS CLAIM FINISHED FS
0x55dede7e78d0 /exports parent 0x55dede7e77d0 / children? NO siblings?
YES FSAL VFS exports? YES private 0x4 claims ALL 1 ROOT 1 SUBTREE 0
CHILD 0 TEMP 0
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] FSAL :INFO :Root fs for export /exports is
/exports
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] EXPORT :F_DBG :put export ref for id 1 /exports,
refcount = 1
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] EXPORT :F_DBG :Releasing refstr /exports
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] EXPORT :F_DBG :Releasing refstr /exports
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] EXPORT :F_DBG :Releasing refstr /exports
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] EXPORT :F_DBG :Releasing refstr /exports
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] EXPORT :M_DBG :EXPORT
(options=03302000/4771f1ff no_root_squash, ----, 34-, UDP, TCP, ----,
No Manage_Gids, , anon_uid= 65534, anon_gid= 65534,
, sys)
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] EXPORT :M_DBG :EXPORT_DEFAULTS
(options=00000000/00000000 , , , ,
, , , ,
)
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] EXPORT :M_DBG :default options
(options=03003002/ffffffff root_squash , ----, ---, UDP, TCP, ----,
No Manage_Gids, -- Deleg, anon_uid= -2, anon_gid= -2, expire=
60, none, sys)
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] EXPORT :M_DBG :Final options
(options=03302000/ffffffff no_root_squash, ----, 34-, UDP, TCP, ----,
No Manage_Gids, -- Deleg, anon_uid= 0, anon_gid= 0, expire=
0, sys)
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] RW LOCK :F_DBG :Unlocked 0x7f60e544a4e0
(&export_opt_lock) at
/usr/src/nfs-ganesha-4.0.12/src/support/exports.c:1179
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] RW LOCK :F_DBG :Unlocked 0x55dede7dfe90
(&exp->lock) at /usr/src/nfs-ganesha-4.0.12/src/support/exports.c:1182
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] EXPORT :F_DBG :Processing 0x55dede7dfd40
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] CONFIG :WARN :A protocol is specified for export
1 that is not enabled in NFS_CORE_PARAM, fixing up
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] EXPORT :F_DBG :Searching for export matching
pseudo path /exports
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] EXPORT :F_DBG :Searching for export matching
path /exports
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] EXPORT :F_DBG :get export ref for id 1 /exports,
refcount = 2
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] EXPORT :M_DBG :0x55dede7e0760 NETWORK_CLIENT:
127.0.0.1/32 (options=033031e2/000001e0 , RWrw, ,
, , , ,
, )
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] EXPORT :M_DBG :0x55dede7e0860 NETWORK_CLIENT:
10.0.0.0/8 (options=033031e2/000001e0 , RWrw, ,
, , , , ,
)
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] EXPORT :M_DBG :0x55dede7e4340 NETWORK_CLIENT:
172.16.0.0/12 (options=033031e2/000001e0 , RWrw, ,
, , , ,
, )
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] EXPORT :M_DBG :0x55dede7e4440 NETWORK_CLIENT:
192.168.0.0/16 (options=033031e2/000001e0 , RWrw, ,
, , , ,
, )
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] CONFIG :INFO :Export 1 created at pseudo
(/exports) with path (/exports) and tag ((null)) perms
(options=03002000/4771f1ff no_root_squash, ----, ---, UDP, TCP, ----,
No Manage_Gids, , anon_uid= 65534, anon_gid= 65534,
, sys)
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] CONFIG :INFO :Export 1 has 4 defined clients
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] EXPORT :F_DBG :put export ref for id 1 /exports,
refcount = 1
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] CONFIG :INFO :Export 1 has 4 defined clients
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] EXPORT :F_DBG :put export ref for id 1 /exports,
refcount = 1
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] EXPORT :M_DBG :RESULT 0x55dede7dfd40 Export 1
pseudo (/exports) with path (/exports) and tag ((null)) perms
(options=03002000/4771f1ff no_root_squash, ----, ---, UDP, TCP, ----,
No Manage_Gids, , anon_uid= 65534, anon_gid= 65534,
, sys)
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] EXPORT :F_DBG :Searching for export matching
pseudo path /
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] EXPORT :F_DBG :Comparing / 1 to /exports 8
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] EXPORT :DEBUG :Allocating Pseudo root export
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] EXPORT :F_DBG :Allocated export 0x55dede7ed030
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] EXPORT :INFO : NETWORK_CLIENT: 127.0.0.1/32
(options=033031e2/000001e0 , RWrw, , ,
, , , ,
)
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] EXPORT :INFO : NETWORK_CLIENT: 10.0.0.0/8
(options=033031e2/000001e0 , RWrw, , ,
, , , ,
)
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] EXPORT :INFO : NETWORK_CLIENT: 172.16.0.0/12
(options=033031e2/000001e0 , RWrw, , ,
, , , ,
)
2025-05-18 02:47:29 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [none] EXPORT :INFO : NETWORK_CLIENT: 192.168.0.0/16
(options=033031e2/000001e0 , RWrw, , ,
, , , ,
)
Messages from mount:
2025-05-18 02:48:26 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [::ffff:127.0.0.1] NFS4 :DEBUG :name=exports
2025-05-18 02:48:26 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [::ffff:127.0.0.1] NFS READDIR :F_DBG :Look in cache
exports, trust content yes
2025-05-18 02:48:26 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [::ffff:127.0.0.1] NFS READDIR :F_DBG :Lookup exports
2025-05-18 02:48:26 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [::ffff:127.0.0.1] NFS READDIR :F_DBG :entry not found
exports
2025-05-18 02:48:26 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [::ffff:127.0.0.1] NFS READDIR :F_DBG :Entry
0x55dede7ea9f0 Don't Trust negative cache
2025-05-18 02:48:26 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [::ffff:127.0.0.1] NFS READDIR :F_DBG
:mdcache_avl_lookup exports failed trust negative no
2025-05-18 02:48:26 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [::ffff:127.0.0.1] NFS READDIR :F_DBG :Entry
0x55dede7ea9f0 Don't Trust negative cache
2025-05-18 02:48:26 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [::ffff:127.0.0.1] NFS READDIR :F_DBG :Try again
exports
2025-05-18 02:48:26 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [::ffff:127.0.0.1] NFS READDIR :F_DBG :Look in cache
exports, trust content yes
2025-05-18 02:48:26 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [::ffff:127.0.0.1] NFS READDIR :F_DBG :Lookup exports
2025-05-18 02:48:26 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [::ffff:127.0.0.1] NFS READDIR :F_DBG :entry not found
exports
2025-05-18 02:48:26 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [::ffff:127.0.0.1] NFS READDIR :F_DBG :Entry
0x55dede7ea9f0 Don't Trust negative cache
2025-05-18 02:48:26 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [::ffff:127.0.0.1] NFS READDIR :F_DBG
:mdcache_avl_lookup exports failed trust negative no
2025-05-18 02:48:26 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [::ffff:127.0.0.1] NFS READDIR :F_DBG :Entry
0x55dede7ea9f0 Don't Trust negative cache
2025-05-18 02:48:26 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [::ffff:127.0.0.1] NFS READDIR :DEBUG :Cache Miss
detected for exports
2025-05-18 02:48:26 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [::ffff:127.0.0.1] NFS READDIR :DEBUG :lookup exports
failed with No such file or directory
2025-05-18 02:48:26 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [::ffff:127.0.0.1] NFS4 :DEBUG :Status of OP_LOOKUP in
position 2 = NFS4ERR_NOENT, op response size is 4 total response size
is 92
2025-05-18 02:48:26 : nfs-ganesha-server-8c78964b9-n9k4z :
ganesha.nfsd : [::ffff:127.0.0.1] NFS4 :DEBUG :End status =
NFS4ERR_NOENT lastindex = 3
1 week, 6 days