Unable to use the web remote console

piero.proietti

Renowned Member
Mar 12, 2010
16
0
66
Roma, Italy
www.piojoris15.com
I run Proxmox VE from more than a year ad never had big problems, really a great work. Recentely after the update from 1.4 to 1.5 I had the following problem:

When I try to connect a virtual machine with the browser, it open the window of the console, but don't work and I receive the follow error in the apache error.log:

[Fri Mar 12 15:55:21 2010] [error] [4922]ERR: 24: Error in Perl code: unable to find free vnc port at /usr/share/perl5/PVE/ConfigServer.pm line 1008.\n

this is the content of ConfigServer.pm

...
my $next_vnc_port = sub { # private method

for (my $p = 5900; $p < 6000; $p++) {

my $sock = IO::Socket::INET->new (Listen => 5,
LocalAddr => 'localhost',
LocalPort => $p,
ReuseAddr => 1,
Proto => 0);

if ($sock) {
close ($sock);
return $p;
}
}
die "unable to find free vnc port";
};
...


This my actual version:

# pveversion --verbose

pve-manager: 1.5-8 (pve-manager/1.5/4674)
running kernel: 2.6.24-10-pve
proxmox-ve-2.6.24: 1.5-21
pve-kernel-2.6.24-10-pve: 2.6.24-21
pve-kernel-2.6.24-1-pve: 2.6.24-4
pve-kernel-2.6.24-5-pve: 2.6.24-6
pve-kernel-2.6.24-2-pve: 2.6.24-5
qemu-server: 1.1-11
pve-firmware: 1.0-3
libpve-storage-perl: 1.0-10
vncterm: 0.9-2
vzctl: 3.0.23-1pve8
vzdump: 1.2-5
vzprocps: 2.0.11-1dso2
vzquota: 3.0.11-1
pve-qemu-kvm: 0.11.1-2

That I can do to solve the question, possibly without the need to reformat everything?

Thanx
 
Last edited:
is this a standard ISO install, no manual changes?
 
I don't know, this is the result of

#pstree

init─┬─apache2───2*[apache2]
├─atd
├─cron
├─6*[getty]
├─inetd
├─kvm───3*[{kvm}]
├─kvm───2*[{kvm}]
├─master─┬─pickup
│ ├─qmgr
│ └─tlsmgr
├─ntpd
├─portmap
├─pvedaemon───2*[pvedaemon]
├─rpc.statd
├─rsyslogd───3*[{rsyslogd}]
├─sshd───sshd───bash───pstree
└─udevd
 
netstat -t
This is the result of netstat -t

Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 prometeo.geniodife.:ssh 10.26.106.50:34776 ESTABLISHED
tcp 0 0 prometeo.geniodife.:ssh 10.26.106.181:46811 ESTABLISHED
prometeo:~#

I tried this command too

iptables -I INPUT -m state --state NEW -p tcp --dport 5900:6000 -j ACCEPT

to enable the port for VNC (from the site http://www.convirture.com/wiki/index.php?title=Convirt2_Installation) but unfortunately nothing happen
:-(

 
just copy the code into your own litte perl script and try to debug - I can't see what's wrong.
 
Thanx Sam, thanx a lot

I just run the commands and I just solved the problem...

The problem was... the lacks of /etc/hosts.

I dont know why or in that way this file was deleted, everything was going well, except vncterm!

Just put it back and everything is working perfectly.

Really thanx a lot Tom, Dietmar, Sam.

Piero Proietti
 
Last edited:
hi,

i'm sorry i up this topic but i get the same problem. When i try to use vnc console i get this error "[2734]ERR: 24: Error in Perl code: unable to find free vnc port at /usr/share/perl5/PVE/ConfigServer.pm line 1011"

here's the result of pveversion -v command :

pve-manager: 1.9-26 (pve-manager/1.9/6567)
running kernel: 2.6.32-6-pve
proxmox-ve-2.6.32: 1.9-51
pve-kernel-2.6.32-6-pve: 2.6.32-51
qemu-server: 1.1-32
pve-firmware: 1.0-14
libpve-storage-perl: 1.0-19
vncterm: 0.9-2
vzctl: 3.0.29-3pve1
vzdump: 1.2-16
vzprocps: 2.0.11-2
vzquota: 3.0.11-1
pve-qemu-kvm: 0.15.0-2
ksm-control-daemon: 1.0-6

thanks for help
 
with the command cat /etc/hosts

# This file is automatically maintained by lvm.

persistent_filter_cache {
valid_devices=[
"/dev/disk/by-id/ata-ST31000528AS_9VP7DXLB-part1",
"/dev/block/1:13",
"/dev/block/1:14",
"/dev/ram11",
"/dev/disk/by-uuid/aa215bf6-301b-44d9-857c-410e748a982b",
"/dev/block/253:2",
"/dev/disk/by-u

Is this normal ??
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!