OH on the raspberry pi zero

So I have openhabian mostly installed on an rpi0 using the manual method from above.
I had to enable ssh
I can access the openhab shares such as config over the network.

2 Qs:
why in my manual setup do I execute:
/opt/openhabian/openhabian-setup.sh
instead of:
openhabian-config

and how do I start openhab (I don’t have the website )
===> edit/update>>>
Well the service is already running from:
sudo systemctl status openhab2.service
but I don’t have the website

ports?
<<<

it might be a good idea to add the above steps to the manual linux instructions.

Wonderful.

Question 1: That’s simple. Part of the openHABian RPi image setup is the following command. Execute it:

ln -s /opt/openhabian/openhabian-setup.sh /usr/local/bin/openhabian-config

Question 2: If the service is running you should be able to access the website as always (Port 8080). There is no special setup or installation step. I can’t think of any. Please check the openhab.log and listening ports on your system (random tutoial).

It would be great to add the RPi Zero as a supported device to the openHABian article in the docs. I’m in the process of writing the article. Could you have a look what’s missing!? openHABian hassle-free openHAB Setup

That:

sudo netstat -plnt

is handy and tells me that nothing is using 8080 so I looked at the logs and the errors are so many/so long I’m not sure I should post.

Here goes:

[08:36:24] pi@rpi0:~$ tail -f /var/log/openhab2/openhab.log -f /var/log/openhab2/events.log
==> /var/log/openhab2/openhab.log <==
2017-01-20 07:36:00.685 [ERROR] [ternal.service.BootFeaturesInstaller] - Error installing boot features
java.lang.IllegalStateException: Resource has no uri
        at org.apache.karaf.features.internal.service.Deployer.getBundleInputStream(Deployer.java:1403)[8:org.apache.karaf.features.core:4.0.8]
        at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:737)[8:org.apache.karaf.features.core:4.0.8]
        at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1176)[8:org.apache.karaf.features.core:4.0.8]
        at org.apache.karaf.features.internal.service.FeaturesServiceImpl$1.call(FeaturesServiceImpl.java:1074)[8:org.apache.karaf.features.core:4.0.8]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_121]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_121]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_121]
        at java.lang.Thread.run(Thread.java:745)[:1.8.0_121]

==> /var/log/openhab2/events.log <==

==> /var/log/openhab2/openhab.log <==
2017-01-20 08:37:29.853 [ERROR] [org.eclipse.smarthome.core.audio    ] - FrameworkEvent ERROR - org.eclipse.smarthome.core.audio
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.smarthome.core.audio [99]
  Unresolved requirement: Import-Package: org.osgi.service.http

        at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
2017-01-20 08:37:30.256 [ERROR] [org.eclipse.smarthome.core.voice    ] - FrameworkEvent ERROR - org.eclipse.smarthome.core.voice
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.smarthome.core.voice [108]
  Unresolved requirement: Import-Package: org.eclipse.smarthome.core.audio
    -> Export-Package: org.eclipse.smarthome.core.audio; bundle-symbolic-name="org.eclipse.smarthome.core.audio"; bundle-version="0.9.0.201701192225"; version="0.0.0"
       org.eclipse.smarthome.core.audio [99]
         Unresolved requirement: Import-Package: org.osgi.service.http

        at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
2017-01-20 08:37:30.307 [ERROR] [org.eclipse.smarthome.io.javasound  ] - FrameworkEvent ERROR - org.eclipse.smarthome.io.javasound
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.smarthome.io.javasound [111]
  Unresolved requirement: Import-Package: org.eclipse.smarthome.core.audio
    -> Export-Package: org.eclipse.smarthome.core.audio; bundle-symbolic-name="org.eclipse.smarthome.core.audio"; bundle-version="0.9.0.201701192225"; version="0.0.0"
       org.eclipse.smarthome.core.audio [99]
         Unresolved requirement: Import-Package: org.osgi.service.http

        at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
