Spaces:
Sleeping
Sleeping
File size: 9,955 Bytes
f639a6f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 |
# AuroraAI Troubleshooting Guide
## Common Issues & Fixes
### 1. Assistant Not Responding
**Symptoms:** Long delays or no output.
**Possible Causes & Fixes:**
- Network issue β Check VPN/firewall.
- Expired API key β Run `aurora auth refresh`.
- Large file uploads throttled β Compress or split files.
### 2. Incorrect or Irrelevant Answers
**Symptoms:** Hallucinations, outdated info.
**Fixes:**
- Re-index documentation: `aurora connect ./docs --force`.
## Troubleshooting Connection Issues
### Symptoms
- Failed API requests or timeouts
- Unable to connect to external services (GitHub, Jira, etc.)
- Network-related error messages
### Common Causes and Solutions
#### Network Connectivity
- **Check internet connection**: Verify your network is stable and accessible
- **Firewall settings**: Ensure Aurora is allowed through your firewall
- **Proxy configuration**: If behind a corporate proxy, configure proxy settings in Aurora's config file
#### DNS Resolution
- **Verify domain resolution**: Test connectivity to API endpoints using `ping` or `nslookup`
- **DNS cache**: Clear system DNS cache if experiencing intermittent issues
- **Alternative DNS**: Try switching to public DNS servers (e.g., 8.8.8.8)
#### SSL/TLS Errors
- **Certificate validation**: Update system certificates or use `--insecure` flag for testing only
- **Protocol version**: Ensure TLS 1.2+ is supported on your system
- **Corporate SSL inspection**: Request certificate authority (CA) certificate from IT if applicable
#### Timeout Issues
- **Increase timeout values**: Use `--timeout=60` flag to extend wait time
- **Check service status**: Verify third-party service availability at their status pages
- **Reduce payload size**: Break large requests into smaller batches
#### Debug Mode
Enable verbose logging to diagnose connection problems:
- Add explicit context to prompts.
- Enable strict retrieval with: `--retrieval=strict`.
### 3. Authentication Errors
| Code | Meaning | Fix |
|------|---------|------|
| 401 | Invalid token | Re-enter API key |
| 403 | Permission denied | Check role settings |
| 429 | Rate limit exceeded | Reduce request size or upgrade plan |
### 4. Integration Sync Failures
**Fixes:**
- Validate GitHub/Jira tokens.
- Re-auth via: `aurora integrate github --reset`.
- Clear cache: `aurora cache purge`.
### 5. Advanced Connection Diagnostics
#### Network Layer Analysis
**TCP/IP Stack Verification:**
- Run `netstat -an | grep ESTABLISHED` to check active connections
- Monitor packet loss: `ping -c 100 api.aurora.ai` and analyze statistics
- Use `traceroute api.aurora.ai` to identify routing bottlenecks
- Check MTU settings: `ping -M do -s 1472 api.aurora.ai` to test fragmentation
**Port Availability:**
- Verify required ports are open: 443 (HTTPS), 80 (HTTP fallback)
- Test with `telnet api.aurora.ai 443` or `nc -zv api.aurora.ai 443`
- Check for port conflicts: `lsof -i :443` (Linux/macOS) or `netstat -ano | findstr :443` (Windows)
#### Protocol-Level Debugging
**HTTP/HTTPS Traffic Inspection:**
- Capture traffic with `tcpdump -i any -w aurora.pcap host api.aurora.ai`
- Analyze with Wireshark to inspect TLS handshakes and HTTP headers
- Use `curl -vvv https://api.aurora.ai/health` for detailed handshake output
- Enable request/response logging: `export AURORA_DEBUG_HTTP=1`
**TLS Handshake Failures:**
- Check cipher suite compatibility: `openssl s_client -connect api.aurora.ai:443 -tls1_2`
- Verify certificate chain: `openssl s_client -showcerts -connect api.aurora.ai:443`
- Test SNI (Server Name Indication): `openssl s_client -servername api.aurora.ai -connect api.aurora.ai:443`
- Inspect client certificate requirements if mutual TLS is enabled
#### DNS Deep Dive
**Resolution Path Analysis:**
- Query authoritative nameservers: `dig @8.8.8.8 api.aurora.ai +trace`
- Check DNS response times: `dig api.aurora.ai | grep "Query time"`
- Verify DNSSEC validation: `dig api.aurora.ai +dnssec`
- Test DNS-over-HTTPS: Configure DoH provider in system settings
**DNS Cache Management:**
- Linux: `sudo systemd-resolve --flush-caches` or `sudo service nscd restart`
- macOS: `sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder`
- Windows: `ipconfig /flushdns`
- Verify `/etc/hosts` (Unix) or `C:\Windows\System32\drivers\etc\hosts` (Windows) for override entries
#### Proxy and VPN Troubleshooting
**Proxy Configuration Validation:**
- Check environment variables: `echo $HTTP_PROXY $HTTPS_PROXY $NO_PROXY`
- Test proxy authentication: `curl -x http://proxy.corp.com:8080 --proxy-user user:pass https://api.aurora.ai`
- Configure in Aurora config: `aurora config set proxy.url http://proxy.corp.com:8080`
- Bypass proxy for testing: `export NO_PROXY=api.aurora.ai`
**VPN-Specific Issues:**
- Check split-tunneling configuration
- Verify VPN MTU: `ip link show` and adjust if < 1500
- Test with VPN disabled to isolate issue
- Check for IPv6 leakage: `curl -6 https://api.aurora.ai` vs `curl -4 https://api.aurora.ai`
#### Application-Level Diagnostics
**Aurora Internal Logs:**
- Enable maximum verbosity: `aurora --log-level=trace <command>`
- Tail log file in real-time: `tail -f ~/.aurora/logs/aurora.log`
- Filter connection events: `grep -i "connection\|socket\|timeout" ~/.aurora/logs/aurora.log`
- Structured JSON logging: `aurora --log-format=json <command> | jq '.level="error"'`
**Request/Response Inspection:**
- Capture full HTTP exchange: `AURORA_DUMP_REQUESTS=1 aurora <command>`
- Measure round-trip time: `time aurora api healthcheck`
- Test with minimal request: `aurora api raw --method GET --endpoint /v1/health`
- Verify request headers: Check `User-Agent`, `Authorization`, `Content-Type` in debug output
#### System Resource Constraints
**Connection Pool Exhaustion:**
- Check open file descriptors: `ulimit -n` and increase if needed
- Monitor active sockets: `lsof -p $(pgrep aurora) | grep TCP`
- Review connection pool settings: `aurora config get http.max_connections`
- Adjust keep-alive timeout: `aurora config set http.keepalive_timeout 30`
**Memory and CPU Impact:**
- Profile resource usage: `top -p $(pgrep aurora)` or `htop`
- Check for memory leaks during long-running operations
- Monitor thread count: `ps -eLf | grep aurora | wc -l`
- Enable profiling: `aurora --profile=cpu <command>`
#### Enterprise Environment Considerations
**Corporate Security Appliances:**
- SSL/TLS Inspection: Export CA certificate and install system-wide
- Web Application Firewalls: Whitelist Aurora user-agent string
- DLP (Data Loss Prevention): Configure exceptions for Aurora traffic
- CASB (Cloud Access Security Broker): Add Aurora domains to allowlist
**Authentication Mechanisms:**
- NTLM proxy authentication: `aurora config set proxy.auth ntlm`
- Kerberos/SPNEGO: Ensure valid ticket with `klist`
- Client certificates: Specify with `--client-cert=/path/to/cert.pem --client-key=/path/to/key.pem`
- OAuth token refresh: `aurora auth token --refresh`
#### Advanced Debugging Techniques
**Packet Capture and Analysis:**
```bash
# Capture on specific interface
sudo tcpdump -i eth0 -s 0 -w aurora_debug.pcap 'host api.aurora.ai'
# Filter by port and decode HTTP
sudo tcpdump -i any -A 'tcp port 443 and host api.aurora.ai'
# Real-time monitoring with timestamps
sudo tcpdump -i any -tttt 'host api.aurora.ai'
```
**SystemTap/eBPF Tracing (Linux):**
- Trace system calls: `strace -f -e trace=network aurora <command>`
- Monitor DNS queries: `sudo tcpdump -i any port 53`
- Track connection states: Use `ss -tan state established`
**Performance Profiling:**
- Generate flame graph: `aurora --profile=cpu --profile-output=profile.pb.gz <command>`
- Analyze with pprof: `go tool pprof -http=:8080 profile.pb.gz`
- Network timing breakdown: Use browser DevTools Network tab for web UI
#### Configuration File Troubleshooting
**Verify Configuration Syntax:**
```bash
# Validate config file
aurora config validate
# Show effective configuration
aurora config show --resolved
# Reset to defaults
aurora config reset --confirm
# Override specific setting
aurora --config=/tmp/test.yaml <command>
```
**Common Configuration Issues:**
- Incorrect endpoint URLs: Verify `api.base_url` setting
- Timeout values too low: Increase `http.timeout` and `http.read_timeout`
- Retry logic disabled: Enable with `http.retry.enabled=true`
- Connection limits: Adjust `http.max_connections_per_host`
#### External Service Integration Testing
**GitHub Connectivity:**
```bash
# Test GitHub API access
curl -H "Authorization: token YOUR_TOKEN" https://api.github.com/user
# Verify webhook endpoint
curl -X POST https://api.aurora.ai/webhooks/github/test
# Check SSH access
ssh -T [email protected]
```
**Jira Connectivity:**
```bash
# Test Jira REST API
curl -u [email protected]:api_token https://your-domain.atlassian.net/rest/api/3/myself
# Verify webhook delivery
aurora integrate jira test-webhook --project KEY
```
#### Logging and Monitoring
**Continuous Monitoring Setup:**
- Configure log aggregation: Ship logs to ELK, Splunk, or Datadog
- Set up alerts for connection failures
- Monitor error rates: `grep -c "connection refused\|timeout" aurora.log`
- Track success rates over time
**Metrics Collection:**
- Enable Prometheus metrics: `aurora serve --metrics-port=9090`
- Export connection statistics: `aurora metrics export --format=json`
- Dashboard visualization: Import Aurora Grafana dashboard
#### Emergency Workarounds
**Temporary Fixes:**
- Use alternative endpoint: `aurora --api-url=https://backup.aurora.ai`
- Offline mode (if supported): `aurora --offline <command>`
- Fallback to local processing: `aurora --no-remote <command>`
- Manual API calls: Use `curl` with stored authentication token
**Escalation Path:**
1. Collect diagnostic bundle: `aurora diagnostic collect --output=aurora-diag.zip`
2. Include system information: `aurora version --verbose`
3. Attach relevant logs and packet captures
4. Submit to support with issue details |