OH2 Jessie fresh installation from OH repo fails to start

Hi,

I am on a freshly installed jessie setup with basically only a CUPS, some rsync stuff and and Z-way installation set up on it right now.
The only additions I’ve made to the source.list are these:

deb http://download.telldus.com/debian/ stable main
deb https://dl.bintray.com/openhab/apt-repo2 stable main

Now, when I try to start the OH2 server, I get this:

$ sudo systemctl enable openhab2
Synchronizing state for openhab2.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d openhab2 defaults
Executing /usr/sbin/update-rc.d openhab2 enable
Created symlink from /etc/systemd/system/multi-user.target.wants/openhab2.service to /usr/lib/systemd/system/openhab2.service.
pi@raspberrypi:~ $ sudo systemctl start openhab
Failed to start openhab.service: Unit openhab.service failed to load: No such file or directory.
pi@raspberrypi:~ $ sudo systemctl start openhab2
pi@raspberrypi:~ $ sudo systemctl status openhab2
● openhab2.service - openHAB 2 - empowering the smart home
   Loaded: loaded (/usr/lib/systemd/system/openhab2.service; enabled)
   Active: failed (Result: start-limit) since Mon 2017-07-03 08:47:08 CEST; 3s ago
     Docs: http://docs.openhab.org
           https://community.openhab.org
  Process: 11428 ExecStop=/usr/share/openhab2/runtime/bin/stop (code=exited, status=127)
  Process: 11363 ExecStart=/usr/share/openhab2/start.sh server (code=exited, status=127)
 Main PID: 11363 (code=exited, status=127)

Jul 03 08:47:07 raspberrypi systemd[1]: Unit openhab2.service entered failed state.
Jul 03 08:47:08 raspberrypi systemd[1]: openhab2.service holdoff time over, scheduling restart.
Jul 03 08:47:08 raspberrypi systemd[1]: Stopping openHAB 2 - empowering the smart home...
Jul 03 08:47:08 raspberrypi systemd[1]: Starting openHAB 2 - empowering the smart home...
Jul 03 08:47:08 raspberrypi systemd[1]: openhab2.service start request repeated too quickly, refusing to start.
Jul 03 08:47:08 raspberrypi systemd[1]: Failed to start openHAB 2 - empowering the smart home.
Jul 03 08:47:08 raspberrypi systemd[1]: Unit openhab2.service entered failed state.

Ok, so something is not as it should./var/log/openhab2/ contains just an empty readme file, so that’s no help.

Where do I go from here?

But java is installed properly as well? :stuck_out_tongue_winking_eye:

journalctl -u openhab2.service -b

What is the output of this command? This should give you a hint in what is going on.

Ha ha. Thanks for the tip! :slight_smile:
It never occurred to me that the OH2 package would not also pull in the appropriate java package.Now I got an interface on port 8080.

Thanks!

1 Like

I have submitted an issue to remind myself to add this feature.