Cant reconnect after server reboot

Abierto
#579 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Tranquilo
Stack tecnológico
docker, go
Área
networking

Línea de trabajo

Empieza reproduciendo la configuración de cliente/servidor de Docker y sigue los registros de reconexión alrededor del mapeo inverso R:9800:localhost:9800. Comprueba por qué no se puede establecer el listener inverso después de que el servidor doméstico se reinicia; se considera terminado cuando el cliente se reconecta y ambos mapeos inversos vuelven a estar utilizables.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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...

Lenguaje dominante
Go
Estrellas
16.8k
Forks
1.6k
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de jpillora/chisel

Todos los issues de jpillora/chisel

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.