[3.4.5 to 4.1.1] Works fine for 3 minutes and UI becomes unavailable

Hi!

I upgraded a few days ago, and all was working fine. Today, it works fine for a few minutes, then I can’t reach the UI (error 404/not found). The openhab service status says:

● openhab.service - openHAB - empowering the smart home
Loaded: loaded (/lib/systemd/system/openhab.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2024-01-30 18:09:15 CET; 7min ago
Docs: https://www.openhab.org/docs/
https://community.openhab.org
Main PID: 23026 (java)
Tasks: 237 (limit: 4430)
Memory: 536.3M
CPU: 11min 44.078s
CGroup: /system.slice/openhab.service
└─23026 /usr/bin/java -XX:-UsePerfData -Dopenhab.home=/usr/share/openhab -Dopenhab.conf=/etc/openhab -Dopenhab.runtime=/usr/share/openhab/runtime -Dopenhab.userdata>

janv. 30 18:12:55 odroidxu4 karaf[23026]:         at java.base/java.lang.Thread.run(Thread.java:840)
janv. 30 18:14:34 odroidxu4 karaf[23026]: java.lang.IllegalStateException: Resource has no uri
janv. 30 18:14:34 odroidxu4 karaf[23026]:         at org.apache.karaf.features.internal.service.Deployer.getBundleInputStream(Deployer.java:1631)
janv. 30 18:14:34 odroidxu4 karaf[23026]:         at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:904)
janv. 30 18:14:34 odroidxu4 karaf[23026]:         at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1069)
janv. 30 18:14:34 odroidxu4 karaf[23026]:         at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:1004)
janv. 30 18:14:34 odroidxu4 karaf[23026]:         at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
janv. 30 18:14:34 odroidxu4 karaf[23026]:         at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
janv. 30 18:14:34 odroidxu4 karaf[23026]:         at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
janv. 30 18:14:34 odroidxu4 karaf[23026]:         at java.base/java.lang.Thread.run(Thread.java:840)

But the core seems to works fine.

Today, I tried to install a binding from the UI, but it never ended, so I hit back on the navigator. Could it be related?

Thanks,
Frédéric

In the logs, juste before this traceback, I have:

2024-01-30 20:49:58.120 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-binding-exec': Resource has no uri
2024-01-30 20:51:47.426 [WARN ] [ROOT                                ] - bundle org.openhab.ui.habot:4.1.1 (349) BundleComponentActivator is not active; not scheduling Async Deactivate: org.openhab.ui.habot.notification.internal.WebPushNotificationModuleHandlerFactory id: 2
2024-01-30 20:51:47.453 [INFO ] [hab.ui.habot.tile.internal.HABotTile] - Stopped HABot
2024-01-30 20:51:47.608 [INFO ] [basic.internal.servlet.WebAppServlet] - Stopped Basic UI
2024-01-30 20:51:47.743 [INFO ] [io.openhabcloud.internal.CloudClient] - Shutting down openHAB Cloud service connection
2024-01-30 20:51:47.758 [WARN ] [io.openhabcloud.internal.CloudClient] - Socket.IO disconnected: io client disconnect
2024-01-30 20:51:47.759 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = 6c...81, base URL = http://localhost:8080)
2024-01-30 20:51:48.327 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed to refresh bundles after processing config update

A lot of things seem to be broken: if I try to uninstall a binding from the UI (while it works), nothing happens, the cursor turns forever.

Please have a look at your memory usage of the device.
It could come to the limits.

Mmm, good point. I’ll check that tonight…

Thanks!

I have 2GB, so no problem (740MB used at this time)…

Ok.
Did you try to clear the cache of your openhab instance?
Also did you wait long enough (>20 min)? Sometimes there is just another restart of your openhab need.

Especially for installations with “not so powerful” devices I had some similar issues.
But the only problem was that I was too impatient…

No change since this morning. Automation in background seems to work fine, only UI is not available.

How do I clear the cache from command-line tools?

openhab-cli stop
openhab-cli clean-cache
openhab-cli start

No change, UI still broken after 2 minutes (

This message clearly indicates that your installation is failing due to ongoing change.
It means that one of your addons or features interfere with OH 4 after you made update. The exec binding itself is part of official distro, thus It should not fail on its own. Do you have any other entries above ones you pasted?
Double check addons/ directory and marketplace entries you have for your install.