I just switched server, and installed Openhab2, following the Debian guide.
It installed without any errors, but when I try to start it, it just says this
root@Fiona:/home# service openhab2 start
[ ok ] Starting openHAB2 server: openhab2.
But it does not start. When looking in running processes, openhab isn’t running. When looking in the log directory, I only see the Readme.txt file, are there any other way I can see some log files or some more info about what is happening?
you could have tried to start OH2 using debug (set OPENHAB_STARTMODE=debug in /etc/defaults/openhab2) and then systemctl start openhab2 to see if additional logs would appear.
Not 100% sure if this option is available in the 2.1 Release Build.
It is in the latest 2.2 Snapshot (Build #1000)
The snapshots should tell you if the Java version isn’t supported. However, this was a recent fix that wouldn’t be in the release build.
Whilst it’d be unnecessary for problems like this. That option is for systemd, which should be started with systemctl start openhab2.service. Again this is currently for snapshot builds only right now, but will be available for 2.2.
If using upstart or the etc/init.d/openhab2 script directly, then the OPENHAB_STARTMODE has no effect.