# \[OH3\] Habpanel shows old version after migration from OH2.5 to OH3

**URL:** <https://community.openhab.org/t/oh3-habpanel-shows-old-version-after-migration-from-oh2-5-to-oh3/111313>\
**Category:** HABPanel\
**Tags:** habpanel, openhab3\
**Created:** [December 25, 2020, 11:28pm UTC](https://community.openhab.org/t/oh3-habpanel-shows-old-version-after-migration-from-oh2-5-to-oh3/111313 "2020-12-25T23:28:36Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![schmidmuc](https://community.openhab.org/letter_avatar_proxy/v4/letter/s/ecb155/32.png) [@schmidmuc](https://community.openhab.org/u/schmidmuc)\
**Post date:** [December 25, 2020, 11:28pm UTC](https://community.openhab.org/t/oh3-habpanel-shows-old-version-after-migration-from-oh2-5-to-oh3/111313/1 "2020-12-25T23:28:36Z")

</div>

Before migration from OH2 to OH3 I created a backup and I restored it partially later on.

For HabPanel this didn’t work as HabPanel under OH3 doesn’t show the last, backuped version, but some (very) old version of the Habpanel config.

Doublechecked the /var/lib/openhab/config/org/openhab/habpanel.config and found some elements for them I know were created quite short before migration, and I found them written in the file.

Could it be that OH3 doesn’t load the config from the above mentioned file but from another place (where there might be an older version stored)?

---

<div class="post-metadata">

**Author:** ![Bruce\_Osborne](https://community.openhab.org/user_avatar/community.openhab.org/bruce_osborne/32/38531_2.png) [@Bruce\_Osborne](https://community.openhab.org/u/Bruce_Osborne)\
**Post date:** [December 26, 2020, 12:05am UTC](https://community.openhab.org/t/oh3-habpanel-shows-old-version-after-migration-from-oh2-5-to-oh3/111313/2 "2020-12-26T00:05:05Z")

</div>

> [@schmidmuc](#):
>
> Doublechecked the /var/lib/openhab2/config/org/openhab/habpanel.config

openHAB 3 does not look there. It likely looks at ` /var/lib/openhab/config/org/openhab/habpanel.config` The `2` was dropped from the openhab directory name.

---

<div class="post-metadata">

**Author:** ![schmidmuc](https://community.openhab.org/letter_avatar_proxy/v4/letter/s/ecb155/32.png) [@schmidmuc](https://community.openhab.org/u/schmidmuc)\
**Post date:** [December 26, 2020, 12:07am UTC](https://community.openhab.org/t/oh3-habpanel-shows-old-version-after-migration-from-oh2-5-to-oh3/111313/3 "2020-12-26T00:07:23Z")

</div>

Of course you’re right, this was a typo… It also doesn’t work when copying the backuped file to /var/lib/openhab/config/org/openhab/habpanel.config

---

<div class="post-metadata">

**Author:** ![voruti](https://community.openhab.org/letter_avatar_proxy/v4/letter/v/9e8a1a/32.png) [@voruti](https://community.openhab.org/u/voruti)\
**Post date:** [December 26, 2020, 10:42am UTC](https://community.openhab.org/t/oh3-habpanel-shows-old-version-after-migration-from-oh2-5-to-oh3/111313/4 "2020-12-26T10:42:24Z")

</div>

The new configuration path seems to be `$OPENHAB_USERDATA/jsondb/uicomponents_habpanel_panelconfig.json`. Unfortunately the file uses a different format (JSON); moving the 2.X file to the new location probably won’t work.

It’s possible that the “old” version you are seeing is just saved within your browser (cookies, etc.).

I also have the problem that I want to convert my HabPanel configuration for openHAB 3. I would also be interested in a solution how to preserve the habpanel configuration (then as JSON).

---

<div class="post-metadata">

**Author:** ![voruti](https://community.openhab.org/letter_avatar_proxy/v4/letter/v/9e8a1a/32.png) [@voruti](https://community.openhab.org/u/voruti)\
**Post date:** [December 26, 2020, 12:43pm UTC](https://community.openhab.org/t/oh3-habpanel-shows-old-version-after-migration-from-oh2-5-to-oh3/111313/5 "2020-12-26T12:43:24Z")

</div>

Ok, so I got it working by:

- installing openHAB 2.5.11 locally on my Windows 10 machine
- loading my backup of openHAB 2.X
- opening HabPanel → Settings → Edit local panel configuration → Export
- opening the “new” HabPanel (of the openHAB 3 instance) → … → Import

Ta-da, the `$OPENHAB_USERDATA/jsondb/uicomponents_habpanel_panelconfig.json` file is updated with the correct content!

---

<div class="post-metadata">

**Author:** ![schmidmuc](https://community.openhab.org/letter_avatar_proxy/v4/letter/s/ecb155/32.png) [@schmidmuc](https://community.openhab.org/u/schmidmuc)\
**Post date:** [December 26, 2020, 8:57pm UTC](https://community.openhab.org/t/oh3-habpanel-shows-old-version-after-migration-from-oh2-5-to-oh3/111313/6 "2020-12-26T20:57:05Z")

</div>

Many thanks. This worked as a workaround.

Anyway this should get fixed as well… Ticket is opened under [HabPanel doesn't load habpanel.config after migration to OH3 · Issue #700 · openhab/openhab-webui · GitHub](https://github.com/openhab/openhab-webui/issues/700)

---

<div class="post-metadata">

**Author:** ![NCO](https://community.openhab.org/user_avatar/community.openhab.org/nco/32/55938_2.png) [@NCO](https://community.openhab.org/u/NCO)\
**Post date:** [December 30, 2020, 1:12pm UTC](https://community.openhab.org/t/oh3-habpanel-shows-old-version-after-migration-from-oh2-5-to-oh3/111313/7 "2020-12-30T13:12:53Z")

</div>

Hi Guys,

I tried this the same way (and did before when starting from scratch).  
Unfortunately I am not able to open the config - so editing is impossible:  
The edit button does not show up (yellow circle):

 ![image](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/5/f/5fedcaaa36e2f5aaea0351f227d7505837912a88.png)  
neither the settings wheel on top right of the screen shows up.

This is the case for both:  
[http://192.168.68.28:8080/habpanel/index.html#/](http://192.168.68.28:8080/habpanel/index.html#/)  
as well as  
[http://192.168.68.28:8080/static/habpanel/index.html#/](http://192.168.68.28:8080/static/habpanel/index.html#/)  
with all my stuff in /etc/openhab/html/habpanel…  
(I extracted the most recent habpanel package here).

Any suggestions what might be wrong?

---

<div class="post-metadata">

**Author:** ![schmidmuc](https://community.openhab.org/letter_avatar_proxy/v4/letter/s/ecb155/32.png) [@schmidmuc](https://community.openhab.org/u/schmidmuc)\
**Post date:** [December 30, 2020, 1:21pm UTC](https://community.openhab.org/t/oh3-habpanel-shows-old-version-after-migration-from-oh2-5-to-oh3/111313/8 "2020-12-30T13:21:18Z")

</div>

Just change the “view” within the URL to “edit” and you’ll get to the edit page…

---

<div class="post-metadata">

**Author:** ![NCO](https://community.openhab.org/user_avatar/community.openhab.org/nco/32/55938_2.png) [@NCO](https://community.openhab.org/u/NCO)\
**Post date:** [December 30, 2020, 1:52pm UTC](https://community.openhab.org/t/oh3-habpanel-shows-old-version-after-migration-from-oh2-5-to-oh3/111313/9 "2020-12-30T13:52:35Z")

</div>

Thanks a lot.  
I didn’t know that trick.

Unfortunately changing the config ist still not possible:

 ![image](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/d/e/de49626a5a53428daaeff42821627a1569ffd8d7.png)

I can open “Edit the local …” and can paste my previous config.  
According to the reponse it has been saved, but I cannot store it locally under a new name.

EDIT:  
Maybe this will work  
(I just saw that you had the same issue once 😉

> [@HABpanel blackscreen after restart (SOLVED)](https://community.openhab.org/t/habpanel-blackscreen-after-restart-solved/55285):
>
> Hi. I have openhab 2.3 running on win 10 PC as a service. I’m having strange problems as my HABpanel seem to be constantly wiped when I restart PC or openhab service, and the panel goes blackscreen. After restart if I go to paperui → Configuration → Services → UI → HABPanel → CONFIGURE and see the “panel registry JSON”, I notice that most of the JSON-code has been wiped out. I have working backups, but after I start a working backup, same thing still happens. I have noticed that “habpanel.con…

EDIT II:  
Unfortunately I did not find the habpanel.config in  
`/var/lib/openhab/config/org/openhab`  
all other bindings have the config here…

---

<div class="post-metadata">

**Author:** ![NCO](https://community.openhab.org/user_avatar/community.openhab.org/nco/32/55938_2.png) [@NCO](https://community.openhab.org/u/NCO)\
**Post date:** [December 30, 2020, 4:37pm UTC](https://community.openhab.org/t/oh3-habpanel-shows-old-version-after-migration-from-oh2-5-to-oh3/111313/10 "2020-12-30T16:37:14Z")

</div>

Just to close my open case here:  
I ended up with a black screen instead of any configurable panel.  
(this issue can be found several times here in the forum when looking for black screen on habpanel.

I just soved this by shutting down OH3, deleting the (potentially corrupt) config file which is nowadays this one (OH3) and starting OH3 again:  
`/var/lib/openhab/jsondb/uicomponents_habpanel_panelconfig.json`

Too early happy:  
After the steps above was able to import my OH2 json.  
However, because I use custom icons I usually extract the habpanel stuff into /etc/openhab/html/habpanel, which I also did.  
Unfortunately after that (and fixing permissions with openhabian-config to be on the same side), I was not able to change anything on the habpanel config anymore:

So, what could prevent me from editing the config?
