Openhabian config error on upgrade system

Hi,

I’m running into the same issue.

Got a RPi 3 and I used the following image flashed with Etcher

https://github.com/openhab/openhabian/releases/download/v1.5/openhabian-pi-raspbian-201908050414-gitca0976f-crc6a66b5a1.img.xz

Tried it 3 times, always the same error:

2019-10-16_01:46:31_CEST [openHABian] Installing Java Zulu 32-Bit OpenJDK...
$ wget -nv -O /tmp/openhabian.CB04V/zulu8.tar.gz
http://: Invalid host name.

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
FAILED
[01:46:34] openhabian@openhab:/boot$

Has some an idea how to solve?

BR
Jarod

Same problem here.
The install just crashes with this same error.
RaspberryPi 2B+ on ethernet.

Here is the first-boot.log data:

2019-07-10_01:21:37_BST [openHABian] Starting the openHABian initial setup.
2019-07-10_01:21:37_BST [openHABian] Storing configuration… OK
2019-07-10_01:21:38_BST [openHABian] Starting webserver with installation log… OK
2019-07-10_01:21:44_BST [openHABian] Changing default username and password… OK
2019-07-10_01:21:46_BST [openHABian] Setting up Ethernet connection… OK
2019-07-10_01:21:46_BST [openHABian] Ensuring network connectivity… OK
2019-07-10_01:21:47_BST [openHABian] Waiting for dpkg/apt to get ready… OK
2019-10-16_11:00:15_BST [openHABian] Updating repositories and upgrading installed packages… OK
2019-10-16_11:15:03_BST [openHABian] Installing git package… OK
2019-10-16_11:15:51_BST [openHABian] Cloning myself… OK
2019-10-16_11:16:00_BST [openHABian] Executing ‘openhabian-setup.sh unattended’…
2019-10-16_11:16:00_BST [openHABian] Checking for root privileges… OK
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Reading package lists…
2019-10-16_11:16:12_BST [openHABian] Loading configuration file ‘/etc/openhabian.conf’… OK
2019-10-16_11:16:12_BST [openHABian] Setting timezone based on IP geolocation… FAILED
2019-10-16_11:18:26_BST [openHABian] Setting locale based on openhabian.conf… OK
2019-10-16_11:21:03_BST [openHABian] Setting hostname of the base system… OK
2019-10-16_11:21:04_BST [openHABian] Setting the GPU memory split down to 16MB for headless system… OK
2019-10-16_11:21:04_BST [openHABian] Enabling Audio output… OK
2019-10-16_11:21:05_BST [openHABian] Installing basic can’t-be-wrong packages (screen, vim, …)… OK
2019-10-16_11:22:44_BST [openHABian] Installing additional needed packages… OK
2019-10-16_11:23:25_BST [openHABian] Adding slightly tuned bash config files to system… OK
2019-10-16_11:23:25_BST [openHABian] Adding slightly tuned vim config file to system… OK
2019-10-16_11:23:25_BST [openHABian] Downloading and setting up FireMotD… OK
2019-10-16_11:26:11_BST [openHABian] Installing Java Zulu 32-Bit OpenJDK…
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
FAILED
2019-10-16_11:26:22_BST [openHABian] Initial setup exiting with an error!

Could it be related to the FAIL of the geolocation?

… and same issue on a Pi3B V1.2.

Fixed the problem with geolocation … but still the same error.

Same Issue here:

[openHABian] Installing Java Zulu 32-Bit OpenJDK...
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
FAILED

Has anybody an idea what’s going wrong? Maybe a wrong update on Java ZuLu?!

I have the same problem

Same issue on my Raps:

$ java_install_or_update
openjdk version “1.8.0_222”
OpenJDK Runtime Environment (Zulu8.40.0.178-CA-linux_aarch32hf) (build 1.8.0_222-b178)
OpenJDK Client VM (Zulu8.40.0.178-CA-linux_aarch32hf) (build 25.222-b178, mixed mode, Evaluation)
$ systemctl stop openhab2.service

openjdk version “1.8.0_222”
OpenJDK Runtime Environment (Zulu8.40.0.178-CA-linux_aarch32hf) (build 1.8.0_222-b178)
OpenJDK Client VM (Zulu8.40.0.178-CA-linux_aarch32hf) (build 25.222-b178, mixed mode, Evaluation)
2019-10-16_20:35:12_CEST [openHABian] Installing Java Zulu 32-Bit OpenJDK…
$ wget -nv -O /tmp/openhabian.TSOQm/zulu8.tar.gz

http://: Ungültiger Hostname.
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
FAILED

this is somehow related, but I can’t apply the fix, it won’t work:

However, marker it might fix your problem

Same issue here! Tried it 2 times with no success.

Aargh !!! Same problem here with a new Raspberry Pi 4 4Gb Fails on Zulu ?

