Nginx Serving Old Release After Symlink Swap (open_file_cache)
Aggressive `open_file_cache` or `disable_symlinks` delayed picking up new symlink target.
Runs locally in browser
Free · No login
Independently Verified 2026-11-25
v4.1.0
Identifier: Nginx Serving Old Release After Symlink Swap (open_file_cache)
Platform: Nginx
Common Root Causes:
- Aggressive `open_file_cache` or `disable_symlinks` delayed picking up new symlink target.
Interactive Diagnostic Checklist
Verified Solutions:
- Keep `open_file_cache_valid` short (or off during deploys) and run `nginx -s reload` after atomic swap.
Safe Diagnostic Command:
readlink -f /var/www/omnisolveatlas/current
Warning: Verify configuration changes in staging or with dry-run flags (e.g. nginx -t) before reloading production services.
Technical Explanation
Aggressive `open_file_cache` or `disable_symlinks` delayed picking up new symlink target. Recommended diagnostic: `readlink -f /var/www/omnisolveatlas/current`. Remediation: Keep `open_file_cache_valid` short (or off during deploys) and run `nginx -s reload` after atomic swap.
Worked Examples
- Run `readlink -f /var/www/omnisolveatlas/current` to verify root cause before applying the remediation.
Limitations & Assumptions
- Always verify configuration changes in staging or with dry-run flags (e.g. `nginx -t`) before reloading production services.
Source References & Verification
Resource ID: err-nginx-symlink-atomic-cache-stale · Independently verified: 2026-11-25