Openhabian and Zulu 64-bit

With openhabian, how to install Zulu 64bit?
I’ve tried openhabian “Manual/Fresh Setup” and checked " Zulu OpenJDK 64-bit".
However the script installs x32 instead x64. Is this some bug in the script?

What OS? I believe Raspbian is still a 32-bit OS.

You don’t want 64bit Zulu, there’s nothing but disadvantages.
But I agree it should install 64bit if you choose to install, opened an issue for you.

1 Like

What hardware/baseOS do you use?

Intel NUC + Ubuntu

   Static hostname: galactica
         Icon name: computer-desktop
           Chassis: desktop
        Machine ID: 84590eb9aba546b997174ba94bb0a3ce
           Boot ID: 274076326dda4017a12e47cadfe3798d
  Operating System: Ubuntu 16.04.6 LTS
            Kernel: Linux 4.15.0-62-generic
      Architecture: x86-64

    description: Desktop Computer
    width: 64 bits
    capabilities: smbios-2.8 dmi-2.7 vsyscall32
    configuration: administrator_password=disabled boot=normal chassis=desktop frontpanel_password=disabled keyboard_password=disabled power-on_password=disabled uuid=005DB7BE-1A85-E511-8423-C03FD56C45B6
  *-core
       description: Motherboard
       product: D54250WYK
       vendor: Intel Corporation
       physical id: 0
       version: H13922-305
       serial: GEWY42800FUK
       slot: To be filled by O.E.M.
     *-firmware
          description: BIOS
          vendor: Intel Corp.
          physical id: 0
          version: WYLPT10H.86A.0041.2015.0720.1108
          date: 07/20/2015
          size: 64KiB
          capacity: 6592KiB
          capabilities: pci upgrade shadowing cdboot bootselect socketedrom edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int14serial int17printer acpi usb biosbootspecification uefi
     *-cpu
          description: CPU
          product: Intel(R) Core(TM) i5-4250U CPU @ 1.30GHz
          vendor: Intel Corp.
          physical id: 3a
          bus info: cpu@0
          version: Intel(R) Core(TM) i5-4250U CPU @ 1.30GHz
          slot: CPU 1
          size: 950MHz
          capacity: 1700MHz
          width: 64 bits
          clock: 100MHz

Re-reading, I’m confused.
You are on x86 and openHABian installed 32bit Zulu for you when you ran the initial unattended install, is that correct? Or why was 32bit installed in the first place?

I’m on x86-64 so why not to use 64 bit of java?
The Openhabian behavior is just as i wrote in this post . Whenever I select Zulu openJDK 64-bit openhabian installs 32bit instead.
Also if I want to update system Zulu Java 32bit is installed again and again even if there is no updated. The same behavior is is when I reinstall Openhab completely i purge it from the system and then select Fresh Setup, select Openhab testing + Java 64 and openhabian installs openhab but with 32 version of java. Only 1-2 times for some reason the correct 64 version of java was installed. I have no idea what was the reason for these 2 exceptions that it worked.

That’s ok on x86 but not on ARM.
I’m wondering why you want to install it - is it not already 64bit by initial install ?
How did you install openHABian in the first place?

Can you please add a line set -x to /opt/openhabian/functions/menu.bash as line 168 (before “choosenComponents …”) and retry installing.

Different problem, don’t mix please.
https://github.com/openhab/openhabian/pull/819 will probably fix that.

I’m wondering why you want to install it - is it not already 64bit by initial install ?

Originaly it was because in 32bit you could only set about 3GB of memory for Java and I have had big OutOfMemory Heap Space issues when using ipcamera binding. This caused OH stop responding.

How did you install openHABian in the first place?

Just followed docs

Can you please add a line set -x to /opt/openhabian/functions/menu.bash as line 168 (before “choosenComponents …”) and retry installing.

[20:46:47] root@openhabian:/home/openhabian# java -version
openjdk version "1.8.0_232"
OpenJDK Runtime Environment (Zulu 8.42.0.21-CA-linux32) (build 1.8.0_232-b18)
OpenJDK Server VM (Zulu 8.42.0.21-CA-linux32) (build 25.232-b18, mixed mode)
[20:46:52] root@openhabian:/home/openhabian# openhabian-config
2020-04-16_20:47:33_CEST [openHABian] Checking for root privileges... OK
Hit:1 http://pl.archive.ubuntu.com/ubuntu xenial InRelease
Ign:2 http://oem.archive.canonical.com/updates xenial-dawson InRelease
Hit:3 http://pl.archive.ubuntu.com/ubuntu xenial-updates InRelease
Ign:4 http://oem.archive.canonical.com/updates xenial-oem InRelease
Hit:5 http://pl.archive.ubuntu.com/ubuntu xenial-backports InRelease
Hit:6 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:7 http://oem.archive.canonical.com/updates xenial-dawson Release
Hit:8 http://oem.archive.canonical.com/updates xenial-oem Release
Hit:9 https://deb.nodesource.com/node_10.x xenial InRelease
Ign:10 https://openhab.jfrog.io/openhab/openhab-linuxpkg testing InRelease
Hit:11 https://openhab.jfrog.io/openhab/openhab-linuxpkg testing Release
Reading package lists... Done
2020-04-16_20:47:39_CEST [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2020-04-16_20:47:39_CEST [openHABian] openHABian configuration tool version: [master]v1.5-573(613d91e)
2020-04-16_20:47:39_CEST [openHABian] Checking for changes in origin... OK
++ whiptail --title 'Manual/Fresh Setup' --checklist 'Choose which system components to install or configure:' 20 116 13 --cancel-button Back --ok-button Execute '62 | Packages' 'Install needed and recommended system packages ' OFF '63 | Zulu OpenJDK 32-bit' 'Install Zulu OpenJDK Java 8 32-bit' OFF '   | Zulu OpenJDK 64-bit' 'Install Zulu OpenJDK Java 8 64-bit' OFF '64 | openHAB stable' 'Install the latest openHAB release' OFF '   | openHAB testing' 'Install the latest openHAB testing (milestone) build' OFF '   | openHAB unstable' '(Alternative) Install the latest openHAB SNAPSHOT build' OFF '65 | System Tweaks' 'Configure system permissions and settings typical for openHAB ' OFF '66 | Samba' 'Install the Samba file sharing service and set up openHAB 2 shares ' OFF '67 | Log Viewer' 'The openHAB Log Viewer webapp (frontail) ' OFF '68 | FireMotD' 'Configure FireMotD to present a system overview on SSH login (optional) ' OFF '69 | Bash&Vim Settings' 'Apply openHABian settings for bash, vim and nano (optional) ' OFF '6A | Use ZRAM' 'Use compressed RAM/disk sync for active directories to avoid SD card corruption' OFF '   | Uninstall ZRAM' 'Don'\''t use compressed memory (back to standard Raspbian filesystem layout)' OFF
+ choosenComponents='"   | Zulu OpenJDK 64-bit"'
+ '[' 0 -eq 1 ']'
+ '[' 1 -eq 255 ']'
+ [[ "   | Zulu OpenJDK 64-bit" == *\6\2* ]]
+ [[ "   | Zulu OpenJDK 64-bit" == *\6\3* ]]
+ [[ "   | Zulu OpenJDK 64-bit" == *\Z\u\l\u\ \O\p\e\n\J\D\K\ \6\4\-\b\i\t* ]]
+ update_config_java 64-bit
+ cond_redirect grep -q '^java_arch' /etc/openhabian.conf
+ '[' -n '' ']'
+ echo -e '\n\033[90;01m$ grep -q ^java_arch /etc/openhabian.conf \033[39;49;00m'

$ grep -q ^java_arch /etc/openhabian.conf
+ grep -q '^java_arch' /etc/openhabian.conf
+ return 1
+ echo option=64-bit
+ source /etc/openhabian.conf
++ hostname=openHABianDevice
++ userpw=password
++ username=openhabian
++ timeserver=0.pool.ntp.org
++ timezone=Europe/Berlin
++ locales='en_US.UTF-8 de_DE.UTF-8'
++ system_default_locale=en_US.UTF-8
++ option=64-bit
++ option=64-bit
++ option=64-bit
++ option=64-bit
++ option=64-bit
++ option=64-bit
++ option=64-bit
++ option=64-bit
++ option=32-bit
++ option=64-bit
++ option=64-bit
++ option=64-bit
++ option=64-bit
++ option=64-bit
++ option=64-bit
++ option=64-bit
++ option=64-bit
++ option=32-bit
++ option=32-bit
++ option=64-bit
++ option=64-bit
+ java_install_or_update ''
++ command -v java
+ '[' -x /usr/bin/java ']'
++ java -version
openjdk version "1.8.0_232"
OpenJDK Runtime Environment (Zulu 8.42.0.21-CA-linux32) (build 1.8.0_232-b18)
OpenJDK Server VM (Zulu 8.42.0.21-CA-linux32) (build 25.232-b18, mixed mode)
+ [[ ! '' == *\Z\u\l\u* ]]
+ cond_redirect systemctl stop openhab2.service
+ '[' -n '' ']'
+ echo -e '\n\033[90;01m$ systemctl stop openhab2.service \033[39;49;00m'

$ systemctl stop openhab2.service
+ systemctl stop openhab2.service
+ return 0
+ '[' '' == 64-bit ']'
+ java_zulu_tar_update_available
++ command -v java
+ '[' '!' -x /usr/bin/java ']'
+ local availableVersion
+ local javaVersion
+ local filter
++ command -v jq
+ '[' '!' -x /usr/bin/jq ']'
+ filter='[.[] | select(.category_slug == "java-8-lts") | select(.latest == 1)  | .["openjdk_version"]] | first'
++ curl https://www.azul.com/wp-admin/admin-ajax.php -s -H 'Accept: */*' -H 'X-Requested-With: XMLHttpRequest' -H 'Content-Type: multipart/form-data; boundary=---------------------------17447165291708986765346780730' -H 'Connection: keep-alive' -H 'Cache-Control: max-age=0' -H 'TE: Trailers' --data-binary '-----------------------------17447165291708986765346780730
Content-Disposition: form-data; name="action"

bundles_filter_query
-----------------------------17447165291708986765346780730
Content-Disposition: form-data; name="action"

search_bundles
-----------------------------17447165291708986765346780730--
++ jq -r '[.[] | select(.category_slug == "java-8-lts") | select(.latest == 1)  | .["openjdk_version"]] | first'
'
+ availableVersion=8u252b14
+ availableVersion=252b14
++ java -version
openjdk version "1.8.0_232"
OpenJDK Runtime Environment (Zulu 8.42.0.21-CA-linux32) (build 1.8.0_232-b18)
OpenJDK Server VM (Zulu 8.42.0.21-CA-linux32) (build 25.232-b18, mixed mode)
+ javaVersion=
+ [[ '' == *\2\5\2\b\1\4* ]]
+ return 0
+ java_zulu_8_tar 32-bit
+ local link
+ local jdkTempLocation
+ local jdkInstallLocation
+ local jdkBin
+ local jdkLib
+ local jdkArch
+ local jdkSecurity
+ '[' 32-bit == 32-bit ']'
++ timestamp
++ date +%F_%T_%Z
+ echo -n '2020-04-16_20:48:10_CEST [openHABian] Installing Java Zulu 32-Bit OpenJDK... '
2020-04-16_20:48:10_CEST [openHABian] Installing Java Zulu 32-Bit OpenJDK... + is_arm
+ case "$(uname -m)" in
++ uname -m
+ return 1
+ link=https://cdn.azul.com/zulu/bin/zulu8.42.0.21-ca-jdk8.0.232-linux_i686.tar.gz
+ jdkArch=i386
+ is_aarch64
+ case "$(uname -m)" in
++ uname -m
+ return 1
+ is_x86_64
+ case "$(uname -m)" in
++ uname -m
+ return 0
+ dpkg --add-architecture i386
+ cond_redirect apt update
+ '[' -n '' ']'
+ echo -e '\n\033[90;01m$ apt update \033[39;49;00m'

$ apt update
+ apt update
Hit:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:2 http://pl.archive.ubuntu.com/ubuntu xenial InRelease
Hit:3 http://pl.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:4 https://deb.nodesource.com/node_10.x xenial InRelease
Hit:5 http://pl.archive.ubuntu.com/ubuntu xenial-backports InRelease
Ign:6 https://openhab.jfrog.io/openhab/openhab-linuxpkg testing InRelease
Hit:7 https://openhab.jfrog.io/openhab/openhab-linuxpkg testing Release
Ign:9 http://oem.archive.canonical.com/updates xenial-dawson InRelease
Ign:10 http://oem.archive.canonical.com/updates xenial-oem InRelease
Hit:11 http://oem.archive.canonical.com/updates xenial-dawson Release
Hit:12 http://oem.archive.canonical.com/updates xenial-oem Release
Reading package lists... Done
Building dependency tree
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
+ return 0
+ cond_redirect apt -y install libc6:i386 libncurses5:i386 libstdc++6:i386
+ '[' -n '' ']'
+ echo -e '\n\033[90;01m$ apt -y install libc6:i386 libncurses5:i386 libstdc++6:i386 \033[39;49;00m'

$ apt -y install libc6:i386 libncurses5:i386 libstdc++6:i386
+ apt -y install libc6:i386 libncurses5:i386 libstdc++6:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
libncurses5:i386 is already the newest version (6.0+20160213-1ubuntu1).
libc6:i386 is already the newest version (2.23-0ubuntu11).
libstdc++6:i386 is already the newest version (5.4.0-6ubuntu1~16.04.12).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
+ return 0
++ mktemp -d /tmp/openhabian.XXXXX
+ jdkTempLocation=/tmp/openhabian.ICJBI
+ '[' -z /tmp/openhabian.ICJBI ']'
+ jdkInstallLocation=/opt/jdk
+ mkdir -p /opt/jdk
+ cond_redirect wget -nv -O /tmp/openhabian.ICJBI/zulu8.tar.gz https://cdn.azul.com/zulu/bin/zulu8.42.0.21-ca-jdk8.0.232-linux_i686.tar.gz
+ '[' -n '' ']'
+ echo -e '\n\033[90;01m$ wget -nv -O /tmp/openhabian.ICJBI/zulu8.tar.gz https://cdn.azul.com/zulu/bin/zulu8.42.0.21-ca-jdk8.0.232-linux_i686.tar.gz \033[39;49;00m'

$ wget -nv -O /tmp/openhabian.ICJBI/zulu8.tar.gz https://cdn.azul.com/zulu/bin/zulu8.42.0.21-ca-jdk8.0.232-linux_i686.tar.gz
+ wget -nv -O /tmp/openhabian.ICJBI/zulu8.tar.gz https://cdn.azul.com/zulu/bin/zulu8.42.0.21-ca-jdk8.0.232-linux_i686.tar.gz
2020-04-16 20:48:30 URL:https://cdn.azul.com/zulu/bin/zulu8.42.0.21-ca-jdk8.0.232-linux_i686.tar.gz [108802025/108802025] -> "/tmp/openhabian.ICJBI/zulu8.tar.gz" [1]
+ return 0
+ tar -xpzf /tmp/openhabian.ICJBI/zulu8.tar.gz -C /tmp/openhabian.ICJBI
+ '[' 0 -ne 0 ']'
+ rm -rf /tmp/openhabian.ICJBI/zulu8.tar.gz /opt/jdk/zulu8.42.0.21-ca-jdk8.0.232-linux_i686
+ mv /tmp/openhabian.ICJBI/zulu8.42.0.21-ca-jdk8.0.232-linux_i686 /opt/jdk/
+ rmdir /tmp/openhabian.ICJBI
++ find /opt/jdk/zulu8.42.0.21-ca-jdk8.0.232-linux_i686/bin ... -print -quit
+ jdkBin=/opt/jdk/zulu8.42.0.21-ca-jdk8.0.232-linux_i686/bin
++ find /opt/jdk/zulu8.42.0.21-ca-jdk8.0.232-linux_i686/lib ... -print -quit
+ jdkLib=/opt/jdk/zulu8.42.0.21-ca-jdk8.0.232-linux_i686/lib
+ cond_redirect update-alternatives --remove-all java
+ '[' -n '' ']'
+ echo -e '\n\033[90;01m$ update-alternatives --remove-all java \033[39;49;00m'

$ update-alternatives --remove-all java
+ update-alternatives --remove-all java
+ return 0
+ cond_redirect update-alternatives --remove-all javac
+ '[' -n '' ']'
+ echo -e '\n\033[90;01m$ update-alternatives --remove-all javac \033[39;49;00m'

$ update-alternatives --remove-all javac
+ update-alternatives --remove-all javac
+ return 0
+ cond_redirect update-alternatives --install /usr/bin/java java /opt/jdk/zulu8.42.0.21-ca-jdk8.0.232-linux_i686/bin/java 1083000
+ '[' -n '' ']'
+ echo -e '\n\033[90;01m$ update-alternatives --install /usr/bin/java java /opt/jdk/zulu8.42.0.21-ca-jdk8.0.232-linux_i686/bin/java 1083000 \033[39;49;00m'

$ update-alternatives --install /usr/bin/java java /opt/jdk/zulu8.42.0.21-ca-jdk8.0.232-linux_i686/bin/java 1083000
+ update-alternatives --install /usr/bin/java java /opt/jdk/zulu8.42.0.21-ca-jdk8.0.232-linux_i686/bin/java 1083000
update-alternatives: using /opt/jdk/zulu8.42.0.21-ca-jdk8.0.232-linux_i686/bin/java to provide /usr/bin/java (java) in auto mode
+ return 0
+ cond_redirect update-alternatives --install /usr/bin/javac javac /opt/jdk/zulu8.42.0.21-ca-jdk8.0.232-linux_i686/bin/javac 1083000
+ '[' -n '' ']'
+ echo -e '\n\033[90;01m$ update-alternatives --install /usr/bin/javac javac /opt/jdk/zulu8.42.0.21-ca-jdk8.0.232-linux_i686/bin/javac 1083000 \033[39;49;00m'

$ update-alternatives --install /usr/bin/javac javac /opt/jdk/zulu8.42.0.21-ca-jdk8.0.232-linux_i686/bin/javac 1083000
+ update-alternatives --install /usr/bin/javac javac /opt/jdk/zulu8.42.0.21-ca-jdk8.0.232-linux_i686/bin/javac 1083000
update-alternatives: using /opt/jdk/zulu8.42.0.21-ca-jdk8.0.232-linux_i686/bin/javac to provide /usr/bin/javac (javac) in auto mode
+ return 0
+ echo /opt/jdk/zulu8.42.0.21-ca-jdk8.0.232-linux_i686/lib/i386
+ echo /opt/jdk/zulu8.42.0.21-ca-jdk8.0.232-linux_i686/lib/i386/jli
+ ldconfig
+ java_zulu_install_crypto_extension
+ local jdkPath
+ local jdkSecurity
+ local policyTempLocation
+++ command -v java
++ readlink -f /usr/bin/java
+ jdkPath=/opt/jdk/zulu8.42.0.21-ca-jdk8.0.232-linux_i686/bin/java
++ dirname /opt/jdk/zulu8.42.0.21-ca-jdk8.0.232-linux_i686/bin/java
+ jdkSecurity=/opt/jdk/zulu8.42.0.21-ca-jdk8.0.232-linux_i686/bin/../lib/security
+ mkdir -p /opt/jdk/zulu8.42.0.21-ca-jdk8.0.232-linux_i686/bin/../lib/security
++ mktemp -d /tmp/openhabian.XXXXX
+ policyTempLocation=/tmp/openhabian.oB5dc
+ '[' -z /tmp/openhabian.oB5dc ']'
+ cond_redirect wget -nv -O /tmp/openhabian.oB5dc/crypto.zip http://cdn.azul.com/zcek/bin/ZuluJCEPolicies.zip
+ '[' -n '' ']'
+ echo -e '\n\033[90;01m$ wget -nv -O /tmp/openhabian.oB5dc/crypto.zip http://cdn.azul.com/zcek/bin/ZuluJCEPolicies.zip \033[39;49;00m'

$ wget -nv -O /tmp/openhabian.oB5dc/crypto.zip http://cdn.azul.com/zcek/bin/ZuluJCEPolicies.zip
+ wget -nv -O /tmp/openhabian.oB5dc/crypto.zip http://cdn.azul.com/zcek/bin/ZuluJCEPolicies.zip
2020-04-16 20:48:34 URL:http://cdn.azul.com/zcek/bin/ZuluJCEPolicies.zip [12181/12181] -> "/tmp/openhabian.oB5dc/crypto.zip" [1]
+ return 0
+ cond_redirect unzip /tmp/openhabian.oB5dc/crypto.zip -d /tmp/openhabian.oB5dc
+ '[' -n '' ']'
+ echo -e '\n\033[90;01m$ unzip /tmp/openhabian.oB5dc/crypto.zip -d /tmp/openhabian.oB5dc \033[39;49;00m'

$ unzip /tmp/openhabian.oB5dc/crypto.zip -d /tmp/openhabian.oB5dc
+ unzip /tmp/openhabian.oB5dc/crypto.zip -d /tmp/openhabian.oB5dc
Archive:  /tmp/openhabian.oB5dc/crypto.zip
   creating: /tmp/openhabian.oB5dc/ZuluJCEPolicies/
  inflating: /tmp/openhabian.oB5dc/ZuluJCEPolicies/LICENSE
  inflating: /tmp/openhabian.oB5dc/ZuluJCEPolicies/README.txt
  inflating: /tmp/openhabian.oB5dc/ZuluJCEPolicies/DISCLAIMER
  inflating: /tmp/openhabian.oB5dc/ZuluJCEPolicies/local_policy.jar
  inflating: /tmp/openhabian.oB5dc/ZuluJCEPolicies/US_export_policy.jar
+ return 0
+ cp /tmp/openhabian.oB5dc/ZuluJCEPolicies/local_policy.jar /tmp/openhabian.oB5dc/ZuluJCEPolicies/US_export_policy.jar /opt/jdk/zulu8.42.0.21-ca-jdk8.0.232-linux_i686/bin/../lib/security
+ rm -rf /tmp/openhabian.oB5dc
+ return 0
+ '[' 0 -eq 0 ']'
+ echo OK
OK
+ cond_redirect systemctl start openhab2.service
+ '[' -n '' ']'
+ echo -e '\n\033[90;01m$ systemctl start openhab2.service \033[39;49;00m'

$ systemctl start openhab2.service
+ systemctl start openhab2.service
+ return 0
+ [[ "   | Zulu OpenJDK 64-bit" == *\6\4* ]]
+ openhab2_setup
+ local openhabVersion
+ local RepoKey=/tmp/openhab-key.asc
+ introtext_stable='You are about to install or upgrade to the latest stable openHAB release.\n
Please be aware that downgrading from a newer unstable snapshot build is not officially supported. Please consult with the documentation or community forum and be sure to take a full openHAB configuration backup first!'
+ successtext_stable='The stable release of openHAB is now installed on your system. Please test the correct behavior of your setup. You might need to adapt your configuration, if available. If you did changes to files below '\''/var/lib/openhab2'\'' before, they were replaced but you can restore them from backup files next to the originals.
Check the "openHAB Release Notes" and the official announcements to learn about additons, fixes and changes.'
+ introtext_testing='You are about to install or upgrade to the latest milestone (testing) openHAB build. It contains the latest features and is supposed to run stable, but if you experience bugs or incompatibilities, please help enhancing openHAB by posting them on the community forum or by raising a Github issue.\n
  Please be aware that downgrading from a newer build is not officially supported. Please consult with the documentation or community forum and be sure to take a full openHAB configuration backup first!'
+ successtext_testing='The testing release of openHAB is now installed on your system. Please test the correct behavior of your setup. You might need to adapt your configuration, if available. If you did changes to files below '\''/var/lib/openhab2'\'' before, they were replaced but you can restore them from backup files next to the originals.
Check the "openHAB Release Notes" and the official announcements to learn about additons, fixes and changes.'
+ introtext_unstable='Proceed with caution!\nYou are about to switch over to the latest openHAB 2 unstable snapshot build. The daily snapshot builds contain the latest features and improvements but might also suffer from bugs or incompatibilities. Please be sure to take a full openHAB configuration backup first!'
+ successtext_unstable='The latest unstable snapshot build of openHAB 2 is now running on your system. Please test the correct behavior of your setup. You might need to adapt your configuration, if available. If you did changes to files below '\''/var/lib/openhab2'\'' before, they were replaced but you can restore them from backup files next to the originals.\nIf you find any problem or bug, please report it and state the snapshot version you are on. To stay up-to-date with improvements and bug fixes you should upgrade your packages (the openhab2 and openhab2-addons packages) regularly.'
+ '[' '' == unstable ']'
+ '[' '' == testing ']'
+ '[' -z '' ']'
+ '[' -z '' ']'
++ timestamp
++ date +%F_%T_%Z
+ echo -n '2020-04-16_20:50:34_CEST [openHABian] Installing or upgrading to latest openHAB release (stable)... '
2020-04-16_20:50:34_CEST [openHABian] Installing or upgrading to latest openHAB release (stable)... + introtext='You are about to install or upgrade to the latest stable openHAB release.\n
Please be aware that downgrading from a newer unstable snapshot build is not officially supported. Please consult with the documentation or community forum and be sure to take a full openHAB configuration backup first!'
+ successtext='The stable release of openHAB is now installed on your system. Please test the correct behavior of your setup. You might need to adapt your configuration, if available. If you did changes to files below '\''/var/lib/openhab2'\'' before, they were replaced but you can restore them from backup files next to the originals.
Check the "openHAB Release Notes" and the official announcements to learn about additons, fixes and changes.'
+ REPO='deb https://dl.bintray.com/openhab/apt-repo2 stable main'
+ '[' -n 1 ']'
+ whiptail --title 'openHAB software change, Continue?' --yes-button Continue --no-button Back --yesno 'You are about to install or upgrade to the latest stable openHAB release.\n
Please be aware that downgrading from a newer unstable snapshot build is not officially supported. Please consult with the documentation or community forum and be sure to take a full openHAB configuration backup first!' 15 80
+ echo CANCELED
CANCELED
+ return 0
+ [[ "   | Zulu OpenJDK 64-bit" == *\o\p\e\n\H\A\B\ \t\e\s\t\i\n\g* ]]
+ [[ "   | Zulu OpenJDK 64-bit" == *\o\p\e\n\H\A\B\ \u\n\s\t\a\b\l\e* ]]
+ [[ "   | Zulu OpenJDK 64-bit" == *\6\5* ]]
+ [[ "   | Zulu OpenJDK 64-bit" == *\6\6* ]]
+ [[ "   | Zulu OpenJDK 64-bit" == *\6\7* ]]
+ [[ "   | Zulu OpenJDK 64-bit" == *\6\8* ]]
+ [[ "   | Zulu OpenJDK 64-bit" == *\6\9* ]]
+ [[ "   | Zulu OpenJDK 64-bit" == *\6\A* ]]
+ [[ "   | Zulu OpenJDK 64-bit" == *\U\n\i\n\s\t\a\l\l\ \Z\R\A\M* ]]
+ '[' 0 -ne 0 ']'
+ true
+ 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=613d91e
++++ git -C /opt/openhabian log --oneline
++++ wc -l
+++ revcount=573
++++ git -C /opt/openhabian describe --tags --abbrev=0
+++ latesttag=v1.5
+++ echo '[master]v1.5-573(613d91e)'
++ whiptail --title 'Welcome to the openHABian Configuration Tool [master]v1.5-573(613d91e)' --menu 'Setup Options' 21 116 14 --cancel-button Exit --ok-button Execute '00 | About openHABian    ' 'Information about the openHABian project and this tool' '' '' '01 | Update' 'Fetch the latest revision of the openHABian Configuration Tool' '02 | Upgrade System' 'Upgrade all installed software packages to their newest 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 ►' '' '' '99 | Help' 'Further options and guidance with Linux and openHAB'
+ choice=
+ RET=1
+ '[' 1 -eq 1 ']'
+ return 255
+ system_check_default_password
+ introtext='The default password was detected on your system! That'\''s a serious security concern. Others or malicious programs in your subnet are able to gain root access!
  \nPlease set a strong password by typing the command '\''passwd'\''!'
++ timestamp
++ date +%F_%T_%Z
+ echo -n '2020-04-16_20:53:24_CEST [openHABian] Checking for default openHABian username:password combination... '
2020-04-16_20:53:24_CEST [openHABian] Checking for default openHABian username:password combination... + is_pi
+ is_pizero
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]09[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pizerow
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[cC][0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pione
+ grep -q '^Revision\s*:\s*00[0-9a-fA-F][0-9a-fA-F]$' /proc/cpuinfo
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[0-36][0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pitwo
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]04[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pithree
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]08[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pithreeplus
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0d[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pifour
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]11[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ return 1
+ is_pi
+ is_pizero
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]09[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pizerow
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[cC][0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pione
+ grep -q '^Revision\s*:\s*00[0-9a-fA-F][0-9a-fA-F]$' /proc/cpuinfo
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[0-36][0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pitwo
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]04[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pithree
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]08[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pithreeplus
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0d[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pifour
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]11[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ return 1
+ is_pine64
++ uname -r
+ [[ 4.15.0-96-generic =~ pine64-longsleep ]]
+ return 1
+ echo 'SKIPPED (method not implemented)'
SKIPPED (method not implemented)
+ return 0
++ timestamp
++ date +%F_%T_%Z
+ echo -e '2020-04-16_20:53:24_CEST [openHABian] We hope you got what you came for! See you again soon ;)'
2020-04-16_20:53:24_CEST [openHABian] We hope you got what you came for! See you again soon ;)
+ cd /home/openhabian
[20:53:24] root@openhabian:/home/openhabian# java -version
openjdk version "1.8.0_232"
OpenJDK Runtime Environment (Zulu 8.42.0.21-CA-linux32) (build 1.8.0_232-b18)
OpenJDK Server VM (Zulu 8.42.0.21-CA-linux32) (build 25.232-b18, mixed mode)
[20:56:05] root@openhabian:/home/openhabian#

You mean you have intentionally manually installed it (32bit) in the beginning ?

Looks like a known problem https://github.com/openhab/openhabian/issues/839
Edit /etc/openhabian.conf and replace the “option=” by “java_arch=”, then reinstall and let me know.

You mean you have intentionally manually installed it (32bit) in the beginning ?

Nope, as far as I remember I tried with 64bit from the beginning.

Anyway, this did the trick:

[08:43:59] root@openhabian:/home/openhabian# java -version
openjdk version “1.8.0_252”
OpenJDK Runtime Environment (Zulu 8.46.0.19-CA-linux64) (build 1.8.0_252-b14)
OpenJDK 64-Bit Server VM (Zulu 8.46.0.19-CA-linux64) (build 25.252-b14, mixed mode)
[08:44:17] root@openhabian:/home/openhabian#

FYI one more insight. After selecting only Zulu for fresh install, when its finished, I’m getting question from openhabian to install OpenHAB stable, even though I didn’t marked it in selection menu. I’m not sure if this is an expected behavior so “just to let you know”

JVM won’t do more than 4GB by default and usually tops out at 3GB.
Check

  • JVM -Xmx parameter
  • the memory.limit_in_bytes parameter (an OS setting of the cgroups feature, g**gle for more info)