The Linux snapshot installation repo has moved!

Tags: #<Tag:0x00007f0148939838> #<Tag:0x00007f01489396f8> #<Tag:0x00007f0148939590>

(Ben Clark) #15

Changes to openHAB are always done as pull requests to GitHub, if you know the date of your snapshot then you can find out what changes were made since that time. For example, a list of changes made since the release version of openHAB 2 (2017-01-23):

Release Notes/Known Issues
(Stephan B.) #16

I have the openhab2-offline snapshot repo installed, but when I understand it right this package won’t be updated anymore and I have to use the “normal” openhab2 snapshot package.
But I cannot I install the openhab2 package as long as the openhab2-offline is installed. And I don’t want to lose my configuration so I don’t want to uninstall openhab2-offline. Is there a migration path for this szenario?

(Udo Hartmann) #17

No, you have to copy your conf folder (/etc/openhab2/), apt-get purge openhab-offline, change sources, apt-get update && apt-get install openhab2. After starting the new openHAB2 service, you are save to copy the old config files to /etc/openhab2/ (better per file, not the whole folder structure)

As there where changes belonging to the internal configuration (was changed from mapdb to json for speed reasons), there is no way to save the configurations, you made through Paper UI, so for this part, you will have to write down your configurations.
Please remember that openhab-offline was beta state, and the packaging was changed in beta phase.

(Ben Clark) #18

Installing openhab2 will automatically remove openhab2-offline and replace it. I still recommend that you make a backup of the /etc/openhab2 and /var/lib/openhab2 directories first and if you’re using a much older version, be prepared to do any paperUI setup again.

(Stephan B.) #19

At least on debian installing of openhab2 is not possible when openhab2-offline is installed. “apt-cache show openhab2” shows openhab2-offline and openhab2-online as conflicting packages:

Package: openhab2
Depends: adduser
**Conflicts: openhab2-online, openhab2-offline**

Because I’m using btrfs as filesystem type I created a snapshot as a fallback option and then did the following:

  1. Stop openhab2
  2. dpkg -r openhab2-offline (no purge)
  3. modify repository Information (now using stable repo)
  4. apt-get update
  5. apt-get install openhab2
  6. Start openhab2

To my surprise (nearly) everything seems to work well out of the box and my config survived, too.

The only thing that doesn’t work as expected is the key-based login to the karaf client, but I will open another thread for that topic.

Thanks for you input!

(Ben Clark) #20

That’s strange, apt-get install on Debian 7 and 8 usually removes conflicts on install of similar packages. We tried to keep transitioning as simple as possible so I tested just this on my own machines. Glad you have the majority of it working though.

(Stephan B.) #21

Not sure why I wrote that it’s a debian installation, in fact it’s Ubuntu 14.04 LTS. :wink:
Sorry for the confusion

(Hallo Ween) #22

Is there a problem if i use update/upgrade on a running OH2 version?

What will be the result? Will the update fail? Or can i get other errors?

(Ben Clark) #23

The upgrade process stops openhab2 first, installs the new version and then starts openhab2 again.

Online Repo for Snapshots has moved to Artifactory
(Alexander) #24


it seems like i got a problem with updating the snapshot-releases.

at first i installed the stable version and later i switched to the snapshot-release. i updated the apt-repo, uninstalled openhab2 and installed a new version an for me it looks like, it already updated a few times, but sind 31.03. openhab didnt upgrade to a newer snapshot.

here some more informations:

root@HomeServer:~# dpkg -l | grep openhab
ii  openhab2                                                    2.1.0~20170331113737-1       all          openhab2
root@HomeServer:~# dpkg -r openhab2-offline
dpkg: Warnung: Die Anforderung, openhab2-offline zu entfernen, wird ignoriert; es ist nicht installiert
root@HomeServer:~# apt-cache showpkg openhab2
Package: openhab2
2.1.0~20170331113737-1 (/var/lib/apt/lists/openhab.jfrog.io_openhab_openhab-linuxpkg_dists_unstable_main_binary-amd64_Packages) (/var/lib/dpkg/status)
 Description Language:
                 File: /var/lib/apt/lists/openhab.jfrog.io_openhab_openhab-linuxpkg_dists_unstable_main_binary-amd64_Packages
                  MD5: 326ece3868ef747762229ee66dc0da02

