Cant reconnect after server reboot

Aperta
#579 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Tranquilla
Stack tecnologico
docker, go
Ambito
networking

Direzione di ricerca

Inizia riproducendo la configurazione client/server Docker e segui i log di riconnessione intorno al reverse mapping R:9800:localhost:9800. Verifica perché il reverse listener non può essere stabilito dopo il riavvio del server domestico; il lavoro è completato quando il client si riconnette ed entrambi i reverse mapping tornano a essere utilizzabili.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Hello, I am using chisel in docker containers, here are the configurations

Home server:
version: "3.8"
services:
tunnel:
container_name: tunnel_to_server
image: jpillora/chisel:latest
restart: always
network_mode: host
command:
- "server"
- "--port"
- "2000"
- "--reverse"
- "--auth"
- "user:password"

Public server
server_tunnel:
container_name: server_tunnel
image: jpillora/chisel:latest
restart: always
network_mode: host
command:
- "client"
- "--auth"
- "user:password"
- "xx.xx.xx.xx:2000"
- "R:9800:localhost:9800" # website
- "R:55432:localhost:55432" # postgres

When I reboot the home server the container starts but cannot reconnect, what is the problem?

2026/02/28 08:40:13 client: Connecting to ws://xx.xx.xx.xx:2000
2026/02/28 08:40:16 client: Connected (Latency 204.880527ms)

2026/02/28 08:40:41 client: Disconnected
2026/02/28 08:40:41 client: Connection error: read tcp 192.168.1.116:57230->xx.xx.xx.xx:2000: read: connection reset by peer
2026/02/28 08:40:41 client: Retrying in 100ms...
2026/02/28 08:40:43 client: Connection error: server: Server cannot listen on R:9800=>localhost:9800 (Attempt: 1/unlimited)
2026/02/28 08:40:43 client: Retrying in 200ms...
2026/02/28 08:40:45 client: Connection error: server: Server cannot listen on R:9800=>localhost:9800 (Attempt: 2/unlimited)
2026/02/28 08:40:45 client: Retrying in 400ms...
2026/02/28 08:40:47 client: Connection error: server: Server cannot listen on R:9800=>localhost:9800 (Attempt: 3/unlimited)
2026/02/28 08:40:47 client: Retrying in 800ms...
2026/02/28 08:40:49 client: Connection error: server: Server cannot listen on R:9800=>localhost:9800 (Attempt: 4/unlimited)
2026/02/28 08:40:49 client: Retrying in 1.6s...
2026/02/28 08:40:53 client: Connection error: server: Server cannot listen on R:9800=>localhost:9800 (Attempt: 5/unlimited)
2026/02/28 08:40:53 client: Retrying in 3.2s...
2026/02/28 08:40:57 client: Connection error: server: Server cannot listen on R:9800=>localhost:9800 (Attempt: 6/unlimited)
2026/02/28 08:40:57 client: Retrying in 6.4s...
2026/02/28 08:41:05 client: Connection error: server: Server cannot listen on R:9800=>localhost:9800 (Attempt: 7/unlimited)
2026/02/28 08:41:05 client: Retrying in 12.8s...
2026/02/28 08:41:20 client: Connection error: server: Server cannot listen on R:9800=>localhost:9800 (Attempt: 8/unlimited)
2026/02/28 08:41:20 client: Retrying in 25.6s...
2026/02/28 08:41:47 client: Connection error: server: Server cannot listen on R:9800=>localhost:9800 (Attempt: 9/unlimited)
2026/02/28 08:41:47 client: Retrying in 51.2s...
2026/02/28 08:42:39 client: Connection error: server: Server cannot listen on R:9800=>localhost:9800 (Attempt: 10/unlimited)
2026/02/28 08:42:39 client: Retrying in 1m42.4s...
2026/02/28 08:44:23 client: Connection error: server: Server cannot listen on R:9800=>localhost:9800 (Attempt: 11/unlimited)
2026/02/28 08:44:23 client: Retrying in 3m24.8s...
2026/02/28 08:47:49 client: Connection error: server: Server cannot listen on R:9800=>localhost:9800 (Attempt: 12/unlimited)
2026/02/28 08:47:49 client: Retrying in 5m0s...

Lingua principale
Go
Stelle
16.8k
Fork
1.6k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di jpillora/chisel

Tutte le issue di jpillora/chisel

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.