Openhabian config error on upgrade system

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

It is in the file:
/opt/openhabian/functions/java-jre.bash

Insert the line after the existing downloadlink=curl … line
Save the file
Run sudo openhabian-config
Select 02-Upgrade system

sudo reboot now

wait …

openhab:8080 !!!

Can’t guarantee what will happen next update/upgrade

Looks like all is OK - see output below from openhabian-config.

Further Java update is disabled, because the certificate is wrong or the Release file is wrong.
So openHAB remains stable during reboots and openhabian-config’s.
Currently running 2.5.0-snapshot.

sudo openhabian-config
[sudo] password for openhabian:
2019-10-18_14:58:49_AEST [openHABian] Checking for root privileges… OK
Ign:1 https://repos.azulsystems.com/debian stable InRelease
Err:2 https://repos.azulsystems.com/debian stable Release

Ok. nice workaround. But what do i do when i set up a brand new pi?
regards
Jonas

2 Likes

Do you know how to make the install script skip java?

I tried manually installing it, but I still get errors:

2019-10-18_10:30:06_EEST [openHABian] Installing basic can’t-be-wrong packages (screen, vim, …)… OK
2019-10-18_10:30:11_EEST [openHABian] Installing additional needed packages… OK
2019-10-18_10:30:14_EEST [openHABian] Adding slightly tuned bash config files to system… OK
2019-10-18_10:30:14_EEST [openHABian] Adding slightly tuned vim config file to system… OK
2019-10-18_10:30:14_EEST [openHABian] Downloading and setting up FireMotD… OK
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)
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-18_10:32:26_EEST [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-18_10:32:30_EEST [openHABian] Initial setup exiting with an error

1 Like

check this out…

2 Likes

Thank you - I tried.
I can’t see an opt folder on my sd card.
i tried editing the bash file like explained in step 2 but step 1 is missing and so it does not work …
I still think this link only helps people that already installed openhabian, right?

I can’t get it to work eather.
I keep getting the same error and the install routine hangs.

@SibasishPasupalak, can you specify when exactly the two files should be altered.

Thx,
Mario

This one worked!

Thank you @SibasishPasupalak !

1 Like

Hi there,
I followed this workaround. But now my HabPanel items don’t work anymore. I use the 5-events-calendar and all entries say “undef”.
Can you give me a hint how to repair that? (I really don’t know anything about Jave.))

I have the same problem, I am trying to install openhabian on a new pi 3 b.

2019-10-18_18:35:16_CEST [openHABian] Downloading and setting up FireMotD... OK 
2019-10-18_18:36:50_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-18_18:36:58_CEST [openHABian] Initial setup exiting with an error!

I have the same problem. I want to do a fresh installation with openhabian image version 1.5.1 on a pi.

$ apt-get --yes upgrade
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

$ systemctl stop openhab2.service
Failed to stop openhab2.service: Unit openhab2.service not loaded.
2019-10-18_20:05:36_CEST [openHABian] Installing Java Zulu 32-Bit OpenJDK...
$ wget -nv -O /tmp/openhabian.2hjxH/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

Hi!

I can’t see an opt folder on my sd card.

To see this folder you have to login in your system. Login: openhabian password: openhabian.

yeah, I know, I wrote the fix :slight_smile:
danpadure it’s me on github :wink:

1 Like

@SibasishPasupalak
Thx, It worked for me!