Since v9 exiting host consoles just hang

Taomyn

Active Member
Aug 30, 2023
119
27
33
Luxembourg
Since upgrading some hosts to v9 from v8 I have noticed that exiting the host console from the web interface it now just hangs.

When typing exit the console just sits there
1756273468316.png

Then if I hit Ctrl-C it exits

1756273517980.png

But there is an error logged for the task

1756273555992.png

When doing the same on a v8 host exiting takes me straight to the "Disconnecting" step, and the task stops cleanly. I have 3 v9 hosts and they all do the same and so does my PBS server on v4, which was fine when running v3.
 
hi,

the cause of change seems to be this commit:
https://git.proxmox.com/?p=pve-xtermjs.git;a=commit;h=7b47cca8368e63c30f6227442570f9f35dd7ccf0

ignore HUP on the pty

There is a timing issue which is hitting us in trixie for some reason:
The `login` tool has always done the following at startup:
- vhangup()
- close 0/1/2 and reopen it

Both of these potentially cause an EPOLLHUP to trigger
`event.is_read_closed()`. Let's ignore hangups on the PTY. This means
that typing "exit" on the "shell" tab in the UI will not close the
pty, only switching to a different screen will, but we cannot really
distinguish between the different types of hangups...

so we needed to change the behavior because of some timing change from bookworm -> trixie
not sure how we can fix that at the moment, but it's just a "cosmetic" issue
 
  • Like
Reactions: Taomyn