After upgrading from 4.2.1-1 to 4.2.2-1, I noticed that the smarthome/j binds I use (Tuya and AmazonEcho) were missing, as was one that I had in the addons folder (org.openhab.binding.weatherflowsmartweather-4.2.0).
I think this is a good thing, because:
one needed to remember to delete and re-add 3rd party bindings after an upgrade, and by deleting them, it forces you do do it, and
I had some issues migrating to openHABian 1.9 / OH 4.2.1 where .jar files in the addons folder messed up the loading of other bindings, such that I had to manually install them all. By deleting the .jar files in the addons folder, this wonāt happen.
After reinstalling the above, everything appears to be working as expected.
Hi, I updated yesterday from 4.1.0. to 4.2.2-1 and I have questions about two thingsā¦
first. The Thingstatus stays online if openhab tries to connect to the device.
I use some rules to enable, disable things if there are offline, like my modbus inverter.
and every try to connect to an offline shelly switches status from offline to online to offline.
Is that the intention?
second. everytime I start openhab I see in the log:
2024-10-01 16:46:04.966 [INFO ] [rketplace.MarketplaceBundleInstaller] - Reinstalling missing marketplace bundle: marketplace:153785
2024-10-01 16:46:04.974 [WARN ] [rketplace.MarketplaceBundleInstaller] - Failed reinstalling add-on from cache
org.openhab.core.addon.marketplace.MarketplaceHandlerException: Cannot install bundle from marketplace cache: Error occurred installing a bundle.
at org.openhab.core.addon.marketplace.MarketplaceBundleInstaller.installFromCache(MarketplaceBundleInstaller.java:99) ~[?:?]
at org.openhab.core.addon.marketplace.MarketplaceBundleInstaller.lambda$3(MarketplaceBundleInstaller.java:158) ~[?:?]
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) ~[?:?]
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) ~[?:?]
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) ~[?:?]
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) ~[?:?]
at java.util.Iterator.forEachRemaining(Iterator.java:133) ~[?:?]
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1845) ~[?:?]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?]
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) ~[?:?]
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) ~[?:?]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) ~[?:?]
at org.openhab.core.addon.marketplace.MarketplaceBundleInstaller.ensureCachedBundlesAreInstalled(MarketplaceBundleInstaller.java:155) ~[?:?]
at org.openhab.core.addon.marketplace.internal.community.CommunityBundleAddonHandler.lambda$0(CommunityBundleAddonHandler.java:58) ~[?:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) [?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
at java.lang.Thread.run(Thread.java:840) [?:?]
Caused by: org.osgi.framework.BundleException: Error occurred installing a bundle.
at org.eclipse.osgi.storage.Storage.install(Storage.java:756) ~[org.eclipse.osgi-3.18.0.jar:?]
at org.eclipse.osgi.internal.framework.BundleContextImpl.installBundle(BundleContextImpl.java:182) ~[org.eclipse.osgi-3.18.0.jar:?]
at org.openhab.core.addon.marketplace.MarketplaceBundleInstaller.installFromCache(MarketplaceBundleInstaller.java:90) ~[?:?]
... 21 more
Caused by: java.util.zip.ZipException: Exception in opening zip file: /var/lib/openhab/cache/org.eclipse.osgi/348/0/bundleFile
at org.eclipse.osgi.framework.util.SecureAction.getZipFile(SecureAction.java:356) ~[org.eclipse.osgi-3.18.0.jar:?]
at org.eclipse.osgi.storage.bundlefile.ZipBundleFile.doOpen(ZipBundleFile.java:51) ~[org.eclipse.osgi-3.18.0.jar:?]
at org.eclipse.osgi.storage.bundlefile.CloseableBundleFile.internalOpen(CloseableBundleFile.java:140) ~[org.eclipse.osgi-3.18.0.jar:?]
at org.eclipse.osgi.storage.bundlefile.CloseableBundleFile.open(CloseableBundleFile.java:422) ~[org.eclipse.osgi-3.18.0.jar:?]
at org.eclipse.osgi.storage.Storage.install(Storage.java:720) ~[org.eclipse.osgi-3.18.0.jar:?]
at org.eclipse.osgi.internal.framework.BundleContextImpl.installBundle(BundleContextImpl.java:182) ~[org.eclipse.osgi-3.18.0.jar:?]
at org.openhab.core.addon.marketplace.MarketplaceBundleInstaller.installFromCache(MarketplaceBundleInstaller.java:90) ~[?:?]
... 21 more
Caused by: java.util.zip.ZipException: zip END header not found
at java.util.zip.ZipFile$Source.findEND(ZipFile.java:1637) ~[?:?]
at java.util.zip.ZipFile$Source.initCEN(ZipFile.java:1645) ~[?:?]
at java.util.zip.ZipFile$Source.<init>(ZipFile.java:1483) ~[?:?]
at java.util.zip.ZipFile$Source.get(ZipFile.java:1445) ~[?:?]
at java.util.zip.ZipFile$CleanableResource.<init>(ZipFile.java:717) ~[?:?]
at java.util.zip.ZipFile.<init>(ZipFile.java:251) ~[?:?]
at java.util.zip.ZipFile.<init>(ZipFile.java:180) ~[?:?]
at java.util.zip.ZipFile.<init>(ZipFile.java:194) ~[?:?]
at org.eclipse.osgi.framework.util.SecureAction.getZipFile(SecureAction.java:342) ~[org.eclipse.osgi-3.18.0.jar:?]
at org.eclipse.osgi.storage.bundlefile.ZipBundleFile.doOpen(ZipBundleFile.java:51) ~[org.eclipse.osgi-3.18.0.jar:?]
at org.eclipse.osgi.storage.bundlefile.CloseableBundleFile.internalOpen(CloseableBundleFile.java:140) ~[org.eclipse.osgi-3.18.0.jar:?]
at org.eclipse.osgi.storage.bundlefile.CloseableBundleFile.open(CloseableBundleFile.java:422) ~[org.eclipse.osgi-3.18.0.jar:?]
at org.eclipse.osgi.storage.Storage.install(Storage.java:720) ~[org.eclipse.osgi-3.18.0.jar:?]
at org.eclipse.osgi.internal.framework.BundleContextImpl.installBundle(BundleContextImpl.java:182) ~[org.eclipse.osgi-3.18.0.jar:?]
at org.openhab.core.addon.marketplace.MarketplaceBundleInstaller.installFromCache(MarketplaceBundleInstaller.java:90) ~[?:?]
... 21 more
whitch addon is this? and there is no folder ā348ā in this path. I cleaned cache after the update.
Greets
I havenāt read anything about the stepper controls in Main UI so far, sorry if I missed it: Since 4.2.0 (I think) the plus sign of a stepper control does no longer work for me. The only way to get back up to the max. value is to go down to the min value and then it will go up again to the max value when I click the plus icon. Anybody experiencing the same?
Here is an example config for a number:temperature default list item metadata:
I cannot reproduce this on the current snapshot and there are no commits to oh-stepper component since 4.2.0 for a Number:Temperature Item with the following default list Item metadata (the stepper component in list Items and cards is the same):
In this screen capture you can actually see two different strange behaviours. You can see that sometimes just nothing happens (not item change, no log in the browser) when I click the plus button. Then after clicking minus for a couple of times and hitting plus again the item is immediately changed to the maximum of 35. I donāt see a normal increment when pressing plusā¦
Unfortunately I cannot reproduce it and I canāt say I say a problem when looking at the code.
If you are able to check out the UIās code, you could extend the logging and start the dev server. You are probably able to find out whatās going on then.
I found a minor issue since upgrading. When retrieving my rules through the REST api, the inline script data converts all round brackets into square.
If you repost that data, obviously the scripts no longer work since the syntax is wrong. If you manually change the brackets back to round ones, it can be posted or put normally, and will work.
The new menu is more confusing than before.
I was busy in software developement for more than 40 years. We have released many versions of our products.
I have learned, keep it simple. If you want expert mode, than enable expert menu. Keep in mind:
Today I tried up update everything (including openHAB from 4.1.2 to 4.2.2-1) on my Pi 4B using openhabian and received the following error:
openhabian@oh-m:~ $ sudo openhabian-config
[sudo] password for openhabian:
2024-10-21_19:12:47_MDT [openHABian] Checking for root privileges... OK
2024-10-21_19:12:47_MDT [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2024-10-21_19:12:47_MDT [openHABian] openHABian configuration tool version: [openHAB]{2024-09-09T17:42:10+02:00}(fd421f3)
2024-10-21_19:12:48_MDT [openHABian] Checking for changes in origin branch openHAB... OK
2024-10-21_19:12:51_MDT [openHABian] Switching to branch openHAB... OK
2024-10-21_19:12:51_MDT [openHABian] Checking openHAB Signing Key expiry.
2024-10-21_19:12:51_MDT [openHABian] Checking expiry date of apt keys... OK
2024-10-21_19:12:59_MDT [openHABian] Updating Linux package information... OK
OK
2024-10-21_19:13:27_MDT [openHABian] Updating repositories and upgrading installed packages...
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
linux-headers-rpi-2712 linux-headers-rpi-v8 linux-image-rpi-2712 linux-image-rpi-v8 raspi-utils
The following packages will be upgraded:
libcamera-ipa libcamera0.3 libcups2 linux-libc-dev openhab openhab-addons openjdk-17-jre-headless raspi-firmware rpi-eeprom rpicam-apps-lite tailscale
11 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
Need to get 678 MB of archives.
After this operation, 4,760 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian-security bookworm-security/main arm64 libcups2 arm64 2.4.2-3+deb12u8 [229 kB]
Get:2 http://deb.debian.org/debian-security bookworm-security/main arm64 openjdk-17-jre-headless arm64 17.0.13+11-2~deb12u1 [42.8 MB]
Get:3 http://archive.raspberrypi.com/debian bookworm/main arm64 raspi-firmware all 1:1.20240924-1 [12.8 MB]
Get:5 https://openhab.jfrog.io/artifactory/openhab-linuxpkg stable/main arm64 openhab all 4.2.2-1 [110 MB]
Get:4 https://pkgs.tailscale.com/stable/debian bookworm/main arm64 tailscale arm64 1.76.1 [27.3 MB]
Get:6 http://archive.raspberrypi.com/debian bookworm/main arm64 libcamera0.3 arm64 0.3.2+rpt20240927-1 [799 kB]
Get:7 http://archive.raspberrypi.com/debian bookworm/main arm64 libcamera-ipa arm64 0.3.2+rpt20240927-1 [1,067 kB]
Get:8 http://archive.raspberrypi.com/debian bookworm/main arm64 linux-libc-dev all 1:6.6.51-1+rpt3 [2,056 kB]
Get:9 http://archive.raspberrypi.com/debian bookworm/main arm64 rpi-eeprom all 26.0-1 [38.4 MB]
Get:10 http://archive.raspberrypi.com/debian bookworm/main arm64 rpicam-apps-lite arm64 1.5.2-2 [489 kB]
Get:11 https://openhab.jfrog.io/artifactory/openhab-linuxpkg stable/main arm64 openhab-addons all 4.2.2-1 [442 MB]
Fetched 678 MB in 60s (11.3 MB/s)
apt-listchanges: Reading changelogs...
Use of uninitialized value $value in substitution (s///) at /usr/share/perl5/Debconf/Format/822.pm line 65, <__ANONIO__> line 10735.
(Reading database ... 101456 files and directories currently installed.)
Preparing to unpack .../00-raspi-firmware_1%3a1.20240924-1_all.deb ...
Unpacking raspi-firmware (1:1.20240924-1) over (1:1.20240902-1) ...
Preparing to unpack .../01-libcamera0.3_0.3.2+rpt20240927-1_arm64.deb ...
Unpacking libcamera0.3:arm64 (0.3.2+rpt20240927-1) over (0.3.1+rpt20240906-1) ...
Preparing to unpack .../02-libcamera-ipa_0.3.2+rpt20240927-1_arm64.deb ...
Unpacking libcamera-ipa:arm64 (0.3.2+rpt20240927-1) over (0.3.1+rpt20240906-1) ...
Preparing to unpack .../03-libcups2_2.4.2-3+deb12u8_arm64.deb ...
Unpacking libcups2:arm64 (2.4.2-3+deb12u8) over (2.4.2-3+deb12u7) ...
Preparing to unpack .../04-linux-libc-dev_1%3a6.6.51-1+rpt3_all.deb ...
Unpacking linux-libc-dev (1:6.6.51-1+rpt3) over (1:6.6.47-1+rpt1) ...
Preparing to unpack .../05-openhab_4.2.2-1_all.deb ...
rm: cannot remove '/var/lib/openhab/cache/org.eclipse.osgi/331': Directory not empty
dpkg: error processing archive /tmp/apt-dpkg-install-hmHx6z/05-openhab_4.2.2-1_all.deb (--unpack):
new openhab package pre-installation script subprocess returned error exit status 1
Preparing to unpack .../06-openhab-addons_4.2.2-1_all.deb ...
Unpacking openhab-addons (4.2.2-1) over (4.2.1-1) ...
Preparing to unpack .../07-openjdk-17-jre-headless_17.0.13+11-2~deb12u1_arm64.deb ...
Unpacking openjdk-17-jre-headless:arm64 (17.0.13+11-2~deb12u1) over (17.0.12+7-2~deb12u1) ...
Preparing to unpack .../08-rpi-eeprom_26.0-1_all.deb ...
Unpacking rpi-eeprom (26.0-1) over (25.2-1) ...
Preparing to unpack .../09-rpicam-apps-lite_1.5.2-2_arm64.deb ...
Unpacking rpicam-apps-lite (1.5.2-2) over (1.5.1-1) ...
Preparing to unpack .../10-tailscale_1.76.1_arm64.deb ...
Unpacking tailscale (1.76.1) over (1.74.1) ...
Errors were encountered while processing:
/tmp/apt-dpkg-install-hmHx6z/05-openhab_4.2.2-1_all.deb
Updating FireMotD available updates count ...
E: Sub-process /usr/bin/dpkg returned an error code (1)
FAILED
2024-10-21_19:17:15_MDT [openHABian] Checking for default openHABian username:password combination... FAILED
2024-10-21_19:17:17_MDT [openHABian] We hope you got what you came for! See you again soon ;)
openhabian@oh-m:~ $ sudo openhabian-config
2024-10-21_19:18:35_MDT [openHABian] Checking for root privileges... OK
2024-10-21_19:18:35_MDT [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2024-10-21_19:18:35_MDT [openHABian] openHABian configuration tool version: [openHAB]{2024-09-09T17:42:10+02:00}(fd421f3)
2024-10-21_19:18:35_MDT [openHABian] Checking for changes in origin branch openHAB... OK
2024-10-21_19:18:36_MDT [openHABian] Switching to branch openHAB... OK
2024-10-21_19:18:36_MDT [openHABian] Checking openHAB Signing Key expiry.
2024-10-21_19:18:36_MDT [openHABian] Checking expiry date of apt keys... OK
2024-10-21_19:18:40_MDT [openHABian] Updating Linux package information... OK
OK
2024-10-21_19:18:44_MDT [openHABian] Updating repositories and upgrading installed packages...
Reading package lists... Error!
E: Splitting of clearsigned file /var/lib/apt/lists/openhab.jfrog.io_artifactory_openhab-linuxpkg_dists_stable_InRelease failed as it doesn't contain all expected parts
E: The package lists or status file could not be parsed or opened.
FAILED
2024-10-21_19:19:02_MDT [openHABian] Checking for default openHABian username:password combination... FAILED
2024-10-21_19:19:06_MDT [openHABian] We hope you got what you came for! See you again soon ;)
openhabian@oh-m:~ $ openhab-cli clean-cache
This command will delete the temporary files within openHAB.
May resolve issues with addon installation and configuration.
This option needs to run as root! (e.g. use 'sudo openhab-cli clean-cache')
openhabian@oh-m:~ $ sudo openhab-cli clean-cache
This command will delete the temporary files within openHAB.
May resolve issues with addon installation and configuration.
The next start of openHAB will take a bit longer.
Okay to Continue? [y/N]: y
rm: cannot remove '/var/lib/openhab/tmp/kar/org.smarthomej.binding.tuya-4.2.0/org/smarthomej/addons/bundles': Directory not empty
rm: cannot remove '/var/lib/openhab/cache/org.eclipse.osgi/331': Directory not empty
openhabian@oh-m:~ $
I thought that may be I should clean the cache, but that generates the error above.
Iām tempted to go in and delete the files it couldnāt remove, but since I donāt know what Iām doing, I donāt want to make it worse.
These look problematic and installing these packages on my own RPi 4 seems to be okay - do you have enough space on the SD card? You can check by using the df command.
As far as I know, this can happen if thereās some sort of corruption on the directory/files. Are you able to move the directories mentioned to somewhere else before deleting them manually?