openHabian - JSON database upgrade tool error during update to 5.0.0

on a Proxmox Debian LXC installation running openHabian I saw the following error messages once I updated my openHab installation from 4.3.5 to 5.0.0 via openhabian-config and exited to the command line:

[openHAB] Running JSON Database upgrade tool (${OPENHAB_RUNTIME}/bin/upgradetool.jar).
[main] ERROR org.openhab.core.storage.json.internal.JsonStorage - Couldn't deserialize value 'org.openhab.core.storage.json.internal.StorageEntry@7fe8ea47'. Root cause is: org.openhab.core.tools.internal.Upgrader$UpgradeRecord

[main] ERROR org.openhab.core.storage.json.internal.JsonStorage - Couldn't deserialize value 'org.openhab.core.storage.json.internal.StorageEntry@7fe8ea47'. Root cause is: org.openhab.core.tools.internal.Upgrader$UpgradeRecord

[main] ERROR org.openhab.core.storage.json.internal.JsonStorage - Couldn't deserialize value 'org.openhab.core.storage.json.internal.StorageEntry@4313f5bc'. Root cause is: org.openhab.core.tools.internal.Upgrader$UpgradeRecord

[main] ERROR org.openhab.core.storage.json.internal.JsonStorage - Couldn't deserialize value 'org.openhab.core.storage.json.internal.StorageEntry@4313f5bc'. Root cause is: org.openhab.core.tools.internal.Upgrader$UpgradeRecord

at the time of the update my openHab was stopped.

Despite the error messages, I started openHab and it seems to be working.

Prior to running the update I installed JDK 21 and set it up as the default JVM

Do I need to check anything or manually change anything in any file ( don’t know where is the JSON database anyway) ?

Upgrade tool is broken in 5.0. this is known and the fix will be in 5.0.1

If you’re upgrading from 4.3 and didn’t use yaml tags file, then this issue is inconsequential to you because none of the steps in the upgrade tool is needed.

1 Like

@jimtng thanks for the info. Nevertheless I have never used any yaml files to enter any tags. I only use files for a sitemap definition and for some value mappings for everything else I’ve always used the UI .

Do you know where can I see what items correspond to the JSON database entries referred in the errors ?

The upgrade tool consists of 4 tasks.

Out of those tasks, only the last task, the yaml tag upgrade, is new since 4.3.x. The other tasks would’ve already been performed by the time you got to 4.3

I’ve never used the upgrade tool… But maybe it’s not intended for set-ups via apt?

The upgradetool is executed automatically during an upgrade. Usually there is no need to run it manually. It’s unfortunate that the docs failed to explain this, and yes I was the last person who edited the docs on upgradetool :person_facepalming:

1 Like