2017-01-20 08:37:30.355 [ERROR] [org.eclipse.smarthome.io.rest.voice ] - FrameworkEvent ERROR - org.eclipse.smarthome.io.rest.voice
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.smarthome.io.rest.voice [119]
  Unresolved requirement: Import-Package: org.eclipse.smarthome.core.voice
    -> Export-Package: org.eclipse.smarthome.core.voice; bundle-symbolic-name="org.eclipse.smarthome.core.voice"; bundle-version="0.9.0.201701192225"; version="0.0.0"
       org.eclipse.smarthome.core.voice [108]
         Unresolved requirement: Import-Package: org.eclipse.smarthome.core.audio
           -> Export-Package: org.eclipse.smarthome.core.audio; bundle-symbolic-name="org.eclipse.smarthome.core.audio"; bundle-version="0.9.0.201701192225"; version="0.0.0"
              org.eclipse.smarthome.core.audio [99]
                Unresolved requirement: Import-Package: org.osgi.service.http

        at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
2017-01-20 08:37:30.404 [ERROR] [org.eclipse.smarthome.io.webaudio   ] - FrameworkEvent ERROR - org.eclipse.smarthome.io.webaudio
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.smarthome.io.webaudio [121]
  Unresolved requirement: Import-Package: org.eclipse.smarthome.core.audio
    -> Export-Package: org.eclipse.smarthome.core.audio; bundle-symbolic-name="org.eclipse.smarthome.core.audio"; bundle-version="0.9.0.201701192225"; version="0.0.0"
       org.eclipse.smarthome.core.audio [99]
         Unresolved requirement: Import-Package: org.osgi.service.http

        at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
2017-01-20 08:37:30.886 [ERROR] [org.eclipse.smarthome.model.core    ] - FrameworkEvent ERROR - org.eclipse.smarthome.model.core
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.smarthome.model.core [122]
  Unresolved requirement: Import-Package: com.google.inject
    -> Export-Package: com.google.inject; bundle-symbolic-name="com.google.inject"; aop="false"; bundle-version="3.0.0.v201312141243"; version="1.3.0"
       com.google.inject [13]
         Unresolved requirement: Import-Package: javax.inject

        at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
2017-01-20 08:37:30.933 [ERROR] [org.eclipse.smarthome.model.rule    ] - FrameworkEvent ERROR - org.eclipse.smarthome.model.rule
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.smarthome.model.rule [127]
  Unresolved requirement: Import-Package: org.eclipse.smarthome.model.core
    -> Export-Package: org.eclipse.smarthome.model.core; bundle-symbolic-name="org.eclipse.smarthome.model.core"; bundle-version="0.9.0.201701192225"; version="0.0.0"
       org.eclipse.smarthome.model.core [122]
         Unresolved requirement: Import-Package: com.google.inject
           -> Export-Package: com.google.inject; bundle-symbolic-name="com.google.inject"; aop="false"; bundle-version="3.0.0.v201312141243"; version="1.3.0"
              com.google.inject [13]
                Unresolved requirement: Import-Package: javax.inject

        at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
2017-01-20 08:37:30.996 [ERROR] [eclipse.smarthome.model.rule.runtime] - FrameworkEvent ERROR - org.eclipse.smarthome.model.rule.runtime
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.smarthome.model.rule.runtime [128]
  Unresolved requirement: Import-Package: org.eclipse.smarthome.model.core
    -> Export-Package: org.eclipse.smarthome.model.core; bundle-symbolic-name="org.eclipse.smarthome.model.core"; bundle-version="0.9.0.201701192225"; version="0.0.0"
       org.eclipse.smarthome.model.core [122]
         Unresolved requirement: Import-Package: com.google.inject
           -> Export-Package: com.google.inject; bundle-symbolic-name="com.google.inject"; aop="false"; bundle-version="3.0.0.v201312141243"; version="1.3.0"
              com.google.inject [13]
                Unresolved requirement: Import-Package: javax.inject

        at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
