whiskerz007 / proxmox_hassos_install

MIT License
884 stars 191 forks source link

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

Open MaroonBrian1928 opened 3 years ago

MaroonBrian1928 commented 3 years ago

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 https://github.com/whiskerz007/proxmox_hassos_install/blob/f6816052bb50c06f81106d328d9f4ba884e5d343/install.sh#L116

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 commented 3 years ago

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

meneerdeman commented 3 years ago

Same here cannot get it to work

mochman commented 3 years ago

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 commented 3 years ago

./install.sh

Works like a charm, tnx

baschior commented 3 years ago

./install.sh Lovely Thanks

cafedelmar01 commented 3 years ago

@mochman Perfect! Thanks!

mls228 commented 3 years ago

Saved me....thanks!

bbaixo commented 3 years ago

Thanks, great work

Ego-Matthisum commented 3 years ago

Thanks from me too

stanleyHODL commented 3 years ago

tyvm!

jabeproductions commented 3 years ago

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 commented 3 years ago

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 https://github.com/whiskerz007/proxmox_hassos_install/pull/114#issuecomment-860057088

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 commented 3 years ago

@jabeproductions, There is another pull request to fix the zip issue here https://github.com/whiskerz007/proxmox_hassos_install/pull/117 Maybe try using that script and see if it works for you.

victorhooi commented 3 years ago

I can confirm that the fix in https://github.com/whiskerz007/proxmox_hassos_install/issues/113#issuecomment-857586202 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 commented 3 years ago

Confirm @mochman script from #114 (https://github.com/whiskerz007/proxmox_hassos_install/pull/114#issuecomment-860057088) installed on Proxmox 7 (7.0-11) without issue just now.

jaap-stack commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 2 years ago

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