"unknown file extension - unable to detect template type"

kro

New Member
Apr 30, 2008
21
0
1
Something strange is happening here: When I want to upload a file, I get the above mentioned error. I went a little bit into debugging the error by having a look at the code: in /var/www/pve/apl/index.htm there is a call "install_template($tmpname, $fn);" I added a line $out .= "tmpname: $tmpname; fn: $fn"; to see, If the arguments are paeed correctly: they are. However, $filename never arrives in "sub install_template" in Config.pm, I can do what I want - @_ only contains $tmpname but *NEVER* $filename. Everywhere else it works fine. Do you have a clue what could cause this, or how/where to poke further? Best regards, Felix P.S. Access to the server can be provided if needed.
 
Something strange is happening here: When I want to upload a file, I get the above mentioned error. I went a little bit into debugging the error by having a look at the code: in /var/www/pve/apl/index.htm there is a call "install_template($tmpname, $fn);" I added a line $out .= "tmpname: $tmpname; fn: $fn"; to see, If the arguments are paeed correctly: they are. However, $filename never arrives in "sub install_template" in Config.pm, I can do what I want - @_ only contains $tmpname but *NEVER* $filename. Everywhere else it works fine. Do you have a clue what could cause this, or how/where to poke further? Best regards, Felix P.S. Access to the server can be provided if needed.

Hi Felix,

Whats the exact file name you trying to upload?
Try rename your template - no blanks, shorter name, no special characters.
You cannot upload files bigger than 2 GB via the web interface.

you can also use scp to put your templates to the Proxmox VE (If you are on a windows box, you can use winscp)
  • ISO file: /var/lib/vz/template/iso
  • OpenVZ templates: /var/lib/vz/template/cache
 
Last edited:
Hi tom,

thanks for your quick reply.
Filenames are all like "debian-4.0-i386-minimal.tar.gz" or "grml_small_0.4.iso", no exotic characters. And all files are much smaller than 2GB, mostly around 100M.
Clientwise I am using firefox on a Debian Workstation, uploading per scp works fine (did this for testing) but I wanted to resolve this problem - strange it never happened to anybody else(?)

Best regards,
Felix
 
Hi tom,

thanks for your quick reply.
Filenames are all like "debian-4.0-i386-minimal.tar.gz" or "grml_small_0.4.iso", no exotic characters. And all files are much smaller than 2GB, mostly around 100M.
Clientwise I am using firefox on a Debian Workstation, uploading per scp works fine (did this for testing) but I wanted to resolve this problem - strange it never happened to anybody else(?)

Best regards,
Felix

Hi,

I just tried to upload "debian-4.0-i386-minimal.tar.gz"

working as expected: WinXP with IE7
NOT working: WinXP with Firefox 3 beta 5
I assume you have Firefox 2 on Debian? (iceweasel ...)

So I will file a bug for this here, thanks for helping.
 
Yep, Iceweasel 2.0.0.13.
"Unfortunately", I have no windows with working IE available here (Only FireFox2, doesn't upload either)

Thanks,
Felix