-
Notifications
You must be signed in to change notification settings - Fork 0
08 Troubleshooting EN
🇬🇧 English · 🇮🇷 فارسی
If status shows activating (auto-restart) with a rising restart counter, and logs shows:
server error: listen tcp :8080: bind: address already in use
the port is already taken — usually by a Docker container (e.g. an official PasarGuard panel/node) or a stray instance.
sudo ss -ltnp 'sport = :8080' # panel
sudo ss -ltnp 'sport = :62050' # node: gRPC
sudo ss -ltnp 'sport = :8090' # node: HTTP control- If it's
docker-proxy: a container publishes that port. Either stop that container (docker stop <name>) or change our service's port:- Panel:
sudo pg-panel edit-env→PANEL_HTTP_ADDR=:2095 - Node:
sudo pg-node-agent edit-env→PG_AGENT_HTTP_ADDR=:8092andPG_AGENT_GRPC_ADDR=:62052(and set the node's address and "gRPC port" in the panel accordingly).
- Panel:
- If it's a stray
pg-panel/pg-node-agent:sudo pkill -f /opt/pg-panel/pg-panel(thensystemctl reset-failedandrestart). - Note: the official PasarGuard node also uses 62050 for gRPC; to install alongside it, change our node's ports.
Harmless. It comes from the upstream base code; the script writes a dummy API_KEY to silence it. Multi-tenancy works regardless.
- Check
sudo pg-node-agent statusandlogs. - Did you enter the address correctly? It must be
https://NODE_IP:8090(not the gRPC one). - Are firewall ports
8090(control) and62050(gRPC) open? - Does the pinned cert match the node's current cert? If you ran
renew-cert, re-pin.
- Paste the full
cert_pem(with BEGIN/END lines). - Or leave the cert field empty for automatic TOFU.
- If the node cert changed, delete and re-add the node.
The browser cached the old app.js. Hard-refresh with Ctrl+Shift+R. (Newer panel versions send no-cache headers so this won't recur.)
- The customer's inbound must match the node's real inbound: port, protocol, network, SNI/host, TLS. (See Connect from PasarGuard).
- The node's
--force-inboundsmust include the real inbound tag (defaultvless-in). - View the node config with
sudo pg-node-agent editand give the exact parameters to the customer.
- Quota/expiry likely ran out. Usage:
GET /api/v1/customers/{id}/usage. - Restore via
topup-quotaorrenew. Data returns on renewal (suspend ≠ delete).
Because Xray is shared, a little traffic may be recorded after the quota runs out, until enforcement runs. This overage is reported in GET /customers/{id}/usage (overage_bytes) so the sales bot can settle the wallet. Default enforcement interval is 10s (PG_AGENT_ENFORCE_INTERVAL).
اپراتور
- ۱) نصب پنل
- ۲) نصب نود
- ۳) افزودن نود و فروش
- تنظیم هستهی نود (Xray)
- استفادهی شخصی + فروش
- آپدیت و نگهداری
- عیبیابی
مشتری
توسعهدهنده
Operator
- 1) Install the panel
- 2) Install a node
- 3) Add a node & sell
- Configure the node core (Xray)
- Personal use + selling
- Update & maintenance
- Troubleshooting
Customer
Developer