Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when installing Unable to handle file extension 'zip'. #113

Open
MaroonBrian1928 opened this issue Jun 9, 2021 · 20 comments
Open

Comments

@MaroonBrian1928
Copy link

Whenever I try and run the install script I recieve an error about that (full log at bottom)
[ERROR] 0@115 Unable to handle file extension 'zip'.
that seems to come from

*) die "Unable to handle file extension '${FILE##*.}'.";;

Did Home Assistant change the way their images are zipped or something?

bash -c "$(wget -qLO - https://github.com/whiskerz007/proxmox_hassos_install/raw/master/install.sh)"

[INFO] Using 'local-zfs' for storage location.
[INFO] Container ID is 105.
Getting URL for latest Home Assistant disk image...
Downloading disk image...
Extracting disk image...
[ERROR] 0@115 Unable to handle file extension 'zip'.
@baschior
Copy link

baschior commented Jun 9, 2021

Extactly same problem here ... It worked yesterday as far as I can say ...

@meneerdeman
Copy link

Same here cannot get it to work

@mochman
Copy link

mochman commented Jun 9, 2021

Look like with HA 6.0, they have some files zipped up. If you want to install right now, download that install.sh script:
wget https://github.com/whiskerz007/proxmox_hassos_install/raw/master/install.sh
install the unzip program:
apt install unzip
edit the install file:
sed '/*"gz") gunzip -f $FILE;;/a\ \ *"zip") unzip -o $FILE;;' install.sh > temp.sh
mv temp.sh install.sh
chmod 755 install.sh
Now you can run install.sh:
./install.sh

@meneerdeman
Copy link

./install.sh

Works like a charm, tnx

@baschior
Copy link

baschior commented Jun 9, 2021

./install.sh
Lovely Thanks

@cafedelmar01
Copy link

@mochman Perfect! Thanks!

@mls228
Copy link

mls228 commented Jun 15, 2021

Saved me....thanks!

@bbaixo
Copy link

bbaixo commented Jun 15, 2021

Thanks, great work

@Ego-Matthisum
Copy link

Thanks from me too

@stanleyHODL
Copy link

tyvm!

@jabeproductions
Copy link

jabeproductions commented Jul 6, 2021

I tried the workaround and it isnt working for me.

IDK why some of that has a line through it.

`root@pve:~# wget https://github.com/whiskerz007/proxmox_hassos_install/raw/master/install.sh
--2021-07-04 16:26:19-- https://github.com/whiskerz007/proxmox_hassos_install/raw/master/install.sh
Resolving github.com (github.com)... 140.82.112.4
Connecting to github.com (github.com)|140.82.112.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/whiskerz007/proxmox_hassos_install/master/install.sh [following]
--2021-07-04 16:26:19-- https://raw.githubusercontent.com/whiskerz007/proxmox_hassos_install/master/install.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.110.133, 185.199.109.133, 185.199.111.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.110.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5378 (5.3K) [text/plain]
Saving to: ‘install.sh.1’

install.sh.1 100%[======================================================================================>] 5.25K --.-KB/s in 0s

2021-07-04 16:26:20 (102 MB/s) - ‘install.sh.1’ saved [5378/5378]

root@pve:# apt install unzip
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
zip
The following NEW packages will be installed:
unzip
0 upgraded, 1 newly installed, 0 to remove and 121 not upgraded.
Need to get 172 kB of archives.
After this operation, 580 kB of additional disk space will be used.
Get:1 http://ftp.us.debian.org/debian buster/main amd64 unzip amd64 6.0-23+deb10u2 [172 kB]
Fetched 172 kB in 0s (404 kB/s)
Selecting previously unselected package unzip.
(Reading database ... 43636 files and directories currently installed.)
Preparing to unpack .../unzip_6.0-23+deb10u2_amd64.deb ...
Unpacking unzip (6.0-23+deb10u2) ...
Setting up unzip (6.0-23+deb10u2) ...
Processing triggers for mime-support (3.62) ...
Processing triggers for man-db (2.8.5-2) ...
root@pve:
# sed '/*"gz") gunzip -f $FILE;;/a\ \ *"zip") unzip -o $FILE;;' install.sh > temp.sh
root@pve:# mv temp.sh install.sh
root@pve:
# chmod 755 install.sh
root@pve:# ./install.sh
[INFO] Using 'local-lvm' for storage location.
[INFO] Container ID is 100.
Getting URL for latest Home Assistant disk image...
Downloading disk image...
Extracting disk image...
Archive: haos_ova-6.1.vmdk.zip
inflating: haos_ova-6.1.vmdk
Creating VM...
400 Parameter verification failed.
boot: value does not match the regex pattern
qm set [OPTIONS]
[ERROR] 255@144 Unknown failure occured.
Logical volume "vm-100-disk-1" successfully removed
Logical volume "vm-100-disk-0" successfully removed
root@pve:
# `