2017-01-20 08:37:31.033 [ERROR] [org.eclipse.smarthome.model.script  ] - FrameworkEvent ERROR - org.eclipse.smarthome.model.script
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.smarthome.model.script [129]
  Unresolved requirement: Import-Package: org.eclipse.smarthome.core.audio
    -> Export-Package: org.eclipse.smarthome.core.audio; bundle-symbolic-name="org.eclipse.smarthome.core.audio"; bundle-version="0.9.0.201701192225"; version="0.0.0"
       org.eclipse.smarthome.core.audio [99]
         Unresolved requirement: Import-Package: org.osgi.service.http

        at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
2017-01-20 08:37:31.107 [ERROR] [lipse.smarthome.model.script.runtime] - FrameworkEvent ERROR - org.eclipse.smarthome.model.script.runtime
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.smarthome.model.script.runtime [130]
  Unresolved requirement: Import-Package: org.eclipse.smarthome.model.core
    -> Export-Package: org.eclipse.smarthome.model.core; bundle-symbolic-name="org.eclipse.smarthome.model.core"; bundle-version="0.9.0.201701192225"; version="0.0.0"
       org.eclipse.smarthome.model.core [122]
         Unresolved requirement: Import-Package: com.google.inject
           -> Export-Package: com.google.inject; bundle-symbolic-name="com.google.inject"; aop="false"; bundle-version="3.0.0.v201312141243"; version="1.3.0"
              com.google.inject [13]
                Unresolved requirement: Import-Package: javax.inject

        at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
2017-01-20 08:37:31.234 [ERROR] [org.eclipse.xtext                   ] - FrameworkEvent ERROR - org.eclipse.xtext
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.xtext [141]
  Unresolved requirement: Require-Bundle: com.google.inject; bundle-version="3.0.0"; visibility:="reexport"
    -> Bundle-SymbolicName: com.google.inject; bundle-version="3.0.0.v201312141243"
       com.google.inject [13]
         Unresolved requirement: Import-Package: javax.inject

        at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
2017-01-20 08:37:31.305 [ERROR] [org.eclipse.xtext.common.types      ] - FrameworkEvent ERROR - org.eclipse.xtext.common.types
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.xtext.common.types [142]
  Unresolved requirement: Require-Bundle: com.google.inject; bundle-version="3.0.0"
    -> Bundle-SymbolicName: com.google.inject; bundle-version="3.0.0.v201312141243"
       com.google.inject [13]
         Unresolved requirement: Import-Package: javax.inject

        at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]


I started from scratch again using your document at:
http://docs.openhab.org/installation/openhabian.html

I am following the “Manual Setup” instructions on my raspberry pi zero.

I ran into “directory does not exist” - cleaned up as if starting from scratch but this time making an adjustment to this line:
sudo git -C /opt/openhabian clone https://github.com/openhab/openhabian.git

Removing the first “/openhabian” to be:
sudo git -C /opt clone https://github.com/openhab/openhabian.git

I created:

It’s chugging along now…

1 Like

A summary of what went well, problems you encountered and extra steps you had to take would be great. I’ll add them to the article… :wink:

Manual Setup worked great on Pi zero and performance is excellent.

I looked at HABmin because I haven’t seen it in a long time and it’s performance is great too.

Hard to believe I am monitoring and controlling hundred or so items and passing them to an MQ TT broker using this:

1 Like

Here are my steps in detail:

20170116: created this doc for setting up rpi0
# initially set up raspbian on rpi zero using:
# * - items mared with astrisk are only needed for initial setup
#  - a good, high quality, 2.5A power supply with micro USB for pi zero
#  - micro sd card for pi zero (I used 8GB kensington class 4)
#  - Edimax wifi adapter
#  - USB to micro USB adapter (first for hub then later for wifi adapter)
#  - a separate, good, high quality, 2.5A power supply for Kensington POWERED USB HUB*
#     ### Get good power supplies - I wasted hours with wifi not working only to
#     ### realize that between wifi, HDMI, kbd/mouse my wifi would not work because
#     ### I was having power problems
#  - mini HDMI cable and monitor*
#  - Logitech Wireless Kbd/Mouse adapter*
# downloaded and transferred to micro sd clean raspbian-only (no noobs) image from 2017-01-11 build and booted
# set keyboard, local, timezone, hostname, password
# RPi Menu>Preferences>Mouse and Keyboard Settings>Keyboard (tab)> United States English
# RPi Menu>Interfaces > Enable SSH
# RPi Menu>Preferences>Raspberry Pi Configuration>Localization (tab)>Timezone (tab)> US Central
# RPi Menu>Preferences>Raspberry Pi Configuration>System>Hostname: rpi0
# log into wifi
# uninstall unused heavy stuff:
sudo apt-get purge wolfram-engine libreoffice-*
# I use xrdp instead of vnc so uninstall realvnc server (before installing xrdp because they are incompatible)
sudo apt-get purge realvnc-vnc-server
sudo apt-get update
sudo apt-get install xrdp
sudo apt-get upgrade
sudo apt-get autoremove && sudo apt-get clean
sudo apt-get install rpi-update gparted && sudo rpi-update
20170119 made rpi0 sd backup to hard disk so I can start with it and skip hub, keyboard, etc.

