Can't create CT - OpenVZ.pm line 346

FcbInfo

Renowned Member
Dec 21, 2012
107
0
81
When I'm trying to create an openvz, got a message on the screen:

Error

can't find file '' (500)

on /var/log/syslog

Oct 23 03:03:16 node pvedaemon[23218]: WARNING: Use of uninitialized value $archive in -f at /usr/share/perl5/PVE/API2/OpenVZ.pm line 346.
Oct 23 03:03:16 node pvedaemon[23218]: WARNING: Use of uninitialized value $archive in concatenation (.) or string at /usr/share/perl5/PVE/API2/OpenVZ.pm line 346.

Someone know what is that problem?

Thanks.
 
Hello,
I have exaclty the same error, here is the output:
> pveversion -v
proxmox-ve-2.6.32: 3.1-109 (running kernel: 2.6.32-23-pve)
pve-manager: 3.1-3 (running version: 3.1-3/dc0e9b0e)
pve-kernel-2.6.32-23-pve: 2.6.32-109
lvm2: 2.02.98-pve4
clvm: 2.02.98-pve4
corosync-pve: 1.4.5-1
openais-pve: 1.1.4-3
libqb0: 0.11.1-2
redhat-cluster-pve: 3.2.0-2
resource-agents-pve: 3.9.2-4
fence-agents-pve: 4.0.0-2
pve-cluster: 3.0-8
qemu-server: 3.1-8
pve-firmware: 1.0-23
libpve-common-perl: 3.0-8
libpve-access-control: 3.0-7
libpve-storage-perl: 3.0-17
pve-libspice-server1: 0.12.4-2
vncterm: 1.1-4
vzctl: 4.0-1pve4
vzprocps: 2.0.11-2
vzquota: 3.1-2
pve-qemu-kvm: 1.4-17
ksm-control-daemon: 1.1-1
glusterfs-client: 3.4.1-1

Regards,
Rainer
 
same here trying to vzrestore an vm dump...

# pveversion -v
proxmox-ve-2.6.32: 3.1-109 (running kernel: 2.6.32-23-pve)
pve-manager: 3.1-4 (running version: 3.1-4/f6816604)
pve-kernel-2.6.32-20-pve: 2.6.32-100
pve-kernel-2.6.32-19-pve: 2.6.32-96
pve-kernel-2.6.32-16-pve: 2.6.32-82
pve-kernel-2.6.32-23-pve: 2.6.32-109
lvm2: 2.02.98-pve4
clvm: 2.02.98-pve4
corosync-pve: 1.4.5-1
openais-pve: 1.1.4-3
libqb0: 0.11.1-2
redhat-cluster-pve: 3.2.0-2
resource-agents-pve: 3.9.2-4
fence-agents-pve: 4.0.0-2
pve-cluster: 3.0-8
qemu-server: 3.1-8
pve-firmware: 1.0-23
libpve-common-perl: 3.0-8
libpve-access-control: 3.0-7
libpve-storage-perl: 3.0-17
pve-libspice-server1: 0.12.4-2
vncterm: 1.1-4
vzctl: 4.0-1pve4
vzprocps: 2.0.11-2
vzquota: 3.1-2
pve-qemu-kvm: 1.4-17
ksm-control-daemon: 1.1-1
glusterfs-client: 3.4.1-1

[edit] I unlocked situation by adding a line in OpenVZ.pm#345:
$archive = $rpcenv->check_volume_access($authuser, $storage_cfg, $vmid, $ostemplate);
$archive = $ostemplate; // <-- ADD THIS LINE
die "can't find file '$archive'\n" if ! -f $archive;

This is NOT recommanded because it removes security checks but maybe it can help if you are in a rush.
 
Last edited by a moderator:
Hello flat,
your solution don't work for the creation of a container, when I change OpenVZ.pm as you desrcibed I get the following error message:
"can't find file 'local:vztmpl/debian-6-turnkey-drupal7_12.1-1_amd64.tar.gz' (500)"
Regards,
Rainer
 
Hello dietmar,after an update it does work now!Thanks,Rainer
It's not working for me now. Same issues as the others reported.root@proxmox00:~# pveversion -vproxmox-ve-2.6.32: 3.1-109 (running kernel: 2.6.32-23-pve)pve-manager: 3.1-3 (running version: 3.1-3/dc0e9b0e)pve-kernel-2.6.32-23-pve: 2.6.32-109lvm2: 2.02.98-pve4clvm: 2.02.98-pve4corosync-pve: 1.4.5-1openais-pve: 1.1.4-3libqb0: 0.11.1-2redhat-cluster-pve: 3.2.0-2resource-agents-pve: 3.9.2-4fence-agents-pve: 4.0.0-2pve-cluster: 3.0-8qemu-server: 3.1-8pve-firmware: 1.0-23libpve-common-perl: 3.0-8libpve-access-control: 3.0-7libpve-storage-perl: 3.0-17pve-libspice-server1: 0.12.4-2vncterm: 1.1-4vzctl: 4.0-1pve4vzprocps: 2.0.11-2vzquota: 3.1-2pve-qemu-kvm: 1.4-17ksm-control-daemon: 1.1-1glusterfs-client: 3.4.1-1
 
Hello RevSaxon.
your system ist still on "proxmox-ve-2.6.32: 3.1-109", same as I on my first post, after upgrading to "proxmox-ve-2.6.32: 3.1-114" it works for me!
Regards,
Rainer
 
I am getting this same exact error just started today.

root@ns405998:/var/lib/vz/template/cache# pveversion -v
proxmox-ve-2.6.32: 3.1-111 (running kernel: 2.6.32-24-pve)
pve-manager: 3.1-14 (running version: 3.1-14/d914b943)
pve-kernel-2.6.32-24-pve: 2.6.32-111
lvm2: 2.02.98-pve4
clvm: 2.02.98-pve4
corosync-pve: 1.4.5-1
openais-pve: 1.1.4-3
libqb0: 0.11.1-2
redhat-cluster-pve: 3.2.0-2
resource-agents-pve: 3.9.2-4
fence-agents-pve: 4.0.5-1
pve-cluster: 3.0-12
qemu-server: 3.1-15
pve-firmware: 1.1-1
libpve-common-perl: 3.0-13
libpve-access-control: 3.0-11
libpve-storage-perl: 3.0-19
pve-libspice-server1: 0.12.4-3
vncterm: 1.1-6
vzctl: 4.0-1pve4
vzprocps: 2.0.11-2
vzquota: 3.1-2
pve-qemu-kvm: 1.7-4
ksm-control-daemon: 1.1-1
glusterfs-client: 3.4.2-1
 
If anyone else finds this and is not willing to do the dist-upgrade this is the edit that worked for me:

} else {
# $archive = $rpcenv->check_volume_access($authuser, $storage_cfg, $vmid, $ostemplate);
$ostemplate =~ s/local:vztmpl//g;
$ostemplate =~ s/.tar.gz//g;
$archive = $ostemplate;
# die($ostemplate);
# die "can't find file '$archive'\n" if ! -f $archive;
}

and stop and start

/etc/init.d/pvedaemon
/etc/init.d/pveproxy

Do note the caveat from flat