The Linux snapshot installation repo has moved!

On every successful build automatically :-). Build 809-811 failed to complete so the debian version stays the same.

Latest successful nightly is 6 days old.

Latest one now only 23 minutes old :wink:

2 Likes

Hello everyone,

I just tried to add the snapshot repository to my Raspian distro. Unfortunately somethings seems broken. Here is what I get during apt-get update.

Err http://openhab.jfrog.io unstable/main armhf Packages
302 Moved Temporarily

Any ideas?

Best regards
-Rene

They seem to be all there. What is the exact line in your sources file?

Hello Benjy,

please see here:
straub@hab /etc/apt/sources.list.d $ cat openhab2.list
deb http://openhab.jfrog.io/openhab/openhab-linuxpkg unstable main

1 Like

Seems the packages moved to https://

After changing the packet location and installing the https transport for apt (sudo apt-get install apt-transport-https), the source is now valid.

Now just the public key is missing.
W: GPG error: https://openhab.jfrog.io unstable Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 075721F6A224060A

That shouldn’t have been necessary, unless there’s something wrong dns side?

Have you added the gpg key to apt?

wget -qO - 'https://bintray.com/user/downloadSubjectPublicKey?username=openhab' | sudo apt-key add -

Is there a changelog of the snapshot versions? Where can i find it?

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):

1 Like

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?

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.

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.

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!

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.

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

1 Like

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?

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

Hello,

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
Versions:
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:
  openhab2-addons-legacy,openhab2
  openhab2-addons-legacy,openhab2
  openhab2-addons-legacy,openhab2
  openhab2-addons-legacy,openhab2
  openhab2-addons-legacy,openhab2
  openhab2-addons,openhab2
  openhab2-addons,openhab2
  openhab2-addons,openhab2
  openhab2-addons,openhab2
  openhab2-addons,openhab2
Dependencies:
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))
Provides:
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:

There are problems building new repos: