Cannot upgrade system

Hi, I am running openhabian 32bit with this header: openHABian Configuration Tool — [openHAB]{2025-07-31T13:23:58+02:00}(a4d0543)

Hardware is a pi4 2gb RAM, but I plan to move it to Pi3 B+ and use pi4 for other purposes since my old OH3 runs at pi3 B+ and I only use this pi4 for slowly migrating from OH3 to OH4.

after running openhabian > upgrade system, I got error. This is debug message:

+ export DEBIAN_FRONTEND=noninteractive                                                                                                                                         
+ DEBIAN_FRONTEND=noninteractive
+ apt-get clean --yes -o DPkg::Lock::Timeout=
+ apt-get upgrade --yes -o DPkg::Lock::Timeout= -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  libboost-log1.74.0 libboost-program-options1.74.0 libcamera-ipa libcamera0.4 libcamera0.5 liblttng-ust-common1 liblttng-ust-ctl5 liblttng-ust1 libpisp-common libpisp1
  librpicam-app1 linux-headers-6.12.20+rpt-common-rpi linux-headers-6.12.20+rpt-rpi-v6 linux-headers-6.12.20+rpt-rpi-v7 linux-headers-6.12.20+rpt-rpi-v7l
  linux-image-6.12.20+rpt-rpi-v6 linux-image-6.12.20+rpt-rpi-v7 linux-image-6.12.20+rpt-rpi-v7l linux-kbuild-6.12.20+rpt rpicam-apps-core rpicam-apps-lite
Use 'sudo apt autoremove' to remove them.
The following packages will be upgraded:
  openhab
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
94 not fully installed or removed.
Need to get 115 MB of archives.
After this operation, 4,558 kB of additional disk space will be used.
Get:1 https://openhab.jfrog.io/artifactory/openhab-linuxpkg stable/main armhf openhab all 5.0.0-1 [115 MB]
Fetched 115 MB in 49s (2,366 kB/s)
apt-listchanges: Reading changelogs...
(Reading database ... 169883 files and directories currently installed.)
Preparing to unpack .../openhab_5.0.0-1_all.deb ...
[openHAB] WARNING: We were unable to detect Java 21 on your system. This is needed before openHAB is unpacked.
[openHAB] Java 21 may not be available on 32-bit platforms.
dpkg: error processing archive /var/cache/apt/archives/openhab_5.0.0-1_all.deb (--unpack):
 new openhab package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/openhab_5.0.0-1_all.deb
Updating FireMotD available updates count ...
E: Sub-process /usr/bin/dpkg returned an error code (1)
+ echo FAILED
FAILED
+ return 1
+ RET=1
+ '[' 1 -ne 0 ']'
+ whiptail --msgbox 'There was an error or interruption during the execution of:\n  "02 | Upgrade System"\n\nPlease try again. If the error persists, please read /opt/openhabian/docs/openhabian-troubleshooting.md or https://www.openhab.org/docs/installation/openhabian-troubleshooting.html how to proceed.' 14 80

I also do not have openHAB4 or openHAB5 options. Now my openHAB cannot be accessed.

It looks like openHABian upgraded my openHAB to 5.0. How can I downgrade back to 4.3.5?

tail of openhab.log

openhabian@ohpinew:/var/log/openhab $ tail openhab.log
2025-07-31 17:09:37.321 [WARN ] [dule.handler.ItemStateTriggerHandler] - Item 'Test_Plug_Kulkas_cur_power' needed for rule '1466f9b16b' removed. Trigger '1' will no longer work
.
2025-07-31 17:09:37.321 [WARN ] [dule.handler.ItemStateTriggerHandler] - Item 'Bathroom1F_Motion' needed for rule '4d2d313796' removed. Trigger '1' will no longer work.
2025-07-31 17:09:37.328 [WARN ] [dule.handler.ItemStateTriggerHandler] - Item 'Washing_Machine_Plug_cur_power' needed for rule 'd6dc091fca' removed. Trigger '1' will no longer 
work.
2025-07-31 17:09:37.324 [WARN ] [le.handler.ItemCommandTriggerHandler] - Item 'bathroom1F_light_Switch' needed for rule 'f5573f35f7' removed. Trigger '1' will no longer work.
2025-07-31 17:09:37.330 [WARN ] [dule.handler.ItemStateTriggerHandler] - Item 'Sepeda_Listrik_Plug_cur_power' needed for rule 'd8f7f61c3e' removed. Trigger '1' will no longer work.
2025-07-31 17:09:37.331 [WARN ] [dule.handler.ItemStateTriggerHandler] - Item 'Sepeda_Listrik_Plug_cur_power' needed for rule 'f1b4aa997a' removed. Trigger '1' will no longer work.
2025-07-31 17:09:37.333 [WARN ] [dule.handler.ItemStateTriggerHandler] - Item 'Sepeda_Listrik_Plug_cur_power' needed for rule 'aca018b056' removed. Trigger '1' will no longer work.
2025-07-31 17:09:37.333 [WARN ] [dule.handler.ItemStateTriggerHandler] - Item 'Sepeda_Listrik_Plug_cur_power' needed for rule 'd5863a169b' removed. Trigger '1' will no longer work.
2025-07-31 17:09:37.336 [WARN ] [dule.handler.ItemStateTriggerHandler] - Item 'Water_Heater_Plug_cur_power' needed for rule '71ac02a0ed' removed. Trigger '1' will no longer work.
2025-07-31 17:09:48.588 [WARN ] [service.spi.util.WebContainerManager] - Can't get a WebContainer service from {org.osgi.service.http.HttpService, org.ops4j.pax.web.service.WebContainer}={org.ops4j.pax.web.log.ncsa.extended=true, org.ops4j.pax.web.ssl.keystore.password=********, service.scope=bundle, org.ops4j.pax.web.ssl.key.password=********, org.ops4j.pax.web.session.cookie.name=JSESSIONID, org.osgi.service.http.connector.name=default, org.ops4j.pax.web.enc.iterationcount=1000, org.ops4j.pax.web.log.ncsa.file=yyyy_mm_dd.request.log, org.ops4j.pax.web.server.eventDispatcherThreadCount=1, org.osgi.service.http.checkForwardedHeaders=false, org.ops4j.pax.web.enc.suffix=), org.ops4j.pax.web.digestAuth.maxNonceAge=60000, org.ops4j.pax.web.ssl.ciphersuites.included=, org.ops4j.pax.web.session.url=jsessionid, org.ops4j.pax.web.formAuth.errorRedirect=false, org.ops4j.pax.web.ssl.ciphersuites.excluded=^.*_(MD5|SHA|SHA1)$,^TLS_RSA_.*$,^SSL_.*$,^.*_NULL_.*$,^.*_anon_.*, org.ops4j.pax.web.enc.prefix=ENC(, org.ops4j.pax.web.server.maxThreads=50, org.ops4j.pax.web.validatePeerCerts=false, service.id=169, org.ops4j.pax.web.session.cookie.maxAge=-1, org.ops4j.pax.web.ssl.truststore.password=********, org.ops4j.pax.web.ssl.session.cacheSize=-1, org.ops4j.pax.web.ssl.truststore.type=JKS, org.ops4j.pax.web.ssl.keystore.type=JKS, org.ops4j.pax.web.ssl.session.enabled=true, org.ops4j.pax.web.ssl.protocol=TLSv1.3, org.osgi.service.http.port=8080, org.ops4j.pax.web.log.ncsa.file.date.format=yyyy-MM-dd, org.ops4j.pax.web.ssl.renegotiationLimit=-1, org.osgi.service.http.secure.enabled=true, org.osgi.service.http.enabled=true, org.ops4j.pax.web.server.idleTimeout=300000, org.ops4j.pax.web.log.ncsa.retaindays=90, org.ops4j.pax.web.log.ncsa.logtimezone=GMT, org.ops4j.pax.web.enc.algorithm=PBEWithHmacSHA256AndAES_128, org.ops4j.pax.web.validateCerts=false, org.ops4j.pax.web.config.files=/usr/share/openhab/runtime/etc/jetty.xml, org.ops4j.pax.web.ssl.renegotiationAllowed=true, org.ops4j.pax.web.digestAuth.maxNonceCount=1024, org.ops4j.pax.web.enableOCSP=false, org.ops4j.pax.web.ssl.clientauth.needed=false, org.ops4j.pax.web.enc.enabled=false, org.osgi.service.http.port.secure=8443, javax.servlet.context.tempdir=/var/lib/openhab/tmp, org.ops4j.pax.web.enableCRLDP=false, org.ops4j.pax.web.server.connector.idleTimeout=30000, org.ops4j.pax.web.session.timeout=10, org.ops4j.pax.web.ssl.clientauth.wanted=false, org.ops4j.pax.web.ssl.protocols.excluded=SSL,SSLv2,SSLv2Hello,SSLv3, service.bundleid=232, org.ops4j.pax.web.server.minThreads=2, org.ops4j.pax.web.session.cookie.secure=false, org.ops4j.pax.web.enc.masterpassword=********, org.ops4j.pax.web.log.ncsa.append=true, org.osgi.service.http.secure.connector.name=secureDefault, org.ops4j.pax.web.ssl.session.timeout=-1, org.ops4j.pax.web.listening.addresses=0.0.0.0, org.ops4j.pax.web.log.ncsa.buffered=true, org.ops4j.pax.web.session.cookie.sameSite=unset, org.ops4j.pax.web.log.ncsa.enabled=false, org.ops4j.pax.web.ssl.protocols.included=, org.ops4j.pax.web.session.cookie.httpOnly=true, org.ops4j.pax.web.server.showStacks=false}

You failed to mention the hardware you are on.

Try adding Java Temurin21 via openhabian-config menu.

I updated my original post.

I am running pi4 2GB, but planning to downgrade to pi3 B+ and use pi4 for other purpose.

out of topic question: Can pi3 handle OH5?

This solved the issue where I cannot access OH after system upgrade from openhabian-config. My OH still at version 4.3.5

The information here is pretty confusing. First you say you are on a 32 bit OS, but somehow added Java 21 which needs 64 bit OS. OH 5 needs both a 64 bit OS and Java 21.

As to rpi3b, if you want OH5 it is doubtful imo, but might depend on your installation. What I would suggest is to get OH 5 running on the rpi4, wait a day or two then run htop on the command line and note the ram usage. If it is very close to 1 GB, it won’t fit on the rpi3. Personally I wouldn’t try if it was above .75 GB, but that’s just me. If you’re okay with OH 4 going forward, the rpi3 should be okay with the 32 bit OS. Hope that helps.

Edit: Noticed this other post with useful commands to check O/S. Also could use java -version from command line to verify install

I was planning to retire my old OH3 and and using spare pi4 as temporary OH4 instance. I chose 32bit openHABian because I know that I will move it back to pi3.

After I run openhabian > system upgrade, my OH is not accessible. That’s why I seek help here. I was afraid that it was upgraded to OH5, and plugins I needed is not available at OH5 yet.

Is this reliable way to check RAM usage? AFAIK RAM will be used until all used, and it will be freed only when other service need it.

Did you check that ? All official addons are included in openHAB5 and most of the marketplace Bindings have openHAB5 versions as well.

This is what confuses me. This thread is marked ‘Solved’. Is OH up and running now? I seriously doubt openhabian would have let you upgrade to OH5 or install java-21 on a 32-bit system, but I could be wrong. What does the command line sudo systemctl status openhab show?

Separately, a 32-bit O/S will be limited to OH4.3.6.

Not a Linux expert, but that is what I use. Here is my 64-bit O/S, OH5 on Rpi4 htop. It is pretty stable

rpi4 2025-06-08 201320