Trying to install latest version on Raspberry Pi 2.
Fails in relation to Zulu. Have enabled debugging and attached log below:
$ systemctl stop openhab2.service
Failed to stop openhab2.service: Unit openhab2.service not loaded.
2019-08-06_08:40:02_BST [openHABian] Installing Zulu Embedded OpenJDK...
$ mkdir -p /var/tmp/jdk-new
$ mkdir -p /opt/jdk
$ wget -nv -O /var/tmp/.zulu.813
wget: missing URL
Usage: wget [OPTION]... [URL]...
Try `wget --help' for more options.
$ tar -xpzf /var/tmp/.zulu.813 -C /var/tmp/jdk-new
tar (child): /var/tmp/.zulu.813: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
FAILED
2019-08-06_08:40:03_BST [openHABian] Initial setup exiting with an error!
here is a link to a github thread where this issue is being worked on
in that thread user tadythefish offers up step by step instructions for a workaround until it is fix:
You need to SSH in to you device …
then execute this command… sudo nano /opt/openhabian/functions/java-jre.bash
then press Ctrl+w (find)
and paste this # Fetch and copy new JAVA runtime
then delete the line BELOW this one.
And paste this cond_redirect wget -nv -O "$jdkTempLocation"/zulu8.tar.gz https://cdn.azul.com/zulu-embedded/bin/zulu8.40.0.178-ca-jdk1.8.0_222-linux_aarch32hf.tar.gz
Then press Ctrl+o (not zero but O… it means save)
And then press Ctrl+x to exit
Then execute this command sudo nano /boot/first-boot.bash
and find this line
(again press Ctrl + w and paste the line) echo -n "$(timestamp) [openHABian] Cloning myself... "
You will see this three lines… echo -n "$(timestamp) [openHABian] Cloning myself... " [ -d /opt/openhabian/ ] && rm -rf /opt/openhabian/ # check if we have remnants of a previous installation attempt. git clone -b master https://github.com/openhab/openhabian.git /opt/openhabian &>/dev/null
You need to disable these lines… You could delete them but it is better to put hash tags on the beginning (# )
the lines shoul look likne this
# [ -d /opt/openhabian/ ] && rm -rf /opt/openhabian/ # check if we have remnants of a previous installation attempt.
# git clone -b master https://github.com/openhab/openhabian.git /opt/openhabian &>/dev/null
And again press Ctrl + o (not zero) and Ctrl + x
then execute a reboot sudo reboot
and wait a while you should see openhab working if you navigate to :8080
If after aboul an hour still nothing SSH again and reboot again
Thanks your reply! I just follow step but still had problem .the log will show
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
FAILED
2019-11-02_11:04:09_PDT [openHABian] Initial setup exiting with an error!
Over the past few days I have been doing some testing and I installed openHABian 2 or 3 times on my Pi 3B+ with Raspbian Lite. I was pleasantly surprised the Zulu issue is at least temporarily worked around.
I saw comments on GitHub indicating Kai ran into this error.