Trouble upgrading OpenHab 2.5.11

I’m currently have OpenHab 2.5.11 installed on my RPi.
I’ve had some networking issues with my RPi causing me not to have used it for a while.
But now I’ve got it up and running again, and planned to do some testing on the current OH2 installation before migrating to OH3. But now I’ve run into trouble.
I tried to install the HTTP binding in PaperUI but it seemed stuck att the “rotating thing”.
Then I decided to try to do the update / upgrade to be up to date within my Rasbbian and OH2 release.
No luck, it turned out.

Läs:1 http://raspbian.raspberrypi.org/raspbian buster InRelease [15,0 kB]
Läs:2 http://archive.raspberrypi.org/debian buster InRelease [32,6 kB]
Ign:3 https://dl.bintray.com/openhab/apt-repo2 stable InRelease
Fel:4 https://dl.bintray.com/openhab/apt-repo2 stable Release
  Could not handshake: The TLS connection was non-properly terminated. [IP: 18.158.82.64 443]
Läser paketlistor… Färdig
E: The repository 'https://dl.bintray.com/openhab/apt-repo2 stable Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
E: Repository 'http://archive.raspberrypi.org/debian buster InRelease' changed its 'Suite' value from 'testing' to 'oldstable'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.

What can I make of this?
I realise OH2 in not the latest, but shouldn’t I be able to upgrade to a later OH2 if one exist?
Have the repo changed place, so my apt-get searches at the wrong place?

/GC

This looks relevant

Yes, that certainly looks relevant. Thank you!
I’ll try one of those optionsif my Pi still works correctly after upgrading from Buster to Bullseye…

/GC

Hmmm, I jumped to early calling it a solution…
I can’t find the mentioned cfg-file anywhere, and I can’t even find a folder called userdata anywhere…
I guess it’s related.but now openhab doesn’t seem to start at all.
sudo journalctl -eu openhab2 =>

