Giter Site home page Giter Site logo

Comments (30)

ThomDietrich avatar ThomDietrich commented on May 23, 2024 1

@fharni your sources file seems to be wrong. Please follow the instructions given here: http://docs.openhab.org/installation/linux.html

from openhab-distro.

kaikreuzer avatar kaikreuzer commented on May 23, 2024

Yes, offering debian packages is definitely planned, but not yet available.
This is probably the right moment to ask @theoweiss to start looking into this :-)

from openhab-distro.

kaikreuzer avatar kaikreuzer commented on May 23, 2024

FTR: First skeleton in #73

from openhab-distro.

kaikreuzer avatar kaikreuzer commented on May 23, 2024

To clarify:
There should be imho only a single debian package created for the distro (or at most 2 packages: one for the online distro and one for the offline distro).
Add-ons should NOT be managed as apt packages anymore, since this is now all handled through Karaf (which also has the information about dependencies between bundles etc.).

from openhab-distro.

stefaanbolle avatar stefaanbolle commented on May 23, 2024

@kaikreuzer
Does this mean that all we have to do is install the distro and karaf will take care of getting the addon jars (online) or already has the addon jars (offline) in its distro package?

from openhab-distro.

kaikreuzer avatar kaikreuzer commented on May 23, 2024

Yes, the selection of addons is now merely a configuration entry, see https://github.com/openhab/openhab-distro/blob/master/docs/sources/getting-started.md#choosing-a-base-package-and-add-ons-to-be-installed

from openhab-distro.

stefaanbolle avatar stefaanbolle commented on May 23, 2024

nikobus binding is not in the list.
Can I still copy the binding jar to ./addons?

from openhab-distro.

dvanherbergen avatar dvanherbergen commented on May 23, 2024

You can try. It has not been tested with 2.0 yet.

from openhab-distro.

kaikreuzer avatar kaikreuzer commented on May 23, 2024

See https://github.com/openhab/openhab-distro/blob/master/docs/sources/features/compatibilitylayer.md#how-to-use-openhab-1x-add-ons-that-are-not-part-of-the-distribution

from openhab-distro.

stefaanbolle avatar stefaanbolle commented on May 23, 2024

I have touched a lot of wood :-) but a lot of my addons are currently not running smooth.
Openhab2 does not give any error on the nikobus binding, but my light channel doesn't respond to the opnehab2 switch action to turn it on or off.
a lot of trial and error and troubleshooting coming ahead :-)
Btw this becomes way to far off topic.
Thanks Kai for your assistance!

from openhab-distro.

kaikreuzer avatar kaikreuzer commented on May 23, 2024

Openhab2 does not give any error on the nikobus binding

Always enable debug logging (see "log:set" as shown here) when you want detailed logs.

Btw this becomes way to far off topic.

You are right, let's stop here and continue in the forum if necessary!

from openhab-distro.

theoweiss avatar theoweiss commented on May 23, 2024

@kaikreuzer I've almost overlooked this. Ok, I will start to work on the packaging things.

from openhab-distro.

drock1985 avatar drock1985 commented on May 23, 2024

Hi @theoweiss

Did you have a chance to get the OH2 beta in repository? Would love to test this out on a spare RPI that I have laying around.

from openhab-distro.

kaikreuzer avatar kaikreuzer commented on May 23, 2024

@drock1985 Why do you need an apt package for testing?

from openhab-distro.

drock1985 avatar drock1985 commented on May 23, 2024

Hi @kaikreuzer

Don't need it, but in the end i'll be using apt-get as to install OH2 when it comes out of beta. Might as well test what I am sure will be the preferred install method right from the start, to see if there will be any problems.

from openhab-distro.

kaikreuzer avatar kaikreuzer commented on May 23, 2024

øk, then just wait for news from @theoweiss on this issue, who is working on it.

from openhab-distro.

skatun avatar skatun commented on May 23, 2024

Any release date set for the apt-get method for OH2?

from openhab-distro.

mikef2501 avatar mikef2501 commented on May 23, 2024

I'm interested, too! Is there any sort of update or timeline?
Thanks a bunch!

from openhab-distro.

kaikreuzer avatar kaikreuzer commented on May 23, 2024

Just follow #138 and help testing it!

from openhab-distro.

kaikreuzer avatar kaikreuzer commented on May 23, 2024

FTR: #213 has just been merged, so that the build now produces Debian packages. It would be great if you could go testing these and I will check with @theoweiss to soon put a version on Bintray as well.

from openhab-distro.

theoweiss avatar theoweiss commented on May 23, 2024

You can test the current snapshot of the offline distribution by adding this line to your apt-sources:
deb https://openhab.ci.cloudbees.com/job/openHAB-Distribution/ws/distributions/openhab-offline/target/apt-repo/ /
or the online distribution by adding that line:
deb https://openhab.ci.cloudbees.com/job/openHAB-Distribution/ws/distributions/openhab-online/target/apt-repo/ /

from openhab-distro.

mckennajp avatar mckennajp commented on May 23, 2024

apt install working great so far. On Ubuntu, I had to install apt-transport-https first (apt-get install apt-transport-https). Thanks a lot!

