Closed mstormi closed 3 years ago
I know what caused it, minor oversight in my rewrite part 1 I'll upload a fix shortly.
Selected upgrade via menu
=>
$ apt-get --yes upgrade Paketlisten werden gelesen... Fertig Abhängigkeitsbaum wird aufgebaut. Statusinformationen werden eingelesen.... Fertig Paketaktualisierung (Upgrade) wird berechnet... Fertig Die folgenden Pakete werden aktualisiert (Upgrade): rpi-eeprom 1 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert. Es müssen 322 kB an Archiven heruntergeladen werden. Nach dieser Operation werden 526 kB Plattenplatz zusätzlich benutzt. Holen:1 http://archive.raspberrypi.org/debian buster/main armhf rpi-eeprom all 7.5-1 [322 kB] Es wurden 322 kB in 0 s geholt (1.864 kB/s). apt-listchanges: Changelogs werden gelesen... (Lese Datenbank ... 89882 Dateien und Verzeichnisse sind derzeit installiert.) Vorbereitung zum Entpacken von .../rpi-eeprom_7.5-1_all.deb ... Entpacken von rpi-eeprom (7.5-1) über (7.4-1) ... rpi-eeprom (7.5-1) wird eingerichtet ... Trigger für man-db (2.8.5-2) werden verarbeitet ...
$ java_install_or_update Zulu11-32
$ java_zulu_update_available Zulu11-32 2020-07-08_14:59:24_CEST [openHABian] Installing Java Zulu prerequisites (libc, libstdc++, zlib1g)... OK 2020-07-08_14:59:24_CEST [openHABian] Downloading Java Zulu 11 32-Bit OpenJDK... $ wget -qO /opt/jdk/zulu.tar.gz https://cdn.azul.com/zulu-embedded/bin/zulu11.39.61-ca-jdk11.0.7-linux_aarch32hf.tar.gz
@mstormi What is wrong? That looks completely right.
I believe I had been running that version before (it's from April so I'm pretty sure I did) so why was it upgraded ?
If you run it again, does it try and update again?
yes. will merge and try your patch now.
trouble is, it already seems to have deleted the java binary and/or link (not sure when) so it installs anyway
Thats not right at all, it doesn't do that until after it has determined a update is avaiable? Did you try reinstalling using menu 40 and then upadting after?
Figured it out, its because of the arch checking is failing, I'm looking into it now.
No. I've run 02 - Upgrade and it installed the current Zulu hence the java binary is back.
Then I ran 02 again and once again, it started downloading. Here's the log of the 2nd time:
+ show_main_menu
+++ get_git_revision
+++ local branch shorthash revcount latesttag
++++ git -C /opt/openhabian rev-parse --abbrev-ref HEAD
+++ branch=master
++++ git -C /opt/openhabian log --pretty=format:%h -n 1
+++ shorthash=00dfda3
++++ git -C /opt/openhabian log --oneline
++++ wc -l
+++ revcount=709
++++ git -C /opt/openhabian describe --tags --abbrev=0
+++ latesttag=v1.5
+++ echo '[master]v1.5-709(00dfda3)'
++ whiptail --title 'Welcome to the openHABian Configuration Tool [master]v1.5-709(00dfda3)' --menu 'Setup Options' 20 116 13 --cancel-button Exit --ok-button Execute '00 | About openHABian' 'Information about the openHABian project and this tool' '' '' '01 | Select Branch' 'Select the openHABian config tool version ("branch") to run' '02 | Upgrade System' 'Upgrade all installed software packages (incl. openHAB) to their latest version' '03 | openHAB Stable' 'Install or upgrade to the latest stable release of openHAB 2' '' '' '10 | Apply Improvements' 'Apply the latest improvements to the basic openHABian setup ►' '20 | Optional Components' 'Choose from a set of optional software components ►' '30 | System Settings' 'A range of system and hardware related configuration steps ►' '40 | openHAB related' 'Switch the installed openHAB version or apply tweaks ►' '50 | Backup/Restore' 'Manage backups and restore your system ►' '' '' '60 | Manual/Fresh Setup' 'Go through all openHABian setup steps manually ►'
+ choice='02 | Upgrade System'
+ RET=0
+ '[' 0 -eq 1 ']'
+ '[' 0 -eq 255 ']'
+ [[ 02 | Upgrade System == '' ]]
+ [[ 02 | Upgrade System == \0\0* ]]
+ [[ 02 | Upgrade System == \0\1* ]]
+ [[ 02 | Upgrade System == \0\2* ]]
+ wait_for_apt_to_finish_update
++ timestamp
++ date +%F_%T_%Z
+ echo -n '2020-07-08_22:21:38_CEST [openHABian] Updating Linux package information ... '
2020-07-08_22:21:38_CEST [openHABian] Updating Linux package information ... + '[' -z 20686 ']'
+ timeout 60 tail --pid=20686 -f /dev/null
+ echo OK
OK
+ system_upgrade
++ timestamp
++ date +%F_%T_%Z
+ echo -n '2020-07-08_22:21:38_CEST [openHABian] Updating repositories and upgrading installed packages... '
2020-07-08_22:21:38_CEST [openHABian] Updating repositories and upgrading installed packages... + cond_redirect java_install_or_update Zulu11-32
+ '[' -n '' ']'
+ echo -e '\n\033[90;01m$ java_install_or_update Zulu11-32 \033[39;49;00m'
$ java_install_or_update Zulu11-32
+ java_install_or_update Zulu11-32
+ local branch
++ git -C /opt/openhabian rev-parse --abbrev-ref HEAD
+ branch=master
++ command -v java
+ [[ -x /usr/bin/java ]]
++ java -version
+ [[ openjdk version "11.0.7" 2020-04-14 LTS
OpenJDK Runtime Environment Zulu11.39+61-CA (build 11.0.7+10-LTS)
OpenJDK Client VM Zulu11.39+61-CA (build 11.0.7+10-LTS, mixed mode) == *\Z\u\l\u* ]]
+ [[ Zulu11-32 == \A\d\o\p\t\1\1 ]]
+ [[ Zulu11-32 != \A\d\o\p\t\1\1 ]]
++ java -version
+ [[ openjdk version "11.0.7" 2020-04-14 LTS
OpenJDK Runtime Environment Zulu11.39+61-CA (build 11.0.7+10-LTS)
OpenJDK Client VM Zulu11.39+61-CA (build 11.0.7+10-LTS, mixed mode) == *\A\d\o\p\t\O\p\e\n\J\D\K* ]]
+ [[ Zulu11-32 == \Z\u\l\u\8\-\6\4 ]]
+ [[ Zulu11-32 == \Z\u\l\u\1\1\-\6\4 ]]
+ [[ Zulu11-32 != \A\d\o\p\t\1\1 ]]
+ [[ Zulu11-32 == \Z\u\l\u\1\1\-\3\2 ]]
+ cond_redirect java_zulu_update_available Zulu11-32
+ '[' -n '' ']'
+ echo -e '\n\033[90;01m$ java_zulu_update_available Zulu11-32 \033[39;49;00m'
$ java_zulu_update_available Zulu11-32
+ java_zulu_update_available Zulu11-32
++ command -v java
+ [[ -x /usr/bin/java ]]
+ local availableVersion
+ local filter8
+ local filter11
+ local javaArch
+ local javaVersion
+ local jdkBin
+ local link
+ local requestedArch
++ command -v jq
+ [[ -x /usr/bin/jq ]]
+ filter8='[.zulu_version[] | tostring] | join(".")'
+ filter11='[.jdk_version[] | tostring] | join(".")'
++ find /opt/jdk/zulu11.39.61-ca-jdk11.0.7-linux_aarch32hf/bin ... -print -quit
+ jdkBin=/opt/jdk/zulu11.39.61-ca-jdk11.0.7-linux_aarch32hf/bin
++ /opt/jdk/zulu11.39.61-ca-jdk11.0.7-linux_aarch32hf/bin/java -version
++ grep -m 1 -o '[0-9]\{0,3\}\.[0-9]\{0,3\}\.[0-9]\{0,3\}[\.+][0-9]\{0,3\}'
++ sed 's|+|.|g'
++ head -1
+ javaVersion=11.0.7.10
+ link='https://api.azul.com/zulu/download/community/v1.0/bundles/latest/?os=linux&ext=tar.gz&javafx=false'
+ [[ Zulu11-32 == \Z\u\l\u\8\-\3\2 ]]
+ [[ Zulu11-32 == \Z\u\l\u\1\1\-\3\2 ]]
+ is_arm
+ is_armv6l
+ [[ '' == \a\r\m\v\6\l ]]
+ case "$(uname -m)" in
++ uname -m
+ return 1
+ is_armv7l
+ [[ '' == \a\r\m\v\7\l ]]
+ case "$(uname -m)" in
++ uname -m
+ return 0
+ return 0
+ requestedArch=aarch32hf
++ curl -s -H 'Accept: application/json' 'https://api.azul.com/zulu/download/community/v1.0/bundles/latest/?os=linux&ext=tar.gz&javafx=false&jdk_version=11&arch=arm&hw_bitness=32&abi=hard_float'
++ jq -r '[.jdk_version[] | tostring] | join(".")'
+ availableVersion=11.0.7.10
+ [[ -z aarch32hf ]]
+ [[ -z 11.0.7.10 ]]
++ /opt/jdk/zulu11.39.61-ca-jdk11.0.7-linux_aarch32hf/bin/java -version
+ [[ openjdk version "11.0.7" 2020-04-14 LTS
OpenJDK Runtime Environment Zulu11.39+61-CA (build 11.0.7+10-LTS)
OpenJDK Client VM Zulu11.39+61-CA (build 11.0.7+10-LTS, mixed mode) == *\a\a\r\c\h\3\2\h\f* ]]
++ /opt/jdk/zulu11.39.61-ca-jdk11.0.7-linux_aarch32hf/bin/java -version
+ [[ openjdk version "11.0.7" 2020-04-14 LTS
OpenJDK Runtime Environment Zulu11.39+61-CA (build 11.0.7+10-LTS)
OpenJDK Client VM Zulu11.39+61-CA (build 11.0.7+10-LTS, mixed mode) == *\i\6\8\6* ]]
++ /opt/jdk/zulu11.39.61-ca-jdk11.0.7-linux_aarch32hf/bin/java -version
+ [[ openjdk version "11.0.7" 2020-04-14 LTS
OpenJDK Runtime Environment Zulu11.39+61-CA (build 11.0.7+10-LTS)
OpenJDK Client VM Zulu11.39+61-CA (build 11.0.7+10-LTS, mixed mode) == *\a\a\r\c\h\6\4* ]]
++ /opt/jdk/zulu11.39.61-ca-jdk11.0.7-linux_aarch32hf/bin/java -version
+ [[ openjdk version "11.0.7" 2020-04-14 LTS
OpenJDK Runtime Environment Zulu11.39+61-CA (build 11.0.7+10-LTS)
OpenJDK Client VM Zulu11.39+61-CA (build 11.0.7+10-LTS, mixed mode) == *\x\6\4* ]]
+ [[ 11.0.7.10 == \1\1\.\0\.\7\.\1\0 ]]
+ [[ '' == \a\a\r\c\h\3\2\h\f ]]
+ return 0
+ java_zulu_prerequisite Zulu11-32
++ timestamp
++ date +%F_%T_%Z
+ echo -n '2020-07-08_22:21:43_CEST [openHABian] Installing Java Zulu prerequisites (libc, libstdc++, zlib1g)... '
2020-07-08_22:21:43_CEST [openHABian] Installing Java Zulu prerequisites (libc, libstdc++, zlib1g)... + [[ Zulu11-32 == \Z\u\l\u\8\-\6\4 ]]
+ [[ Zulu11-32 == \Z\u\l\u\1\1\-\6\4 ]]
+ is_arm
+ is_armv6l
+ [[ '' == \a\r\m\v\6\l ]]
+ case "$(uname -m)" in
++ uname -m
+ return 1
+ is_armv7l
+ [[ '' == \a\r\m\v\7\l ]]
+ case "$(uname -m)" in
++ uname -m
+ return 0
+ return 0
+ dpkg -s libc6:armhf libstdc++6:armhf zlib1g:armhf
+ echo OK
OK
+ return 0
++ command -v java
+ [[ -x /usr/bin/java ]]
+ [[ master == \s\t\a\b\l\e ]]
+ java_zulu_fetch Zulu11-32
+ local downloadlink
+ local jdkInstallLocation
+ local link
+ jdkInstallLocation=/opt/jdk
+ link='https://api.azul.com/zulu/download/community/v1.0/bundles/latest/binary/?os=linux&ext=tar.gz&javafx=false'
+ [[ Zulu11-32 == \Z\u\l\u\8\-\3\2 ]]
+ [[ Zulu11-32 == \Z\u\l\u\1\1\-\3\2 ]]
++ timestamp
++ date +%F_%T_%Z
+ echo -n '2020-07-08_22:21:43_CEST [openHABian] Downloading Java Zulu 11 32-Bit OpenJDK... '
2020-07-08_22:21:43_CEST [openHABian] Downloading Java Zulu 11 32-Bit OpenJDK... + is_arm
+ is_armv6l
+ [[ '' == \a\r\m\v\6\l ]]
+ case "$(uname -m)" in
++ uname -m
+ return 1
+ is_armv7l
+ [[ '' == \a\r\m\v\7\l ]]
+ case "$(uname -m)" in
++ uname -m
+ return 0
+ return 0
++ curl 'https://api.azul.com/zulu/download/community/v1.0/bundles/latest/binary/?os=linux&ext=tar.gz&javafx=false&jdk_version=11&arch=arm&hw_bitness=32&abi=hard_float' -s -L -I -o /dev/null -w '%{url_effective}'
+ downloadlink=https://cdn.azul.com/zulu-embedded/bin/zulu11.39.61-ca-jdk11.0.7-linux_aarch32hf.tar.gz
+ [[ -z https://cdn.azul.com/zulu-embedded/bin/zulu11.39.61-ca-jdk11.0.7-linux_aarch32hf.tar.gz ]]
+ mkdir -p /opt/jdk
+ rm -rf /opt/jdk/zulu11.39.61-ca-jdk11.0.7-linux_aarch32hf
+ cond_redirect wget -qO /opt/jdk/zulu.tar.gz https://cdn.azul.com/zulu-embedded/bin/zulu11.39.61-ca-jdk11.0.7-linux_aarch32hf.tar.gz
+ '[' -n '' ']'
+ echo -e '\n\033[90;01m$ wget -qO /opt/jdk/zulu.tar.gz https://cdn.azul.com/zulu-embedded/bin/zulu11.39.61-ca-jdk11.0.7-linux_aarch32hf.tar.gz \033[39;49;00m'
$ wget -qO /opt/jdk/zulu.tar.gz https://cdn.azul.com/zulu-embedded/bin/zulu11.39.61-ca-jdk11.0.7-linux_aarch32hf.tar.gz
+ wget -qO /opt/jdk/zulu.tar.gz https://cdn.azul.com/zulu-embedded/bin/zulu11.39.61-ca-jdk11.0.7-linux_aarch32hf.tar.gz
@mstormi Try with the latest patch it should work.
no that was with the latest patch already
yep, that now worked
I told openhabian to switch to Adopt. 1) OH was down before but the upgrade code made it start 2) I did systemctl stop openhab2 which did stop thaht start, but then Zulu was installed ??
Vorbereitung zum Entpacken von .../adoptopenjdk-11-hotspot-jre_11.0.7+10-2_armhf.deb ... Entpacken von adoptopenjdk-11-hotspot-jre (11.0.7+10-2) ... adoptopenjdk-11-hotspot-jre (11.0.7+10-2) wird eingerichtet ... update-alternatives: /usr/lib/jvm/adoptopenjdk-11-hotspot-jre-armhf/bin/java wird verwendet, um /usr/bin/java (java) im automatischen Modus bereitzustellen update-alternatives: /usr/lib/jvm/adoptopenjdk-11-hotspot-jre-armhf/bin/jjs wird verwendet, um /usr/bin/jjs (jjs) im automatischen Modus bereitzustellen update-alternatives: /usr/lib/jvm/adoptopenjdk-11-hotspot-jre-armhf/bin/keytool wird verwendet, um /usr/bin/keytool (keytool) im automatischen Modus bereitzustellen update-alternatives: /usr/lib/jvm/adoptopenjdk-11-hotspot-jre-armhf/bin/pack200 wird verwendet, um /usr/bin/pack200 (pack200) im automatischen Modus bereitzustellen update-alternatives: /usr/lib/jvm/adoptopenjdk-11-hotspot-jre-armhf/bin/rmid wird verwendet, um /usr/bin/rmid (rmid) im automatischen Modus bereitzustellen update-alternatives: /usr/lib/jvm/adoptopenjdk-11-hotspot-jre-armhf/bin/rmiregistry wird verwendet, um /usr/bin/rmiregistry (rmiregistry) im automatischen Modus bereitzustellen update-alternatives: /usr/lib/jvm/adoptopenjdk-11-hotspot-jre-armhf/bin/unpack200 wird verwendet, um /usr/bin/unpack200 (unpack200) im automatischen Modus bereitzustellen update-alternatives: /usr/lib/jvm/adoptopenjdk-11-hotspot-jre-armhf/lib/jexec wird verwendet, um /usr/bin/jexec (jexec) im automatischen Modus bereitzustellen OK
$ systemctl start openhab2.service Job for openhab2.service canceled.
$ java_zulu_update_available Zulu8-32 2020-07-03_16:54:32_CEST [openHABian] Installing Java Zulu prerequisites (libc, libstdc++, zlib1g)... OK 2020-07-03_16:54:32_CEST [openHABian] Downloading Java Zulu 8 32-Bit OpenJDK... $ wget -qO /opt/jdk/zulu.tar.gz https://cdn.azul.com/zulu-embedded/bin/zulu8.46.0.225-ca-jdk8.0.252-linux_aarch32hf.tar.gz