New Install OH2 beta 4 failed to start on RPi2

Hi,

I installed a complete new OH2 on my RasPi2 in order to to get HabMin & HABPanel with the package installation.

It is a complete plain white installation with update & upgrade

unfortunately the system didn´t start up with OH2


sudo systemctl status openhab2.service


openhab2.service - openHAB 2 - empowering the smart home
Loaded: loaded (/usr/lib/systemd/system/openhab2.service; enabled)
Active: failed (Result: start-limit) since Sun 2016-09-18 21:23:27 CEST; 1s ago
Docs: http://docs.openhab.org
https://community.openhab.org
Process: 5086 ExecStop=/usr/share/openhab2/runtime/karaf/bin/stop (code=exited, status=127)
Process: 5041 ExecStart=/usr/share/openhab2/start.sh server (code=exited, status=127)
Main PID: 5041 (code=exited, status=127)

Sep 18 21:23:27 OpenHAB2_DB systemd[1]: Unit openhab2.service entered failed state.
Sep 18 21:23:27 OpenHAB2_DB systemd[1]: openhab2.service holdoff time over, scheduling restart.
Sep 18 21:23:27 OpenHAB2_DB systemd[1]: Stopping openHAB 2 - empowering the smart home…
Sep 18 21:23:27 OpenHAB2_DB systemd[1]: Starting openHAB 2 - empowering the smart home…
Sep 18 21:23:27 OpenHAB2_DB systemd[1]: openhab2.service start request repeated too quickly, refusing to start.
Sep 18 21:23:27 OpenHAB2_DB systemd[1]: Failed to start openHAB 2 - empowering the smart home.
Sep 18 21:23:27 OpenHAB2_DB systemd[1]: Unit openhab2.service entered failed state.

I’m having this same issue.

“Openhab2.service start request repeated too quickly, refusing to start”

I ran into the same problem while following the Package Repository Installation guide on
http://docs.openhab.org/installation/linux.html

So I tried to run the start.sh manually:
root@openHAB2:/usr/share/openhab2# ./start.sh server
Launching the openHAB runtime…
./runtime/karaf/bin/karaf: 167: ./runtime/karaf/bin/setenv: die: not found
./runtime/karaf/bin/karaf: 180: [: Illegal number:
./runtime/karaf/bin/karaf: 239: [: Illegal number:
./runtime/karaf/bin/karaf: 284: [: Illegal number:
./runtime/karaf/bin/karaf: 437: ./runtime/karaf/bin/karaf: ./bin/java: not found

I think my Java installation failed - so I checked
java -version

It failed

After a bit og googling I managed to install Java with these commands (not sure they are all needed):
sudo apt-get install software-properties-common
sudo apt-get install python3-software-properties
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

1 Like

Thanks for info! WORKING