Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

noVNC console disconnects when Jetty WebSocket reaches idle timeout on CloudStack 4.22.1.1

未关闭
#14,097 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
java

调研方向

首先,围绕报告的 300000 ms 设置,追踪 Jetty WebSocket 空闲超时处理以及 Console Proxy 查看器的垃圾回收行为。按照列出的步骤并结合 CPVM 日志消息,复现活动 noVNC 会话的故障,然后验证活动会话仍保持连接,并确认超时配置得到一致处理。

由索引模型根据 Issue 内容生成。

描述

bug
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: true
  • consoleproxy.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
  1. Deploy and start a guest VM on an aarch64 KVM host.
  2. Confirm that the guest VM and Console Proxy VM are Running and their agents
    are Up.
  3. Open the guest console from the CloudStack UI using the default noVNC
    console.
  4. Confirm that the browser WebSocket handshake returns HTTP status 101.
  5. Continuously interact with the console using keyboard input and observe
    ongoing screen updates.
  6. Observe that the console disconnects after approximately 2–5 minutes,
    despite the active session.
  7. Confirm that the guest VM remains Running.
  8. Confirm that the CPVM public interface and TCP port 8080 remain reachable.
  9. Confirm that the KVM VNC listener remains active.
  10. Observe Idle timeout expired: 300001/300000 ms in the CPVM log.
  11. Observe External authenticator failed when the previous session attempts
    to reconnect, or observe the browser message
    Failed to connect to server / access token has expired.
  12. Close the old console window and open the console again from the
    CloudStack UI.
  13. 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:

  1. Whether this behavior is addressed by PR #13002.
  2. Whether that fix is included in any released 4.22 package.
  3. Whether a backport to the maintained 4.22 branch is planned.
  4. Whether there is a supported workaround for CloudStack 4.22.1.1.
  5. Whether consoleproxy.session.timeout should control both the Jetty
    WebSocket idle timeout and Console Proxy viewer garbage collection.
  6. 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.

主要语言
Java
星标
3.1k
派生
1.4k
平均合并
6 天 20 小时
30 天内合并 PR
27

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

apache/cloudstack 的其他 Issue

查看 apache/cloudstack 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。