@xman5735
Copy link

xman5735 commented Jul 7, 2021

Im having the same issue as you jabe, since 6.1 just was released i assume they did something again? hopefully a fix comes soon

a little searching and i found this post by Mochman
#114 (comment)

run this command as a temp fix
"
Well, until this is merged, you can use the one from my forked repo.
bash -c "$(wget -qLO - https://github.com/mochman/proxmox_hassos_install/raw/master/install.sh)"
"

@mochman
Copy link

mochman commented Jul 7, 2021

@jabeproductions,
There is another pull request to fix the zip issue here
#117
Maybe try using that script and see if it works for you.

@victorhooi
Copy link

I can confirm that the fix in #113 (comment) worked for me.

This is on Promox 7:

root@vm01:~# pveversion
pve-manager/7.0-10/d2f465d3 (running kernel: 5.11.22-1-pve)

@striker30345
Copy link

Confirm @mochman script from #114 (#114 (comment)) installed on Proxmox 7 (7.0-11) without issue just now.

jaap-stack added a commit to jaap-stack/proxmox_hassos_install that referenced this issue Aug 17, 2021
Solving the issue of not being able to handle the zip file
whiskerz007#113
@jaap-stack
Copy link

Hi, I updated the script so it can handle the zip format as delivered by HA. It is working for me :)
Just let you know that the previous scripts did not work for me.

First I downloaded the script, then did a download of the zipfile containing HA vmdk
https://github.com/home-assistant/operating-system/releases/download/6.2/haos_ova-6.2.vmdk.zip
And then gunzip to the resque: https://www.techwalla.com/articles/how-to-use-gunzip-to-unzip-zip-files

running on proxmox 7.0-8
Home assistant OS 6.2

Happy home automating!

PS this is my first wild attempt at a pull request here ;)

@sarvesh-lad
Copy link

Version: pve-manager/7.0-13/7aa7e488

After the fix, I'm getting below error.

[INFO] Using 'local-zfs' for storage location.
[INFO] Container ID is 100.
Getting URL for latest Home Assistant disk image...
Downloading disk image...
Checking for unzip command
Extracting disk image...
Archive:  haos_ova-6.5.vmdk.zip
  inflating: haos_ova-6.5.vmdk
Creating VM...
[ERROR] 1@147 Unknown failure occured.

@mochman
Copy link

mochman commented Oct 8, 2021

Version: pve-manager/7.0-13/7aa7e488

After the fix, I'm getting below error.

[INFO] Using 'local-zfs' for storage location.
[INFO] Container ID is 100.
Getting URL for latest Home Assistant disk image...
Downloading disk image...
Checking for unzip command
Extracting disk image...
Archive:  haos_ova-6.5.vmdk.zip
  inflating: haos_ova-6.5.vmdk
Creating VM...
[ERROR] 1@147 Unknown failure occured.

Have you looked at this issue that has to do with ZFS and a similar error you are getting?

@cryptedx
Copy link

cryptedx commented Oct 30, 2021

Look like with HA 6.0, they have some files zipped up. If you want to install right now, download that install.sh script: wget https://github.com/whiskerz007/proxmox_hassos_install/raw/master/install.sh install the unzip program: apt install unzip edit the install file: sed '/*"gz") gunzip -f $FILE;;/a\ \ *"zip") unzip -o $FILE;;' install.sh > temp.sh mv temp.sh install.sh chmod 755 install.sh Now you can run install.sh: ./install.sh

Perfectly working for me. Don't forget to use it with elevated rights the install script.

@hellresistor
Copy link

Look like with HA 6.0, they have some files zipped up. If you want to install right now, download that install.sh script: wget https://github.com/whiskerz007/proxmox_hassos_install/raw/master/install.sh install the unzip program: apt install unzip edit the install file: sed '/*"gz") gunzip -f $FILE;;/a\ \ *"zip") unzip -o $FILE;;' install.sh > temp.sh mv temp.sh install.sh chmod 755 install.sh Now you can run install.sh: ./install.sh

Perfectly working for me. Don't forget to use it with elevated rights the install script.

And you are getting the VM Running Success ?

My VM not Start...

kvm: device requires 67108864 bytes, block backend provides 131072 bytes
TASK ERROR: start failed: QEMU exited with code 1

pimoxerro2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests