[SOLVED] vncterm error

Shawn Sivy

New Member
Mar 13, 2017
2
0
1
54
I upgrade our Proxmox servers from 4.2 to 4.4 today. On one of the servers, I cannot launch a console in the PVE manager to any LXC containers either locally on the same server or a container located on another server in the cluster. It works if I lauching a console to a qemu/kvm vm. The task error I get is

TASK ERROR: command '/usr/bin/vncterm -rfbport 5900 -timeout 10 -authpath /vms/107 -perm VM.Console -notls -listen localhost -c /usr/bin/dtach -A /var/run/dtach/vzctlconsole107 -r winch -z lxc-console -n 107' failed: got unknown parameter 'keeplocale' for run_command

Any help in tracking down this error would be appreciated. I'm assuming it is a configuration setting somewhere.

I can start a console for the LXC containers if I go to one of the other PVE managers in the cluster and launch it from there.
 
Ok. I managed to track down the issue to the run_command in /usr/share/perl5/PVE/LXC.pm. That function call added "keeplocal" to it which wasn't on my 3 other Proxmox servers. After running pveversion -v and carefully cross checking the version, it appears that the server with the issue (coincidently the last one I upgraded this morning), had different versions for the pve-container and lxc-pve packages. After downgrading them to match the other servers, everything worked fine again.

Downgrade lxc-pve 2.0.7-4 --> 2.0.7-3
Downgrade pve-container 1.0-96 --> 1.0-94

root@hpc-moose1:/usr/share/perl5/PVE# apt-get install pve-container=1.0-94 lxc-pve=2.0.7-3
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be DOWNGRADED:
lxc-pve pve-container
0 upgraded, 0 newly installed, 2 downgraded, 0 to remove and 0 not upgraded.
Need to get 0 B/663 kB of archives.
After this operation, 93.2 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
dpkg: warning: downgrading lxc-pve from 2.0.7-4 to 2.0.7-3
(Reading database ... 44300 files and directories currently installed.)
Preparing to unpack .../lxc-pve_2.0.7-3_amd64.deb ...
Unpacking lxc-pve (2.0.7-3) over (2.0.7-4) ...
dpkg: warning: downgrading pve-container from 1.0-96 to 1.0-94
Preparing to unpack .../pve-container_1.0-94_all.deb ...
Unpacking pve-container (1.0-94) over (1.0-96) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for pve-manager (4.4-12) ...
Processing triggers for systemd (215-17+deb8u6) ...
Setting up lxc-pve (2.0.7-3) ...
Setting up pve-container (1.0-94) ...
Processing triggers for libc-bin (2.19-18+deb8u7) ...
Processing triggers for pve-manager (4.4-12) ...
 
should be fixed with the last round of updates on pve-no-subscription - sorry for the hassle.