Too many levels of symbolic links (ELOOP)
A symlink points to itself, directly or through a chain, so path resolution loops.
Seen on:
Linux
Meaning
Usually a symlink created with a relative target from the wrong directory (ln -s file file) or two links pointing at each other; also broken NFS/autofs mounts.
Common causes
- Symlink created with the same source and destination
- Relative target resolved from the link’s directory, not your current one
- Circular links between directories
- NFS/autofs mount loops
⚡ Quick fix
- Inspect: ls -l and readlink -f
- Recreate with an absolute target: ln -sfn /abs/path link
- Remove the circular link
Detailed fix by platform
Linux
- bash
ls -l /etc/nginx/sites-enabled/ namei -l /etc/nginx/sites-enabled/site.conf sudo ln -sfn /etc/nginx/sites-available/site.conf /etc/nginx/sites-enabled/site.conf
How to diagnose
- Chain — namei -l path
- Target — Absolute or relative?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in Linux
Other ways to find it
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
Was this page helpful?
Report a correction or suggest an improvement
Last updated 7 Oct 2026