Connection Timeout to Upstream Registry with Proxy Enabled; Works with Custom Proxy Emulator

Abierto
#1,129 4 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
docker, java

Línea de trabajo

Start by reproducing the failure with the supplied upstream configuration and JVM proxy arguments, and compare the logs with the successful custom-proxy-emulator case. Trace the upstream connection and proxy handling from the configuration entry point; the payload does not identify a source file or test. Done means the default https://openvsx.org upstream connects through the configured proxy, with a regression test covering the behavior.

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

Descripción

Problem

When running openvsx in a Docker container with an upstream registry configured and proxy settings enabled, the application fails to connect to the upstream URL https://openvsx.org:443. The error reported is:

Connect to https://openvsx.org:443 [open-vsx.org/198.41.30.195] failed: Connection timed out

The proxy settings are configured via JVM arguments, and the upstream URL is set to https://openvsx.org. However, if I replace the upstream URL with the address of a custom proxy service (emulating curl behavior), the connection succeeds without issues. This suggests a potential problem with how openvsx handles proxy connections to the default upstream registry.

Steps to Reproduce
  1. Deploy openvsx in a Docker container.
  2. Configure the upstream registry with the following settings:
    upstream:
      proxy:
        enabled: true
      url: https://openvsx.org
    
  3. Set JVM proxy arguments (e.g., -Dhttp.proxyHost=proxy.company.com -Dhttp.proxyPort=8080 -Dhttps.proxyHost=proxy.company.com -Dhttps.proxyPort=8080).
  4. Start the container in an environment with a corporate proxy.
  5. Observe the error in logs:
    Connect to https://openvsx.org:443 [open-vsx.org/198.41.30.195] failed: Connection timed out
    
  6. Replace the upstream URL with a custom proxy emulator (e.g., http://localhost:8081), which forwards requests to openvsx.org via CONNECT method.
  7. Restart the container and note that the connection works successfully.
Environment
  • OpenVSX Version: 0.22.2
  • Docker Setup: Running in a Docker container
  • Proxy Configuration:
    • JVM args: -Dhttp.proxyHost=proxy.company.com -Dhttp.proxyPort=8080 -Dhttps.proxyHost=proxy.company.com -Dhttps.proxyPort=8080
    • Upstream config:
      upstream:
        proxy:
          enabled: true
        url: https://openvsx.org
      
Lenguaje dominante
Java
Estrellas
2.1k
Forks
362
Merge medio
1 d 3 h
PR fusionados (30 d)
44

Preparar el entorno

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 eclipse-openvsx/openvsx

Todos los issues de eclipse-openvsx/openvsx

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.