from openhab-distro.

mikef2501 avatar mikef2501 commented on May 23, 2024

I wiped the SD card on my Raspberry Pi 2 and did a clean install of Raspbian. After adding the apt-sources line for openhab-online, it required me to install apt-transport-https like mckennajp. Even though I did this and added the apt-key for openhab, it still gave me a warning that it couldn't authenticate and asked me if I wanted to continue without authentication.

I haven't had much time between work and kids, but so far it appears to have installed correctly. I installed the Phillips Hue module through the Paper GUI, then the base and lights, and can control the lights just fine.

I'll post more when I am able to spend some more time. Thanks!

from openhab-distro.

theoweiss avatar theoweiss commented on May 23, 2024

Thanks for testing. Good news so far.
The snapshot repo on cloudbees is not signed the upcoming bintray repo for the releases will be signed.

from openhab-distro.

abedwardsw avatar abedwardsw commented on May 23, 2024

I tested the openhab2-offline deb pkg as well, seems to work pretty good! Thanks for making this, will make updates much easier. Any thoughts on including habmin snapshot jar file as well? You could put it in a unused directory, then people who want it could put a symlink in addons, this way it's not on by default but it would get updated with the deb update. Not sure if there is plans to add it as a karaf bundle or not?

Probably unrelated, but when I used the offline version, the first startup I got the following error, which went away after a restart. Wanted to point it out just in case.

2016-05-29 14:22:36.235 [ERROR] [.glassfish.hk2.osgi-resource-locator] - FrameworkEvent ERROR - org.glassfish.hk2.osgi-resource-locator
org.osgi.framework.BundleException: Exception in org.apache.karaf.features.internal.service.FeaturesServiceImpl$3.end()
        at org.eclipse.osgi.internal.framework.OSGiFrameworkHooks$CoreResolverHookFactory.handleHookException(OSGiFrameworkHooks.java:164)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.internal.framework.OSGiFrameworkHooks$CoreResolverHookFactory$CoreResolverHook.end(OSGiFrameworkHooks.java:340)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.container.ModuleResolver$ResolveProcess.resolve(ModuleResolver.java:901)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.container.ModuleResolver.resolveDelta(ModuleResolver.java:111)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.container.ModuleContainer.resolveAndApply(ModuleContainer.java:479)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.container.ModuleContainer.resolve(ModuleContainer.java:437)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.container.ModuleContainer.resolve(ModuleContainer.java:427)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.container.Module.start(Module.java:416)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1498)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
2016-05-29 14:22:55.181 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-package-standard': Error restarting bundles
2016-05-29 14:22:55.206 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-package-standard': Error restarting bundles
2016-05-29 14:28:06.977 [ERROR] [org.eclipse.smarthome.io.rest       ] - FrameworkEvent ERROR - org.eclipse.smarthome.io.rest
java.lang.NoClassDefFoundError: org/eclipse/smarthome/io/transport/mdns/ServiceDescription
        at java.lang.Class.getDeclaredMethods0(Native Method)[:1.8.0_65]
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)[:1.8.0_65]
        at java.lang.Class.getDeclaredMethods(Class.java:1975)[:1.8.0_65]

from openhab-distro.

kaikreuzer avatar kaikreuzer commented on May 23, 2024

@abedwardsw I have seen such errors sometimes on a the first startup of a normal install as well - so this is not related to the apt installation.

from openhab-distro.

maggu2810 avatar maggu2810 commented on May 23, 2024

This is caused by the usage of optional resolution and so really not related to the Debian packages.

from openhab-distro.

msth avatar msth commented on May 23, 2024

If the last build fails, than the download fails. Can we use someting like

deb https://openhab.ci.cloudbees.com/job/openHAB-Distribution/lastSuccessfulBuild/artifact/distributions/openhab-offline/target/apt-repo/ /

from openhab-distro.

modestos avatar modestos commented on May 23, 2024

I personally tested the openhab2-online deb pkg on a beaglebone black with minimal debian installation on internal storage. It boots quite fast and starting service was snappy.

It works flawlessly, thx.

from openhab-distro.

fharni avatar fharni commented on May 23, 2024

Hi, I have a problem with the apt repository. As descriped I added the repository and does a apt-get update. This complains about a missing Packages entry in the release file.

W: Herunterladen von https://openhab.ci.cloudbees.com/job/openHAB-Distribution/ws/distributions/openhab-offline/target/apt-repo/Release fehlgeschlagen: Erwarteter Eintrag »Packages« konnte in Release-Datei nicht gefunden werden (falscher Eintrag in sources.list oder missgebildete Datei).
W: Herunterladen von https://openhab.ci.cloudbees.com/job/openHAB-Distribution/ws/distributions/openhab-online/target/apt-repo/Release fehlgeschlagen: Erwarteter Eintrag »Packages« konnte in Release-Datei nicht gefunden werden (falscher Eintrag in sources.list oder missgebildete Datei).
E: Manche Indexdateien konnten nicht heruntergeladen werden. Sie wurden ignoriert oder durch alte ersetzt.

from openhab-distro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.