Too many levels of symbolic links (ELOOP)
A symlink points to itself, directly or through a chain, so path resolution loops.
Too many levels of symbolic linksELOOP: too many symbolic links encountered 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
Where this error sits
Origin: Platform & cloud. Errors that are often confused with or caused by this one (click to open):
🧠 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.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 13 Oct 2026