Configuration Issues
Policy File Not Loading
Symptom: Anubis uses default policy instead of custom policy file. Check:-
File path wrong:
-
File permissions:
-
YAML syntax errors:
Regular Expression Errors
Symptom: Error on startup:-
Trailing newline (
ErrRegexEndsWithNewline): -
Unescaped special characters:
-
Invalid regex syntax:
- Use regex101.com (select Golang flavor)
- Test with
--debug-benchmark-jsflag
Configuration Validation Errors
Symptom: Startup fails with validation error.No Bot Rules Defined
Bot Must Have Name
Bot Must Have Matcher
Invalid CIDR
Storage Issues
BoltDB Permission Denied
Symptom:BoltDB File Lock
Symptom:Valkey Connection Failed
Symptom:-
Wrong URL:
-
Network policy blocking:
- Check firewall rules
- Verify Kubernetes NetworkPolicy
- Check security groups (cloud)
-
Authentication required:
S3 Access Denied
Symptom:Runtime Issues
Challenges Not Working
Symptom: Users see challenge page but it doesn’t solve. Check browser console for JavaScript errors. Common causes:- JavaScript disabled: Use
metarefreshalgorithm - CORS issues: Check proxy configuration
- Ad blocker: Whitelist Anubis
- CSP headers: Ensure challenge scripts can run
Users Keep Getting Challenged
Symptom: Users solve challenge but are challenged again on next request. Causes:- Cookies disabled: Check browser settings
-
Cookie domain mismatch:
- Signing key changed: Users need to re-solve after key rotation
-
JWT expired: Check
--cookie-expiration-time - IP restriction enabled: Mobile users change IPs
High Memory Usage
Symptom: Anubis process using excessive memory. Check:-
Memory storage backend: No size limits
- Fix: Use bbolt or valkey
-
DNS cache growth: Large cache with high DNS TTL
- Fix: Lower DNS TTL:
- Fix: Lower DNS TTL:
-
Goroutine leak: Check goroutine count
High CPU Usage
Symptom: Anubis using 100% CPU. Causes:-
Challenge difficulty too high:
- Too many requests: Scale horizontally
- Expensive CEL expressions: Optimize rules
Network Issues
Client IP Always Shows Internal IP
Symptom:X-Real-IP shows proxy IP, not client IP.
Causes:
- Missing
X-Forwarded-Forheader: Proxy not configured - Using
--use-remote-address: Only for bare metal
DNS Lookups Failing
Symptom:verifyFCrDNS() always fails.
Check:
- DNS server unreachable: Check
/etc/resolv.conf - Firewall blocking port 53: Allow UDP/TCP 53
- DNS cache poisoned: Restart Anubis
Performance Issues
Slow Challenge Response
Symptom: Challenge page takes seconds to load. Causes:- Storage backend latency: Check backend health
- DNS lookups in expressions: Cache results
- Complex CEL expressions: Simplify rules
High Latency
Symptom: All requests slow through Anubis. Causes:- Backend unreachable: Check target server
- TLS handshake slow: Use
--target-insecure-skip-verify(dev only) - Storage backend slow: Monitor storage metrics
Key and JWT Issues
Generating Random Key Warning
Symptom:Key Validation Failed
Symptom:JWT Signature Invalid
Symptom: Users challenged every request despite having cookie. Causes:- Key changed: Signing key rotated
- Multi-instance with different keys: Each instance using random key
- Clock skew: JWT
nbf(not before) in future
- Use same key across all instances
- Sync system clocks (NTP)
Container/Kubernetes Issues
Container Exits Immediately
Symptom: Container starts then exits. Check logs:- Missing target:
--targetnot set or invalid - Configuration error: Invalid policy file
- Port already bound: Another process using port 8923
Health Check Failing
Symptom: Kubernetes pod stuck inCrashLoopBackOff.
Check:
- Increase
initialDelaySeconds(allow more startup time) - Increase
timeoutSeconds(slow storage backend) - Check metrics port binding
Secret Not Mounted
Symptom:Debugging Tips
Enable Debug Logging
Test Mode
Validate Configuration
Anubis validates config on startup. Watch for errors:Check Prometheus Metrics
Trace Request Flow
Getting Help
If you’re still stuck:- Check logs:
--slog-level DEBUG - Review config: Validate YAML syntax
- Test components: Storage, DNS, target server
- Simplify: Remove complex rules, test with minimal config
- Report issue: https://github.com/TecharoHQ/anubis/issues
- Anubis version (
anubis --version) - Configuration (redact secrets)
- Error messages and logs
- Steps to reproduce
Next Steps
- Monitoring - Set up metrics and alerts
- Security - Key generation and rotation
- Policy Configuration - Validate and optimize policy