noVNC console disconnects when Jetty WebSocket reaches idle timeout on CloudStack 4.22.1.1
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
- java
- Área
- backend, cloud, infrastructure
Línea de trabajo
Empiece rastreando el manejo del tiempo de espera de inactividad de Jetty WebSocket y el comportamiento de recolección de basura del visor de Console Proxy en torno a la configuración notificada de 300000 ms. Reproduzca el fallo de la sesión activa de noVNC mediante los pasos indicados y los mensajes de registro de CPVM; después, verifique que una sesión activa permanezca conectada y que la configuración del tiempo de espera se gestione de forma coherente.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
problem
The noVNC console disconnects while the guest VM, Console Proxy VM,
CloudStack agent, network connectivity, and KVM VNC backend remain
operational.
The browser displays:
Failed to connect to server / access token has expired
The console disconnects even while the noVNC session is actively being used
with keyboard input and screen updates. This is not an inactive or abandoned
browser session.
Closing the old console window and opening a new console session from the
CloudStack UI generates a new access token and temporarily restores access.
The newly generated session eventually disconnects again.
Observed CPVM log messages include:
Idle timeout expired: 300001/300000 ms
After the disconnection, or when the previous console session attempts to
reconnect, the CPVM log reports:
External authenticator failed
The browser WebSocket initially completes its handshake with HTTP status 101.
During the failure:
- The guest VM remains Running.
- The Console Proxy VM remains Running.
- The Console Proxy agent remains Up.
- The CPVM public interface and TCP port 8080 remain reachable.
- The KVM VNC listener remains active.
- Reopening the console from the CloudStack UI immediately works with a newly
generated token.
The observed traffic path is:
Browser → CPVM public interface TCP 8080 → CPVM private interface →
KVM VNC endpoint → guest VM
versions
- Apache CloudStack Management Server: 4.22.1.1
- cloudstack-common: 4.22.1.1
- cloudstack-agent: 4.22.1.1
- System VM template/version: 4.22.1.1
- Management Server OS: Ubuntu 24.04 LTS
- KVM Host OS: Ubuntu 24.04 LTS
- Hypervisor: KVM/libvirt
- Host and System VM architecture: aarch64
- Browser: Google Chrome
- Zone network type: Advanced
- Console Proxy VM state: Running
- Console Proxy agent state: Up
novnc.console.default:trueconsoleproxy.session.timeout:300000
No reverse proxy or external load balancer is placed between the browser and
the Console Proxy VM.
The steps to reproduce the bug
- Deploy and start a guest VM on an aarch64 KVM host.
- Confirm that the guest VM and Console Proxy VM are Running and their agents
are Up. - Open the guest console from the CloudStack UI using the default noVNC
console. - Confirm that the browser WebSocket handshake returns HTTP status 101.
- Continuously interact with the console using keyboard input and observe
ongoing screen updates. - Observe that the console disconnects after approximately 2–5 minutes,
despite the active session. - Confirm that the guest VM remains Running.
- Confirm that the CPVM public interface and TCP port 8080 remain reachable.
- Confirm that the KVM VNC listener remains active.
- Observe
Idle timeout expired: 300001/300000 msin the CPVM log. - Observe
External authenticator failedwhen the previous session attempts
to reconnect, or observe the browser message
Failed to connect to server / access token has expired. - Close the old console window and open the console again from the
CloudStack UI. - Confirm that the newly generated token restores console access
temporarily.
What to do about it?
Expected behavior:
An actively used noVNC console should remain connected while the guest VM,
Console Proxy VM, network path, and KVM VNC backend remain healthy.
Active keyboard input, WebSocket traffic, and VNC framebuffer updates should
prevent the connection from being treated as idle.
If consoleproxy.session.timeout is intended to apply to noVNC sessions, the
configured value should be handled consistently by the Jetty WebSocket idle
timeout and the Console Proxy viewer garbage-collection logic.
Please confirm:
- Whether this behavior is addressed by PR #13002.
- Whether that fix is included in any released 4.22 package.
- Whether a backport to the maintained 4.22 branch is planned.
- Whether there is a supported workaround for CloudStack 4.22.1.1.
- Whether
consoleproxy.session.timeoutshould control both the Jetty
WebSocket idle timeout and Console Proxy viewer garbage collection. - Whether applying a changed timeout requires restarting the Management
Server, restarting the Console Proxy VM, or recreating the Console Proxy VM.
Security note
Console URLs, authentication tokens, API credentials, passwords, SSH keys,
MAC addresses, UUIDs, and sensitive infrastructure identifiers have been
removed from this report.
- Lenguaje dominante
- Java
- Estrellas
- 3.1k
- Forks
- 1.4k
- Merge medio
- 6 d 20 h
- PR fusionados (30 d)
- 27
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de apache/cloudstack
-
bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
apache/cloudstack#14222 ·
-
create-kubernetes-binaries-iso.sh builds the ISO without setting a volume ID on EL8 based os's Abiertobug component:kubernetes
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
apache/cloudstack#14180 ·
-
bug component:projects component:UI
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
apache/cloudstack#14070 · 5 comentarios ·
-
component:backup
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
apache/cloudstack#14013 ·
-
KVM agent fails to connect to Ceph RBD storage pool after upgrading Ceph client to Tentacle 20.2.4 Abiertobug component:ceph
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
apache/cloudstack#13989 · 3 comentarios ·
Todos los issues de apache/cloudstack
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
elastic/gradle-plugins#157 ·
-
enhancement Tools
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
apache/rocketmq-dashboard#5008 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
DETECT_PARAMETER_NAMES=false silently disables @ConstructorProperties-based Creator detection too Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
FasterXML/jackson-databind#6229 ·