2.1.0~20170330184329-1 (/var/lib/apt/lists/openhab.jfrog.io_openhab_openhab-linuxpkg_dists_unstable_main_binary-amd64_Packages)
 Description Language:
                 File: /var/lib/apt/lists/openhab.jfrog.io_openhab_openhab-linuxpkg_dists_unstable_main_binary-amd64_Packages
                  MD5: 326ece3868ef747762229ee66dc0da02

2.1.0~20170327090706-1 (/var/lib/apt/lists/openhab.jfrog.io_openhab_openhab-linuxpkg_dists_unstable_main_binary-amd64_Packages)
 Description Language:
                 File: /var/lib/apt/lists/openhab.jfrog.io_openhab_openhab-linuxpkg_dists_unstable_main_binary-amd64_Packages
                  MD5: 326ece3868ef747762229ee66dc0da02

2.1.0~20170325134201-1 (/var/lib/apt/lists/openhab.jfrog.io_openhab_openhab-linuxpkg_dists_unstable_main_binary-amd64_Packages)
 Description Language:
                 File: /var/lib/apt/lists/openhab.jfrog.io_openhab_openhab-linuxpkg_dists_unstable_main_binary-amd64_Packages
                  MD5: 326ece3868ef747762229ee66dc0da02

2.1.0~20170324094534-1 (/var/lib/apt/lists/openhab.jfrog.io_openhab_openhab-linuxpkg_dists_unstable_main_binary-amd64_Packages)
 Description Language:
                 File: /var/lib/apt/lists/openhab.jfrog.io_openhab_openhab-linuxpkg_dists_unstable_main_binary-amd64_Packages
                  MD5: 326ece3868ef747762229ee66dc0da02

Reverse Depends:
2.1.0~20170331113737-1 - adduser (0 (null)) openhab2-online (0 (null)) openhab2-offline (0 (null))
2.1.0~20170330184329-1 - adduser (0 (null)) openhab2-online (0 (null)) openhab2-offline (0 (null))
2.1.0~20170327090706-1 - adduser (0 (null)) openhab2-online (0 (null)) openhab2-offline (0 (null))
2.1.0~20170325134201-1 - adduser (0 (null)) openhab2-online (0 (null)) openhab2-offline (0 (null))
2.1.0~20170324094534-1 - adduser (0 (null)) openhab2-online (0 (null)) openhab2-offline (0 (null))
2.1.0~20170331113737-1 -
2.1.0~20170330184329-1 -
2.1.0~20170327090706-1 -
2.1.0~20170325134201-1 -
2.1.0~20170324094534-1 -
Reverse Provides:

(SiHui) #25

There are problems building new repos:

(Alexander) #26

thank you very much, thought all the time it way my fault!

(Angelos) #27

Hi @Benjy!

jfrog repo will continue to be used for the upcoming OH2 snapshots? (2.2.x ?)

I see that the latest available build (using apt-get) is 2.1.0~20170626192651-1 (Snapshot #970)
Build S#972 is also created, but it doesn’t seem to be available using apt (or I am doing something wrong… :stuck_out_tongue:)

(Ben Clark) #28

It will yeah, but the versioning hasn’t switched over to 2.2.0-SNAPSHOT just yet. It’ll automatically start building them when they’re available.

(Hallo Ween) #29

So #970 is the latest snapshot? Is this the same like official 2.1 version?

(Ben Clark) #30

Yes, i don’t think there were any functional changes between 970 and the stable build.

(Ben Clark) #31

You can update to 2.2.0-snapshot now, #975 will be the first.

(Angelos) #32

Done! :thumbsup:

Get:1 unstable/main openhab2 all 2.2.0~20170629133434-1 [53.4 MB]
Unpacking openhab2 (2.2.0~20170629133434-1) over (2.1.0~20170626192651-1) ...
Processing triggers for systemd (215-17+deb8u7) ...
Setting up openhab2 (2.2.0~20170629133434-1) ...

A few seconds later…

2017-06-29 [HELLO] [openHAB2.core.X] - Initialized Core Engines. Turbo Mode Activated !


(Hallo Ween) #33

Same to me. Is working.

(SiHui) #34

With my manual #975 install I only got boost mode :joy:

2017-06-29 [HELLO] [openHAB2.core.X] - Initialized Core Engines. Boost Mode Activated, Turbo left for later !

Otherwise: running great so far.