New folder structure

Well that’s embarrassing, you are totally right…
I assumed that the start.sh was indeed updated using makeHAB (as it makes a point of removing *.bat) but it uses unzip -n (no overwrite)… My bad :frowning:

The script has been updated to address the startup script problem. Feel free to pull/update.

1 Like

I switched over from OpenHAB1 to OpenHAB2 3 or 4 weeks ago. I installed it by the apt-get method using the snapshot release (Online version) on to a raspberry pi. I have not done an apt-get update and upgrade yet. I want to make sure I do it right with the new folder structure changes. Can someone give me a step by step instructions to do this without losing anything? Thanks!

@MikeH: If you did not make direct changes to files beneath /usr/share/openhab2 you should be able to simply upgrade.
Still something could go wrong. Be sure to make a backup beforehand! http://docs.openhab.org/installation/linux.html#backup-and-restore

No, I made no changes in that directory. Thanks for the help!

Now installing opnehab2-offline works

I don’t know why my git didn’t see the change but today i tried again, compiled a Snapshot of openhab2-offline and got it installed and started without problems from a local repository.

Let’s say I followed these instructions to emergency-repair my broken installation. What would be your recommendation how to update now.

There is one more problem:

$HAB/userdata/etc/branding.properties doesn’t get overwritten either, so every time you update the update works, but it shows you the old version number … was quite confusing this morning when I want to check the installed version :slight_smile:

I just updated my OH2 following this instructions: http://docs.openhab.org -> openHAB 2 on Linux
and using the offline package of OH2 alpha snapshot.

Seems like the update went well I’m not familiar with Linux but there were no error messages while update process was running).

But now OH “lost” Habmin and Habpanel.

[URL=http://www.imagebam.com/image/fecb7f515996510][/URL]

What’s going wrong - or better, how to fix it?

I’m running openhabian on a Pi3 and this was my first update / upgrade ever to be able to use custom widgets on Habpanel.

edit:
maybe found the problem.
All installed bindings, extensions and UIs are lost.
Nice…

@Marijn_Oudijk There should never be a need to change the karaf file itself (this is true before and after the folder structure change). This is what EXTRA_JAVA_OPTS is meant for - if this does not work as expected, you should investigate why this is.

Good point @sihui! Will have to think about another mechanism to supply the branding - I have created https://github.com/openhab/openhab-distro/issues/331 for it.

Please do not forget the Non- Linux Users and think about a bat script running under Windows.

and please do not forget the non-pro users who are screwed if an update goes this wrong.

just lost all my configurations too
[URL=http://www.imagebam.com/image/642275516021828][/URL] [URL=http://www.imagebam.com/image/538691516021848][/URL]

Not sure I get your point. There are bat scripts since openHAB 1.0 and nothing has changed about that or is anything missing?

I don’t think your configurations are “lost”, since these never get overwritten. Have you added your addons in the list at <conf folder>/services/addons.cfg?

@g_g_rich, Does this have the same effect if you place this in: /etc/default/openhab2

I was not aware of those scripts. Probably Google would have been my friend.
I will report back when I update my OH2 installation.

… or the docs: :slight_smile:

http://docs.openhab.org/installation/windows.html

This bat is to start openhab but not to update it.

Ahh, okay, did not get your point right in