openhab-snap icon indicating copy to clipboard operation
openhab-snap copied to clipboard

Snap package OpenHAB 2 outdated

Open DarkLite1 opened this issue 8 years ago • 11 comments

@kubiko @r2geo When trying to install the OpenHAB 2 snap package from the command line it appears only version 2.0.0 is published as Stable while the website advertises version 2.1.0 to be the latest Stable available:

[b@machine~] sudo snap info openhab 
name:      openhab
summary:   "openHAB smart home server"
publisher: openhab
contact:   [email protected]
description: |
  openHAB - a vendor and technology agnostic open source automation software for
  your home.
  
snap-id: WpdPxW72JupkC8XTgaJsig3LEHdrR56x
commands:
  - openhab.clean
  - openhab.client
  - openhab.debug
  - openhab.help
  - openhab.start
  - openhab.status
  - openhab.stop
tracking:    stable
installed:   2.0.0 (167) 85MB -
refreshed:   2017-03-09 01:35:32 +0100 CET
channels:                         
  stable:    2.0.0          (167) 85MB -
  candidate: 2.0.0          (180) 85MB -
  beta:      2.0.0-SNAPSHOT (179) 85MB -
  edge:      2.1.0-SNAPSHOT (190) 86MB -

I've also read somewhere that version 2.2.0 is in development now. Should that not be the one that should be in the Edge channel?

Is it possible to update the packages in the snap store to the latest and greatest?

Thank you for your help.

See original issue

DarkLite1 avatar Sep 23 '17 18:09 DarkLite1

Hi @DarkLite1 Over the summer I have not followed this snap package too much, since I got stuck in some places. Auto-update does not work at the moment, but there were some more fundamental issues with ubuntu core being so secure, that adding things like a usb zwave controller, usb DSMR cable or external media need a user (or me) to spin a dedicated ubuntu core image that allows these items to be connected. @kubiko created one, but that link does not exist anymore. And then there are some things with launchpad that I never 100% got to work, hence the lack of automated updates, something that was supposed to in place. Then canonical started their reorganization, that did not help move things ... etc Last days I was looking and things may be looking a little more positive. My effort is not entirely dormant, but snail pace for sure. Best regards, Roeland

@kaikreuzer

r2geo avatar Sep 28 '17 09:09 r2geo

Thanks for the feedback, I already thought that this was something to be done in an automated way. Shame it's such a hassle to set it up properly, because all distributions would benefit from this. Especially because Snap packages are so nice to use. There's literally no hassle in setting up Java or whatever else.

Thank you for the current snap, appreciate it. Let's hope we can automate this at some point. Fingers crossed.

DarkLite1 avatar Sep 28 '17 09:09 DarkLite1

hi all sorry for late response….. I spent some time with snap recipe now, and hopefully this will help to make build lot more automated. Old version needed essentially git commit for each new version. Now it should determine version automatically from pom.xml. It's pointed to build from master on openhab-distro, but it also tries to determine if master is just one commit behind latest tag and then it will build from tag instead. Hopefully this will allow us to also automate release builds. I will do pull request hopefully today once I'm done with more testing. So missing part is changing this somehow into cloud bees build. I'm not familiar with cloudbees, so I can't tell how this could be done. We can either poke Launchpad to start build, or we can do build entirely in cloudbees and only push new snaps to the store. @r2geo any idea who can help with this? If we do snap building in cloudbees, we can even reuse zip/tar ball generated there.

@r2geo can you also let me know what were some other problems you have found with new versions so I can have a look?

I also moved addons directory mapping, so user can now easily included custom addons, before it required some config changes.

kubiko avatar Oct 04 '17 13:10 kubiko

Hi Ondrej, good to see your writing. Tomorrow I will send you an email direct with some issues where I get stuck. Best regards, Roeland

r2geo avatar Oct 04 '17 18:10 r2geo

Thanks guys for the effort. Really appreciate it!

DarkLite1 avatar Oct 05 '17 06:10 DarkLite1

Seems like Ubuntu now has a special build service for snaps: https://build.snapcraft.io/

ThyMYthOS avatar Feb 07 '18 17:02 ThyMYthOS

Greetings.

I was sent here via the following thread on the OpenHAB site:

Ubuntu Snappy Packaging

Confirming the official OH Snap is very outdated: https://snapcraft.io/openhab

But looks like @kubiko may be maintaining an up-to-date version: https://snapcraft.io/openhab-ondra

I would prefer to pull from the official repo location if possible.

@kubiko Can you comment as to the status/purpose of your OH Snap Repo and weather an update to the official Snap might be coming soon?

Thanks!

iNamik avatar Sep 13 '18 16:09 iNamik

Not much to add for now but I'm interested in as a user to see an updated version of OH snap. Automated build would be super, but even manual build that includes the latest OH is better than no update.

130s avatar Feb 02 '19 20:02 130s

Sorry for no response Purpose of my snap is prototyping with new features and test builds before pushing it to upstream, and I've been quite sloppy with last part. Admittedly I should have used edge channel of OpenHAB snap instead. It was just quicker to iterate as I was not having lately time to play with it. Some features I worked on

  • new json based configuration which should be lot more flexible going forward
  • backup restore support
  • upgrade mechanism is now based on openHAB own upgrade and using configs from openHAB package, so it's way more robust to move from revision to revision
  • sorted more robust automated release and daily builds I will check with OpenHAB guys, I guess @r2geo should be able to help here with upstreaming the changes. I have two options how to build daily, on Jenkins/Cloud-bees directly or just triggering build in launchpad. I have also pushed some changes to snapd, so we should have full support for usb devices (zwave, zigbee) without need to tweak gadget snap. Help I could use now is somebody giving OpenHAB-ondra snap good test before we push all the changes to openHAB snap.....

kubiko avatar Feb 03 '19 03:02 kubiko

I do see the latest released OpenHAB, which is 2.5.9 IIUC https://github.com/openhab/openhab-distro/tags, is also available via snap.

$ snap info openhab
name:      openhab
summary:   openHAB smart home server
publisher: openHAB Foundation e.V. (openhab)
store-url: https://snapcraft.io/openhab
contact:   [email protected]
license:   unset
description: |
  openHAB - a vendor and technology agnostic open source automation software for your home.
commands:
  - openhab.backup
  - openhab.client
  - openhab.help
  - openhab.influx
  - openhab.karaf
  - openhab.restore
  - openhab.start
  - openhab.status
  - openhab.stop
services:
  openhab.influx-setup: oneshot, disabled, inactive
  openhab.influxd:      simple, disabled, inactive
  openhab:              simple, enabled, active
snap-id:      WpdPxW72JupkC8XTgaJsig3LEHdrR56x
tracking:     latest/stable
refresh-date: today at 10:19 UTC
channels:
  latest/stable:    2.5.9    2020-10-01 (553) 161MB -
  latest/candidate: 2.5.9    2020-10-01 (553) 161MB -
  latest/beta:      2.5.9    2020-10-01 (553) 161MB -
  latest/edge:      3.0.0.M1 2020-10-12 (581) 159MB -
installed:          2.5.9               (553) 161MB -

130s avatar Oct 13 '20 10:10 130s

I do see the latest released OpenHAB, which is 2.5.9 IIUC https://github.com/openhab/openhab-distro/tags, is also available via snap.

Confirmed @130s' findings via openhab snap webpage ( https://snapcraft.io/openhab ) that latest/stable == 2.5.9 and latest/edge == 3.0.0.M1

This is good news! Looks like we might be able to close this issue.

davidpfarrell avatar Oct 13 '20 16:10 davidpfarrell