Troubleshooting the desktop gateway
The packaged desktop application starts its gateway on loopback port 51718. It does not use the development gateway port 8081.
Check the health endpoint
Section titled “Check the health endpoint”curl -i --max-time 3 http://127.0.0.1:51718/healthA working gateway returns HTTP 200 and:
{"status":"ok"}Inspect the gateway log
Section titled “Inspect the gateway log”macOS:
tail -n 100 "$HOME/Library/Application Support/com.caberos.desktop/logs/gateway.log"Windows (PowerShell):
Get-Content "$env:APPDATA\com.caberos.desktop\logs\gateway.log" -Tail 100The log is append-only with bounded rotated backups, so older startup attempts may appear above the latest error.
Check the process and port
Section titled “Check the process and port”macOS:
pgrep -alf 'CaberOS|caberos-gateway'lsof -nP -iTCP:51718 -sTCP:LISTENWindows (PowerShell):
Get-Process | Where-Object { $_.Name -match 'CaberOS|caberos-gateway' }netstat -ano | Select-String ':51718'If another process owns port 51718, quit it or stop the conflicting development process before relaunching CaberOS.
Common launch messages
Section titled “Common launch messages”- ImportError in
gateway_entry— the DMG contains an outdated gateway build; download the latest release. - No gateway log — the app may not have permission to create its data directory or may be pointing at a different application identifier.
- Gateway exited immediately — inspect the final traceback in
gateway.logand include it in a bug report after removing secrets. - Application is damaged — verify the DMG source, then follow the installation guide Gatekeeper step.