Same problem for me:

$ apt-get --yes upgrade
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Paketaktualisierung (Upgrade) wird berechnet... Fertig
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.

$ java_install_or_update
openjdk version "1.8.0_222"
OpenJDK Runtime Environment (Zulu8.40.0.178-CA-linux_aarch32hf) (build 1.8.0_222-b178)
OpenJDK Client VM (Zulu8.40.0.178-CA-linux_aarch32hf) (build 25.222-b178, mixed mode, Evaluation)

$ systemctl stop openhab2.service
openjdk version "1.8.0_222"
OpenJDK Runtime Environment (Zulu8.40.0.178-CA-linux_aarch32hf) (build 1.8.0_222-b178)
OpenJDK Client VM (Zulu8.40.0.178-CA-linux_aarch32hf) (build 25.222-b178, mixed mode, Evaluation)
2019-10-16_19:55:43_CEST [openHABian] Installing Java Zulu 32-Bit OpenJDK...
$ wget -nv -O /tmp/openhabian.HMVGJ/zulu8.tar.gz
http://: Ungültiger Hostname.

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
FAILED
[19:55:47] hab@openHABianPi:~$

Same here during intial set-up on Pi4B 4Gbits

2019-10-16_22:26:37_CEST [openHABian] Installing Java Zulu 32-Bit OpenJDK…
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
FAILED
2019-10-16_22:26:40_CEST [openHABian] Initial setup exiting with an error!

1 Like

There appears to be a parallel issue:

Apparently:

Hello. I think the issue is in the committed file openhabian/functions/java-jre.bash.

line 49

javaPath=$(echo $downloadPath|sed ‘s|http://cdn.azul.com/zulu-embedded/bin/||’)
should be
javaPath=$(echo $downloadPath|sed ‘s|https://cdn.azul.com/zulu-embedded/bin/||’)

cause the url where the zulu package is downloaded is not http but https.

This also prevent on a fresh install to have openhab2 starting (since java is not correctly installed).

Best Regards.

Chic

In my installation, java-jre.bash appear sto be overwritten/reloaded so just editing the file did not work. I also tried a manual install of Zulu8 - also did not work.

This has resulted in a V1.5.1 release which fixes this issue:

@Xanox Nice temporary fix!
I saw on GitHub that EliasGabrielsson will make another release (v1.5.1) tonight with the patch implemented.

I am currently trying to locate V1.5.1

Unfortunately Releases · openhab/openhabian · GitHub points to 1.5. To get the updates you need

As usually will you get upgrades continuously by updating the tool from the openhabian-config menu.

Trying this:

Reading package lists… Done
Building dependency tree
Reading state information… Done
Calculating upgrade… Done
The following packages were automatically installed and are no longer required:
rpi.gpio-common triggerhappy
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

$ java_install_or_update
openjdk version “1.8.0_181”
OpenJDK Runtime Environment (Zulu 8.31.1.122-linux_aarch32hf) (build 1.8.0_181-b122)
OpenJDK Client VM (Zulu 8.31.1.122-linux_aarch32hf) (build 25.181-b122, mixed mode, Evaluation)

$ systemctl stop openhab2.service
Failed to stop openhab2.service: Unit openhab2.service not loaded.
openjdk version “1.8.0_181”
OpenJDK Runtime Environment (Zulu 8.31.1.122-linux_aarch32hf) (build 1.8.0_181-b122)
OpenJDK Client VM (Zulu 8.31.1.122-linux_aarch32hf) (build 25.181-b122, mixed mode, Evaluation)
2019-10-17_21:35:14_AEST [openHABian] Installing Java Zulu 32-Bit OpenJDK…
$ wget -nv -O /tmp/openhabian.pVGPu/zulu8.tar.gz
http://: Invalid host name.

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
FAILED
[21:35:19] openhabian@openhab:~$

… and openhab-config exits ungracefully

I think I will go dig in the garden :slight_smile:

you can edit the java-jre.bash file, save it somewhere else
then while the install script is running, overwrite it with your saved file.
best is to delete all files from the folder, this way you can see when the script repopulates it so you can copy your file

Same here …

I have the same issue as well.

I think the issue is because the Zulu page for downloads has changed .

I worked around this by adding

https://cdn.azul.com/zulu-embedded/bin/zulu8.40.0.178-ca-jdk1.8.0_222-linux_aarch32hf.tar.gz

after line 206 so it looks like

    | jq -r "$filter"`
downloadlink="https://cdn.azul.com/zulu-embedded/bin/zulu8.40.0.178-ca-jdk1.8.0_222-linux_aarch32hf.tar.gz"
if [ -z "$downloadlink" ]; then return 1; fi

32bit arm version are now only visible on their site if the ‘old versions’ is toggled .

2 Likes

How did you go about adding those lines? What file and how did you access it?

@mstormi