EREMOTE
Linux / POSIXERRORNotableFilesystemHIGH confidence
Object Is Remote
Production Risk
Indicates nested or incorrectly configured NFS/distributed filesystem mounts.
What this means
EREMOTE (errno 66) is returned by NFS and certain distributed filesystem operations when an object exists on a remote host and the operation cannot be performed locally.
Why it happens
- 1Attempting to mount a remote path that is already a remote mount
- 2NFS operation on a path that resolves to a remote resource
How to reproduce
NFS mount of a path that is itself an NFS mount.
trigger — this will error
trigger — this will error
// Nesting NFS mounts across too many levels
mount("nfs_server:/path", "/mnt", "nfs", 0, opts);
// Returns -1, errno = EREMOTE if path is remoteexpected output
mount: Object is remote (EREMOTE)
Fix
Mount the actual source directly
WHEN When NFS returns EREMOTE
Mount the actual source directly
# Find the actual export source showmount -e nfs_server # Mount the root export directly instead of a nested path
Why this works
Mount the NFS export source directly rather than a path that itself points to another NFS server.
Sources
Official documentation ↗
Linux Programmer Manual errno(3)
Content generated with AI assistance and reviewed for accuracy. Found an error? hello@errcodes.dev