Appearance
Troubleshooting
Use X-Xg3-Request-Id on every gateway response to correlate client failures with console diagnostics.
Request Lookup
- Copy
X-Xg3-Request-Idfrom the client response headers (or from error JSON). - In the console, open Request Lookup.
- Paste the ID and search.
The detail view shows authorization outcome, service, agent, timing, and optional captured backend response data when logging is enabled for the service. See Request logging for what is stored and what is never captured (including auth headers).
Share the request ID with your team or support when reporting issues.
Common ingress errors
| Symptom | Likely cause | What to do |
|---|---|---|
| Agent unavailable (504-style) | Agent tunnel down or agent disabled | Check agent detail — tunnel connected; agent enabled; agent process running |
| Policy deny / 401-style | Wrong or missing auth header | Match service auth mode; use X-Xg3-Authorization or X-Xg3-Service-Key, not both |
| Invalid credential at token endpoint | Wrong client secret or scope | Verify account: and service: in scope match your account and service ID |
| Service not allowlisted | Credential or key missing service ID | Update allowed services on the credential or key |
| Backend 502 from agent | Backend unreachable or agent overloaded | Verify backend URL from agent host; check agent logs; review concurrency |
Internal backend denied (InternalBackendAccessDenied) | Private backend URL; agent Allow internal backend targets off | Enable setting on agent or use public URL — Deny codes |
Trial expired (TrialExpired) | 14-day trial ended without subscription | Billing → Subscribe |
| Cannot enable agent or Service | Past due, trial expired, or cancelled subscription | Check Billing page status; update payment or subscribe |
| Rate limited (429) | Too many requests to service | Back off client; review traffic patterns |
Gateway errors often use:
Content-Type: application/vnd.xg3.error+jsonX-Xg3-Statusheader with a machine-readable status
Enrollment issues
| Symptom | What to do |
|---|---|
| Code rejected | Use the latest code from agent output; approve before expiry |
| Agent never connects after approval | Outbound HTTPS to gateway blocked; check firewall and XG3_GATEWAY / region |
| Wrong account | Agent approved into a different account than expected — verify account selector during approval |
| Region mismatch | Agent --region must match console region selector |
| Unsure whether enrollment finished | Open Event Viewer (or View Events on the agent) and look for enrollment approved / completed, or tunnel connected |
See Agent enrollment and Event Viewer.
Service configuration
| Check | Detail |
|---|---|
| Service enabled | Disabled services reject ingress |
| Backend URL | Must be absolute http:// or https://; reachable from agent host |
| Hostname | Clients must use https://{account}--{service}.{region}.xg3.io/... |
| Auth mode | Service must allow the mechanism your client uses |
Test backend connectivity from the agent host (not your laptop) with curl or similar.
Agent logs
Logs are written to {data-dir}/logs/ on the agent host (service default: C:\ProgramData\xgress3\xg3agent\logs). See Install and run — Log files for rotation and retention.
Increase verbosity:
powershell
$env:RUST_LOG = "info" # default if unset
$env:RUST_LOG = "xg3_agent=debug" # tunnel / enrollment detail
xg3agent --region auWindows services: set RUST_LOG in the service environment. The interactive console UI (Windows CLI without --no-interactive) keeps the screen clear — read logs/agent-YYYY-MM-DD.log for diagnostics.
If the agent runs as a service, attach to the log files rather than expecting console output. Enrollment codes appear as warnings in the log (and stderr when attached).
Exit code 2 (stand down)
If the agent exits with code 2, do not restart it in a loop. This indicates a renewal policy limit. Contact your xgress3 support channel.
See Agent operations.
IAM and missing menu items
If you cannot see Enroll Agent, Add Service, Event Viewer, or other actions, your role may not include that capability. Ask an account Admin or Account Manager to adjust your role under Settings → IAM.
Related documentation
- Quickstart — baseline working configuration
- Ingress authentication — correct curl and headers
- Agents and services — service and agent setup
- Event Viewer — account audit activity
- Deny codes — gateway 502 error codes and fixes