New folder structure

Thx Sihui lets see if some skilled openhabler who is using windows can confirm this. Hopefully not all skilled openhabler are using Linux :wink:

NoTechi

Thanks NoTechi for your description. Unfortunately that road was no option for me as I have to many things and items defined i both the database and files. By the way,I’m trying to upgrade snap-shot #657 to #692

Instead I tried to “decipher” the script files for linux and come up with this procedure:

  1. Backup your Openhab2 folder (you need files from there in a moment)
  2. Download and unzip the new distro. Rename the folder to whatever you usually call your openhab folder. I my case OpenHAB2
  3. Make a COPY of the newly created OpenHAB2 folder. (you need files from there in a moment)
  4. Copy the “conf” folder from your old openhab2 folder (the backup) to the new OpenHAB2 folder
  5. Copy the “userdata” folder from your old openhab2 folder (the backup) to the new OpenHAB2 folder
  6. Copy all /userdata/etc/*.properties files from the new openHAB2 COPY folder to the OpenHAB2 folder (step 3)
  7. Copy all /userdata/etc/org.apache,karaf., files from the new openHAB2 COPY folder to the OpenHAB2 folder (step 3)
  8. Remove the files in the /userdata/cache folder.

First I missed to clear the cache. The software started but it was still the old #657 version!! At least it was what is showed on screen. I don’t know if this is the right way to go as I don’t exactly know the function of the cache, but i seems to work!

The new version has only been running for 1 hour now so I it is too early to say everything is ok but at least it is a step forward :slight_smile:

I knew I had seen something:

Thx Magnus and Sihui trying to assist in figuring out how to update a Windows system. Sounds like it is still a bit tricky and might change as well on future changes.
I would wish there would be an update script/batch file included to the official Windows nightly builds. That way the developers could keep the update script updated in case of changes to other files.

NoTechi

Well, I would wish, we first of all have a stable upgrade mechanism, this is still not worked out. Once this is there, it should be easy to also provide update scripts (note that they do not exist for Linux either).

Looking forward to it :slight_smile:

NoTechi

Hey guys, @NoTechi @maze

We are always happy to receive help with the documentation. Would you care to propose changes/improvements for the Windows installation article?

The article can be found at https://github.com/openhab/openhab-docs/blob/gh-pages/installation/windows.md

Whatever you decide, please create a ticket at https://github.com/openhab/openhab-docs/issues/new


Regarding the update script for all OSes, I also like the idea. Please likewise create a ticket at https://github.com/openhab/openhab-distro/issues/new

Does the new folder structure affect webapps being in conf/html as per this discussion:

and using http://ip-address/static/index.html to access it? Getting a “Not Found” on a .zip installation.

No, it does not touch this. I correctly see content on http://localhost:8080/static/index.html - check your url.

Thanks for the reply @Kai and a big thanks for all of the work you have put in to OH.
I have jumped around installing and re-installing so many times in recent days trying to find a way around the nrjavaserial issue Nrjavaserial upgrade causes "Serial Error: Port /dev/ttyACM0 does not exist" (/dev/ttyAMA0 in my case) that I have lost track of what I may have broken and what is a temporary issue in OH2.
I will do a complete purge and re-install to see if I can restore what I had.
Cheers.