Openhabian config error on upgrade system

I am trying to upgrade my system using Openhabian config but it crashes out at the java update. Any ideas?

$ java_install_or_update
openjdk version "1.8.0_202"
OpenJDK Runtime Environment (Zulu8.36.0.152-CA-linux_aarch32hf) (build 1.8.0_202-b152)
OpenJDK Client VM (Zulu8.36.0.152-CA-linux_aarch32hf) (build 25.202-b152, mixed mode, Evaluation)

$ systemctl stop openhab2.service
openjdk version "1.8.0_202"
OpenJDK Runtime Environment (Zulu8.36.0.152-CA-linux_aarch32hf) (build 1.8.0_202-b152)
OpenJDK Client VM (Zulu8.36.0.152-CA-linux_aarch32hf) (build 25.202-b152, mixed mode, Evaluation)
2019-09-06_16:34:57_CEST [openHABian] Installing Java Zulu 32-Bit OpenJDK...
$ wget -nv -O /tmp/openhabian.DXUDF/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
2 Likes

Same issue here with openHABian, just some later build

OpenJDK Runtime Environment (Zulu8.40.0.178-CA-linux_aarch32hf) (build 1.8.0_222-b178)

Other than that the same error keeps popping up.

Same for me - openhab down :frowning:

Edit: a reboot sorts out openhab, but java still won’t update.

1 Like

I’m getting the same error - see below

2019-09-06_19:47:02_BST [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2019-09-06_19:47:02_BST [openHABian] Setting timezone based on IP geolocation... OK (America/Los_Angeles)
2019-09-06_11:51:01_PDT [openHABian] Setting locale based on openhabian.conf... OK
2019-09-06_11:57:02_PDT [openHABian] Setting hostname of the base system... OK
2019-09-06_11:57:03_PDT [openHABian] Setting the GPU memory split down to 16MB for headless system... OK
2019-09-06_11:57:03_PDT [openHABian] Enabling Audio output... OK
2019-09-06_11:57:06_PDT [openHABian] Installing basic can't-be-wrong packages (screen, vim, ...)... OK
2019-09-06_12:00:35_PDT [openHABian] Installing additional needed packages... OK
2019-09-06_12:02:01_PDT [openHABian] Adding slightly tuned bash config files to system... OK
2019-09-06_12:02:01_PDT [openHABian] Adding slightly tuned vim config file to system... OK
2019-09-06_12:02:01_PDT [openHABian] Downloading and setting up FireMotD... OK
2019-09-06_12:05:11_PDT [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-09-06_12:05:14_PDT [openHABian] Initial setup exiting with an error!

Newbie question - is this the reason that my setup process won’t finish?

Install again, will install now :slight_smile:

That fixed it - thank you.

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 https://github.com/openhab/openhabian/releases 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: