Closed marcusb closed 2 years ago
Looking into this, the problem is that the Java package it's trying to download returns a 502 response:
openhabian@habpi:~ $ wget 'https://cdn.azul.com/zulu-embedded/bin/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf.tar.gz'
--2021-10-30 22:11:06-- https://cdn.azul.com/zulu-embedded/bin/zulu11.52.13-ca-jdk11.0.13-linux_aarch32hf.tar.gz
Resolving cdn.azul.com (cdn.azul.com)... 104.18.20.159, 104.18.21.159
Connecting to cdn.azul.com (cdn.azul.com)|104.18.20.159|:443... connected.
HTTP request sent, awaiting response... 502 Bad Gateway
2021-10-30 22:11:06 ERROR 502: Bad Gateway.
However by then the script has already deleted the previous Java version. It would be safer to delete it only after a successful download.
(For those affected, a workaround is to switch to AdoptOpenJDK - menu option "40 openHAB related".)
You are correct that it would probably be safer to wait to remove until after successful download, I will try and see if that can be arranged. However, I believe that the issue is primarily caused by Azul in this case as it is their API/CDN that is failing not openHABian's code.
Issue information:
After running openhabian-config and selecting menu option "02 Upgrade System", it offered to update Java, and I accepted. This led to it removing the JRE and failing to install the new Zulu version. I am left with a non-functional system without a JRE.
System information:
Raspberry Pi 4 openHABian 3.1.0