Bỏ qua để đến nội dung

Xử lý sự cố desktop gateway

Desktop app đóng gói khởi động gateway trên loopback port 51718. Nó không dùng development gateway port 8081.

Terminal window
curl -i --max-time 3 http://127.0.0.1:51718/health

Gateway hoạt động trả HTTP 200 và:

{"status":"ok"}

macOS:

Terminal window
tail -n 100 "$HOME/Library/Application Support/com.caberos.desktop/logs/gateway.log"

Windows (PowerShell):

Terminal window
Get-Content "$env:APPDATA\com.caberos.desktop\logs\gateway.log" -Tail 100

Log append-only với backup rotation có giới hạn; startup attempt cũ có thể nằm phía trên lỗi mới nhất.

macOS:

Terminal window
pgrep -alf 'CaberOS|caberos-gateway'
lsof -nP -iTCP:51718 -sTCP:LISTEN

Windows (PowerShell):

Terminal window
Get-Process | Where-Object { $_.Name -match 'CaberOS|caberos-gateway' }
netstat -ano | Select-String ':51718'

Nếu process khác đang giữ port 51718, hãy đóng process đó hoặc dừng development process xung đột rồi khởi động lại CaberOS.

  • ImportError trong gateway_entry — DMG chứa gateway build cũ; tải release mới nhất.
  • Không có gateway log — app có thể không có quyền tạo data directory hoặc dùng application identifier khác.
  • Gateway thoát ngay — xem traceback cuối trong gateway.log và xóa secret trước khi gửi bug report.
  • Application is damaged — xác minh nguồn DMG rồi làm theo bước Gatekeeper trong hướng dẫn cài đặt.