nov 06 18:16:18 raspberrypi karaf[2158]: org.apache.karaf.features.internal.util.MultiException: Error:
nov 06 18:16:18 raspberrypi karaf[2158]:         Error downloading mvn:org.openhab.addons.bundles/org.openhab.binding.tradfri/[2.5.0,2.6)
nov 06 18:16:18 raspberrypi karaf[2158]:         at org.apache.karaf.features.internal.download.impl.MavenDownloadManager$MavenDownloader.<init>(MavenDownloa>
nov 06 18:16:18 raspberrypi karaf[2158]:         at org.apache.karaf.features.internal.download.impl.MavenDownloadManager.createDownloader(MavenDownloadManag>
nov 06 18:16:18 raspberrypi karaf[2158]:         at org.apache.karaf.features.internal.region.Subsystem.downloadBundles(Subsystem.java:457)
nov 06 18:16:18 raspberrypi karaf[2158]:         at org.apache.karaf.features.internal.region.Subsystem.downloadBundles(Subsystem.java:452)
nov 06 18:16:18 raspberrypi karaf[2158]:         at org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:224)
nov 06 18:16:18 raspberrypi karaf[2158]:         at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:393)
nov 06 18:16:18 raspberrypi karaf[2158]:         at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062)
nov 06 18:16:18 raspberrypi karaf[2158]:         at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServ>
nov 06 18:16:18 raspberrypi karaf[2158]:         at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
nov 06 18:16:18 raspberrypi karaf[2158]:         at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
nov 06 18:16:18 raspberrypi karaf[2158]:         at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
nov 06 18:16:18 raspberrypi karaf[2158]:         at java.base/java.lang.Thread.run(Thread.java:829)
nov 06 18:16:18 raspberrypi karaf[2158]:         Suppressed: java.io.IOException: Error downloading mvn:org.openhab.addons.bundles/org.openhab.binding.tradfr>
nov 06 18:16:18 raspberrypi karaf[2158]:                 at org.apache.karaf.features.internal.download.impl.AbstractRetryableDownloadTask.run(AbstractRetrya>
nov 06 18:16:18 raspberrypi karaf[2158]:                 at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
nov 06 18:16:18 raspberrypi karaf[2158]:                 at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
nov 06 18:16:18 raspberrypi karaf[2158]:                 at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThrea>
nov 06 18:16:18 raspberrypi karaf[2158]:                 ... 3 more
nov 06 18:16:18 raspberrypi karaf[2158]:         Caused by: java.io.IOException: Error resolving artifact org.openhab.addons.bundles:org.openhab.binding.trad>
nov 06 18:16:18 raspberrypi karaf[2158]:                 at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.configureIOException(AetherBasedResolver.java:>
nov 06 18:16:18 raspberrypi karaf[2158]:                 at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:780)
nov 06 18:16:18 raspberrypi karaf[2158]:                 at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:657)
nov 06 18:16:18 raspberrypi karaf[2158]:                 at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:598)
nov 06 18:16:18 raspberrypi karaf[2158]:                 at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:565)
nov 06 18:16:18 raspberrypi karaf[2158]:                 at org.apache.karaf.features.internal.download.impl.MavenDownloadTask.download(MavenDownloadTask.jav>
nov 06 18:16:18 raspberrypi karaf[2158]:                 at org.apache.karaf.features.internal.download.impl.AbstractRetryableDownloadTask.run(AbstractRetrya>
nov 06 18:16:18 raspberrypi karaf[2158]:                 ... 6 more
nov 06 18:16:18 raspberrypi karaf[2158]:                 Suppressed: shaded.org.eclipse.aether.transfer.MetadataNotFoundException: Could not find metadata or>
nov 06 18:16:18 raspberrypi karaf[2158]:                         at shaded.org.eclipse.aether.internal.impl.DefaultMetadataResolver.resolve(DefaultMetadataRe>
nov 06 18:16:18 raspberrypi karaf[2158]:                         at shaded.org.eclipse.aether.internal.impl.DefaultMetadataResolver.resolveMetadata(DefaultMe>
nov 06 18:16:18 raspberrypi karaf[2158]:                         at shaded.org.apache.maven.repository.internal.DefaultVersionRangeResolver.getVersions(Defau>
nov 06 18:16:18 raspberrypi karaf[2158]:                         at shaded.org.apache.maven.repository.internal.DefaultVersionRangeResolver.resolveVersionRan>
nov 06 18:16:18 raspberrypi karaf[2158]:                         at shaded.org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveVersionRange(Defau>
nov 06 18:16:18 raspberrypi karaf[2158]:                         at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolveLatestVersionRange(AetherBasedR>
nov 06 18:16:18 raspberrypi karaf[2158]:                         at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:765)
nov 06 18:16:18 raspberrypi karaf[2158]:                         ... 11 more
nov 06 18:16:18 raspberrypi karaf[2158]:         Caused by: shaded.org.eclipse.aether.resolution.VersionRangeResolutionException: Error resolving artifact or>
nov 06 18:16:18 raspberrypi karaf[2158]:                 at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolveLatestVersionRange(AetherBasedResolver.>
nov 06 18:16:18 raspberrypi karaf[2158]:                 at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:765)
nov 06 18:16:18 raspberrypi karaf[2158]:                 ... 11 more

I don’t really know how to proceed… :frowning:

The environment variable is called userdata - the directory itself it is not.
On apt based systems:

OPENHAB_USERDATA=/var/lib/openhab

The messages are cut off / not complete.

Config files are either in /etc/openhab and its subdirectories or in /var/lib/openhab/etc resp. /var/lib/openhab and subdirectories.

You only upgraded the OS or you also upgrade the openhab package from 2.5.11 to 2.5.12 ?

Oh, thanks a lot.
Have seen userdata been referenced a lot in the forum, but never all caps that would’ve hinted to me it wasn’t an actual directory to look for.
I actually don’t know whether OpenHab itself has been upgraded whilst upgrading the OS, but since I’ve had trouble with reaching the 2.5 repository I would guess, No.

/GC

So, tried the trick in quoted post in the first response, to add JCenter as a remote location.

nov 06 20:39:58 raspberrypi karaf[572]:         Caused by: java.io.IOException: Error resolving artifact org.openhab.addons.bundles:org.openhab.binding.zwave:jar:[2.5.0,2.6): [Could not find metadata org.openhab.addons.bundles:org.openhab.binding.zwave/maven-metadata.xml in local (/var/lib/openhab2/tmp/mvn), Could not find metadata org.openhab.addons.bundles:org.openhab.binding.zwave/maven-metadata.xml in jcenter (https://jcenter.bintray.com/)]

Really frustrating not to know how things work, but I’ve not touched (or used) my setup in years, so it really doesn’t come naturally.
I guess just uninstall OH2 and install OH3 would be an option, but I want to try some things out in my current setup first…

Unfortunately, you’re fighting an uphill battle due to Bintray no longer being available.The easiest and fastest thing you can do is make a copy of your userdata folder and jump into OH3.

When I moved from OH2, I added my bindings/things and then copied over my .items files one at a time while updating their channels. Then I did the same for sitemaps and rules. Sitemaps should work as they are, and your rules may need some updates due to breaking changes.

Caution, this is not a “just” it would be a major upgrade.

Meantime 2.5.12 is still available.
You can download the whole thing

and also download two files withe all the add-ons (the v1 add-ons are in a “legacy” kar, which you’ll probably need for HTTP binding)

Finally got everything working as before, after I managed to find the kar-file and placed it as instructed in the quoted post in the first reply.

And yeah, it might be a big upgrade from OH2 to OH3, but to be honest, my OH2 setup is very limited has very few automations so I don’t think starting over fresh would be such a bad idea.
In my current setup I also have old items I can’t seem to get rid off, so that would be a plus.
I think the persistence in MariaDB is the “most advanced” in my setup, and I should be able to figure it out once again.

Anyway, thanks for the help. On to test some security camera integrations…

/GC