# removed USB hub/power,  and wireless kbd/mouse adapter - no longer needed
# put USB to Micro USB adapter directly in wifi adapter and plug combo into pi zero micro USB port
# boot and access via putty (ssh client) 
# install openhabian: following http://docs.openhab.org/installation/openhabian.html

# install git
sudo apt-get update
sudo apt-get install git
# download and link
sudo git -C /opt clone https://github.com/openhab/openhabian.git
ln -s /opt/openhabian/openhabian-setup.sh /usr/local/bin/openhabian-config

sudo openhabian-config # and then step through first 6 steps (Update,Basic Setup, Java 8,OpenHAB 2,Samba, Karaf) 
tail -f /var/log/openhab2/openhab.log -f /var/log/openhab2/events.log

# once complete, start openhab and verify status:
sudo systemctl start openhab2.service
sudo systemctl status openhab2.service

# it takes 5-10 minutes for the website http://192.x.x.x:8080/ to become available
# from there select expert setup so you have 1.x bindings, should NOT have selected "simple setup"

# set up my config, items, services, etc.
3 Likes

http://docs.openhab.org/installation/openhabian.html#manual-setup :wink:

1 Like

I’ve ordered one yesterday. Seems like we’ll need yet another openHABian image :wink:

2 Likes

I’ll be first to test it then, because I’ve ordered one too! :smiley:

1 Like

Thanks for the info on the new product! Have only just bought a Raspberry Pi Zero for use as a remote camera. Unfortunately I needed two USB ports, one for the wifi and one for the USB camera. Just about to buy a USB board extension when I read this.

The wireless version arrived today and thought I would try Openhab2 first. Used the Noobs Lite to install Raspian Lite. Needed to setup wifi name and password within wpa_supplicant.conf and then installed openhabian-config. From this I installed Zulu Java, Openhab2 and Mosquitto in that order.

All working with a test MQTT sitemap within 1½ hours. That’s what I call hassle free!!

2 Likes

I’m on travels over the weekend but will look into the new image (hopefully) on Monday evening. Would you be available to test? Thanks and enjoy your weekend!

@jtmoderate876 and @mikyh This new image might also work with a wifi USB key… Should. Would be interesting to be tested by you as well.

@jtmoderate876 if this really becomes a thing, it would be interesting to know performance restrictions the zero imposes. Any experience on your side (I know, last time we talked you only used yours as a passive node)…?

1 Like

Hey Thom, I’d love to! I didn’t get it yet, though. It might take a while before they ship it to Poland :wink:

1 Like

PiHut sent mine out yesterday morning. Let’s see :slight_smile:

Btw. are you going to use it a “real” openHAB server or just as a remote node like Jeff does?

Would be happy to test.

Good news: I’ve received my Pi0W yesterday
Bad news: I will not be able to test anything before Friday evening
Good news: I’ve already implemented all needed changes/actions (image may contain bugs)

Chances are high I’ll have a first working image ready Saturday morning :wink:

It’s looking good.

Edit: Version 1.2 was released!

The new image is now based on Raspbian Lite. The base system will hence be available right away, openHABian will still go through the setup process on first boot. The new image is suited for all Raspberry Pis, connected via Ethernet or Wifi.

