# Broken installation after restoring backup

**URL:** <https://community.openhab.org/t/broken-installation-after-restoring-backup/129815>\
**Category:** Runtime\
**Tags:** openhab2-addons, openhab2\
**Created:** [December 9, 2021, 12:28pm UTC](https://community.openhab.org/t/broken-installation-after-restoring-backup/129815 "2021-12-09T12:28:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![miro-s](https://community.openhab.org/letter_avatar_proxy/v4/letter/m/fbc32d/32.png) [@miro-s](https://community.openhab.org/u/miro-s)\
**Post date:** [December 9, 2021, 12:28pm UTC](https://community.openhab.org/t/broken-installation-after-restoring-backup/129815/1 "2021-12-09T12:28:36Z")

</div>

Hi all,  
I’m operating a quite big and still growing OH2.5.1 installation on a RasPi4 with 4GB RAM + SSD since years. The following addons were used KNX, Onwire, MQTT, InfluxDB, Grafana.

Since I saw a strage NullPointerException from Karaf crashing my system, I did an upgrade with “apt-get upgrade”. Many packages have been upgraded, including OH (to 2.5.12).  
Unfortunately, this version was not working with my installation. It wasn’t even able to start and the PaperUI was gone, etc. So, I did a restore with the CLI tool to a backup I created before.  
After this completed, all addons were missing and could not be loaded from remote.  
The only addon binary I could find is for 2.5.12 on JFrog ☹

System is starting with that, but it generates error messages once in a minute:

```auto
2021-12-09 13:08:19.058 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-binding-http1, openhab-ui-homebuilder, openhab-persistence-influxdb, openhab-binding-owserver1, openhab-transformation-regex, openhab-ui-habpanel, openhab-transformation-xpath, openhab-binding-mqtt, openhab-transformation-map, openhab-ui-basic, openhab-binding-onewire, openhab-binding-knx, openhab-binding-systeminfo, openhab-ui-paper, openhab-binding-samsungtv': Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=openhab-transformation-map; type=karaf.feature; version="[2.5.1,2.5.1]"; filter:="(&(osgi.identity=openhab-transformation-map)(type=karaf.feature)(version>=2.5.1)(version<=2.5.1))"

```

Where can I find the addons for 2.5.1 and why have they not been backuped by the tool?

Thank you for helping me…  
Miro

---

<div class="post-metadata">

**Author:** ![mstormi](https://community.openhab.org/user_avatar/community.openhab.org/mstormi/32/55857_2.png) [@mstormi](https://community.openhab.org/u/mstormi)\
**Post date:** [December 9, 2021, 1:48pm UTC](https://community.openhab.org/t/broken-installation-after-restoring-backup/129815/2 "2021-12-09T13:48:39Z")

</div>

> [@miro-s](#):
>
> Where can I find the addons for 2.5.1 and why have they not been backuped by the tool?

openhab-cli is not a backup tool. It just exports the openHAB _configuration_, not the binaries, not the rest of your server.

I wouldn’t know of any binaries older than the current 2.5.12, I’m afraid you’re out of luck there.

I suggest you focus on getting your config to work with 2.5.12. That might be painful but there’s no good way around when you don’t have a real (full server) backup.  
Increase logging to debug level for a start on `org.openhab` and `org.apache`, eventually.

Invest in a new setup that provides comprehensive migration and backup capabilities, consider going openHABian.  
Also consider moving on to OH3 to have it working before you run out of support for OH2.

Sorry for the bad news.

---

<div class="post-metadata">

**Author:** ![rossko57](https://community.openhab.org/user_avatar/community.openhab.org/rossko57/32/70263_2.png) [@rossko57](https://community.openhab.org/u/rossko57)\
**Post date:** [December 9, 2021, 2:03pm UTC](https://community.openhab.org/t/broken-installation-after-restoring-backup/129815/3 "2021-12-09T14:03:01Z")

</div>

> [@miro-s](#):
>
> `Failed installing 'openhab-binding-http1`

If you are using the 2.5.12 add-ons kar file, note that legacy (v1.x) bindings are in a separate kar.

> [@openHAB 2.5.x and the sunset of Bintray](https://community.openhab.org/t/openhab-2-5-x-and-the-sunset-of-bintray/121839):
>
> All, The [sunset of Bintray on May 1st](https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/) caused existing openHAB 2.5.x installations to no longer be able to download add-ons from the remote repository (because this was actually Bintray). The original plan was to move this content to another place and offer a seamless switch for the users, but unfortunately this turned out to be more complicated than thought, so that it didn’t work out - at least until now. There are two options to fix the problem, though: Use the offline version of the add-…

---

<div class="post-metadata">

**Author:** ![rlkoshak](https://community.openhab.org/user_avatar/community.openhab.org/rlkoshak/32/75251_2.png) [@rlkoshak](https://community.openhab.org/u/rlkoshak)\
**Post date:** [December 9, 2021, 4:55pm UTC](https://community.openhab.org/t/broken-installation-after-restoring-backup/129815/4 "2021-12-09T16:55:38Z")

</div>

And to add just one more detail, that sunset of Bintray mentioned in the link @rossko57 posted resulted in the loss of any version of OH artifacts prior to 2.5.12. There might be binaries out there on the Wayback Machine or the like but if they are I don’t know about them.

For the most part you are stuck getting your config to work with 2.5.12 or making the jump to 3.1.

Theoretically, there is no reason why the upgrade to 2.5.12 wouldn’t work. In all likelihood I would guess you ran into a different problem caused by the sunset of Bintray and that openHAB was looking in the wrong place for the add-ons. That’s why you didn’t have PaperUI or all the rest. If you make the changes recommended in rossko57’s link that might get you up and running.

My last bit of advice would be:

1. if you want to leave a system running for long periods of time without upgrades/updates, never upgrade or update until you are ready for a bunch of new work
2. the longer you wait to upgrade/update the more work it will be to fix what breaks
3. even if you never change things on your system, often something will change or break outside or around your system that causes your system to break.

That’s what appears to have happened here. Unfortunately, you’ve now a bunch of “update debt” that has to be paid off. In this case it’s going to be upgrading everything to at least 2.5.12.

> [@miro-s](#):
>
> Where can I find the addons for 2.5.1 and why have they not been backuped by the tool?

It will include the add-ons if you use the `--full` option. Otherwise it only saves the configs and settings.

---

<div class="post-metadata">

**Author:** ![miro-s](https://community.openhab.org/letter_avatar_proxy/v4/letter/m/fbc32d/32.png) [@miro-s](https://community.openhab.org/u/miro-s)\
**Post date:** [December 10, 2021, 7:39am UTC](https://community.openhab.org/t/broken-installation-after-restoring-backup/129815/5 "2021-12-10T07:39:11Z")

</div>

Thank you all for the hints and recommendations!  
Next time I will think more about the backup strategy.

Crazily, everything seems to work, even if the error message is still showing up every minute.  
Rules, mappings, transformations, node-red integration, influxdb persistence - all there 😅

So, despite the bad news, your feedback is giving me good guidance out of the dark…  
If I have to invest significant effort anyway, then I should possibly migrate right to OH3.1.  
I just installed openhabian with OH3 on an old Pi3 to figure out the differences.  
The migration could be a little bit tricky, because I have to migrate hundreds of things and items as a file-based config (e.g., the KNX stuff I generated so far from my ETS project).

@rlkoshak Your three points of advice should be printed on the OH login screen for everybody who is willing to operate OH in a long-term-stable production environment.

Best regards,  
Miro
