Error upgrading from 5.01 to 5.02

  • Platform information:
    • Hardware:RPI 5 4mb
    • OS: Openhabian
    • Java Runtime Environment: recommended
    • openHAB version: 5.01 → 5.02

I noticed a post indicating 5.02 was available so I decided to install it. During the upgrade I received these errors:

\[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\] INFO org.openhab.core.tools.UpgradeTool - Executing itemCopyUnitToMetadata: Copy item unit from state description to metadata
\[main\] INFO org.openhab.core.tools.internal.ItemUnitToMetadataUpgrader - Copying item unit from state description to metadata in database ‘/var/lib/openhab/jsondb/org.openhab.core.items.Item.json’
\[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\] INFO org.openhab.core.tools.UpgradeTool - Executing linkUpgradeJSProfile: Upgrade JS profile configuration to new format
\[main\] INFO org.openhab.core.tools.internal.JSProfileUpgrader - Upgrading JS profile configuration in database ‘/var/lib/openhab/jsondb/org.openhab.core.thing.link.ItemChannelLink.json’
\[main\] ERROR org.openhab.core.storage.json.internal.JsonStorage - Couldn’t deserialize value ‘org.openhab.core.storage.json.internal.StorageEntry@3c9d0b9d’. Root cause is: org.openhab.core.tools.internal.Upgrader$UpgradeRecord
\[main\] INFO org.openhab.core.tools.UpgradeTool - Executing linkUpgradeScriptProfile: Upgrade script profile configuration toHandlerScript to commandFromItemScript
\[main\] INFO org.openhab.core.tools.internal.ScriptProfileUpgrader - Upgrading script profile configuration in database ‘/var/lib/openhab/jsondb/org.openhab.core.thing.link.ItemChannelLink.json’
\[main\] ERROR org.openhab.core.storage.json.internal.JsonStorage - Couldn’t deserialize value ‘org.openhab.core.storage.json.internal.StorageEntry@3c9d0b9d’. Root cause is: org.openhab.core.tools.internal.Upgrader$UpgradeRecord
\[main\] INFO org.openhab.core.tools.UpgradeTool - Executing yamlTagsListToMap: Upgrade YAML ‘tags’ list to map format on V1 configuration files
\[main\] INFO org.openhab.core.tools.internal.YamlConfigurationV1TagsUpgrader - Upgrading YAML tags configurations in ‘/etc/openhab/tags’
\[openHAB\] JSON Database upgrade completed.

It seemed like Openhab failed to start, but restarting Openhab allowed it to come up working quite quickly so all is well, but maybe those error messages are useful.

Those errors come from the upgradeTool which is only run on an upgrade.

Since you are already running OH 5.0.1 none of these steps actually do anything as your config has already been upgraded or was correct from the start.

So none of these errors will impact you.

Someone upgrading from OH 3 or OH 4 to OH 5 though will want these to run successfully.

Unfortunately then error isn’t very informative.

Do you have anything defined through the UI? Maybe the error is caused by an empty JSONDB or lack of a JSONDB file in the first place. I can imagine either of these cases leading to a deserialization error.

What does anything defined through the UI mean. All my Items are defined through the UI if that counts.

If you didn’t open a text editor and type it in, it’s counts as through the UI.