Shell error during logout - connection closed (Code: 1006)

Apr 29, 2021
5
1
23
53
I have successfull upgrade a single station proxmox ve 8.4.11 to 9.0.5.
After this procedure when I use the shell from the browser to manage the server and i logout I always receive an error message:
1756299179205.png
the I can close the windows clicking on the X but in the cluster log appear an error as follow
1756299376372.png
and
1756299262941.png
in the Task viewer: Shell
1756299286197.png
in the system log
Aug 27 14:52:45 virtualpve3 pvedaemon[193192]: command '/usr/bin/termproxy 5900 --path /nodes/virtualpve3 --perm Sys.Console -- /bin/login -f root' failed: exit code 1
Aug 27 14:52:46 virtualpve3 pvedaemon[161396]: <root@pam> end task UPID:virtualpve3:0002F2A8:006AF2C1:68AEFF8F:vncshell::root@pam: command '/usr/bin/termproxy 5900 --path /nodes/virtualpve3 --perm Sys.Console -- /bin/login -f root' failed: exit code 1
A
I have always used the shell to manage/upgrade/view all the configuration file and package of the system without problem since now.
Everything works fine I can create VM migrate start-up and poweroff VM and system.

I have searched in the forum, the web, chatgpt, claude etc but without a solution. seems that is not a real error anc can be ignored BUT i really don't like a red line everytime I close the shell

Maybe need to change the /usr/share/pve-manager/js/pvemanagerlib.js and manage the exit error but it's correct? where is the exact point of modification and when the next upgrade will be installed.... the patch will be removed so I don't like very much.

Have you ever found this kind of problem/error/advice? Is an error or not?

the workaround I found is not to use the shell but use an ssh session (putty) or close the web session of the shell without doing the logout simply clicking the X to close the window

The problem is present in case of upgrade and in case of a fresh installation (I have done a test in another machine).

Thanks very much in advance
 
You should logout from the pve webui right on top "pam@root" -> logout, so the window is still there but "unuseable" as need first relogin again.
 
I don't want logout from proxmox management console I only want close the SHELL console
1756325426868.png
If I follow your suggest I disconnect from the proxmox webui, the SHELL console remain connected and I have to close it with the upright X or with the command logout... and the error message remain exactly the same.

I want disconnect from the shell console not from the webui of proxmox

the console is the standard xterm.js

Regards
 
Oh ..., I never used that shell menue before ..., so yes the messages are not fine nor ok. Should be going for a bug report.