For the RPi0W you’ll have to provide wifi credentials. Do so in the file openhabian.conf.

Happy flashing! Please give the image a try!

Have been away from home but now ready to test on a Raspbery Pi zero. However, changes have been made I believe so which (Rapsian based) image should I be using. Why so many options!

Having no luck with the latest image on a Raspberry Pi Zero W.

https://github.com/openhab/openhabian/releases/download/v1.2/openhabianpi-raspbian-20170318-git9767b24-crc9616e8a1.img.xz

Have tried twice over wifi whilst monitoring the progress. The first time it reached the login prompt but there wasn’t a wifi connection. Rebooting enabled the wifi connection and I was able to SSH over wifi. When I logged on it carried on with certain tasks but again it stopped and there was no monitor output either, just a blank screen.

I reflashed the image and started again. This time the monitor again went blank but after a while I was able to login via wifi. Again it carried on performing tasks but locked up installing Zulu.

If I log on now I get this.

2017-03-03_16:19:27_UTC [openHABian] Booting for the first time! The initial setup might take a few minutes.
2017-03-03_16:19:27_UTC [openHABian] Storing configuration...
2017-03-03_16:19:27_UTC [openHABian] Changing default username and password...
2017-03-03_16:19:28_UTC [openHABian] Setting up Wifi connection...
2017-03-03_16:19:28_UTC [openHABian] Ensuring network connectivity...
2017-03-03_16:19:36_UTC [openHABian] Waiting for dpkg/apt to get ready...
2017-03-20_12:45:20_UTC [openHABian] Updating repositories and upgrading installed packages... OK
2017-03-20_12:46:44_UTC [openHABian] Installing git package... OK
2017-03-20_12:47:57_UTC [openHABian] Cloning myself... OK
2017-03-20_12:48:02_UTC [openHABian] === Executing 'openhabian-setup.sh' ===
2017-03-20_12:48:02_UTC [openHABian] Checking for root privileges... OK
2017-03-20_12:48:03_UTC [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2017-03-20_12:48:03_UTC [openHABian] Setting timezone based on IP geolocation... OK (Europe/London)
2017-03-20_12:50:25_GMT [openHABian] Setting locale based on openhabian.conf... OK
2017-03-20_12:51:46_GMT [openHABian] Setting the GPU memory split down to 16MB for headless system... OK
2017-03-20_12:51:46_GMT [openHABian] Installing basic can't-be-wrong packages (screen, vim, ...)... OK
2017-03-20_12:55:26_GMT [openHABian] Installing additional needed packages... OK
2017-03-20_12:56:40_GMT [openHABian] Adding slightly tuned bash config files to system... OK
2017-03-20_12:56:40_GMT [openHABian] Adding slightly tuned vim config file to system... OK
2017-03-20_12:56:40_GMT [openHABian] Downloading and setting up FireMotD... OK
2017-03-20_12:57:49_GMT [openHABian] Installing Zulu Embedded OpenJDK... FAILED
2017-03-20_13:17:18_GMT [openHABian] Booting for the first time! The initial setup might take a few minutes.
2017-03-20_13:17:18_GMT [openHABian] Storing configuration...
2017-03-20_13:17:18_GMT [openHABian] Setting up Wifi connection...
2017-03-20_13:17:19_GMT [openHABian] Ensuring network connectivity...
2017-03-20_13:17:30_GMT [openHABian] Waiting for dpkg/apt to get ready...
2017-03-20_13:29:16_GMT [openHABian] Updating repositories and upgrading installed packages... OK
2017-03-20_13:30:03_GMT [openHABian] Installing git package... OK
2017-03-20_13:30:07_GMT [openHABian] Cloning myself... FAILED

I’ve tested on the Pi0W countless times. Besides problems with intermediate coding errors the normal installation works flawlessly. If your setup fails at Zulu or any other random point, I’d guess your wifi connection is the problem.

The setup was always reliable and you can log in after around 10 seconds on power, watching the setup process. I can’t say anything regarding a display because I never ever connected a RPi to one :slight_smile:

All the described problems sound like wifi/internet connection problems to me…