I have been running Openhab 2.5 on a Synology Diskstation (DSM 6.2). I recently decided to upgrade to Openhab 3.1 given the iAqualink connection issue with the 2.5 binding (due to changes in how iAqualink is accessed via the web). I completed the instructions for installing Java 11 and creating the SPK package. The installation proceeds successfully, but Openhab will not start. Unfortunately, my logs are not very helpful. I have pasted below the contents of the openHAB-install.log file:
#### S T A R T - o p e n H A B S P K ####
2021-07-10:15:00:05
Set instance variables...
public: false
smarthome: false
home: true
TMPFS: false
Z-Wave: true
port: 8080
port: 8443
tmp: /volume1/@tmp
share: /var/services/homes
oh: /var/services/homes/openhab
backup: /volume1/@appstore/openHAB-backup-202107
done
User that exec the Installation
root
Start postinst...
Create 'openhab' daemon user
Install new version
Extract openhab-3.1.0.zip
Move files to /volume1/@appstore/openHAB
No TMPFS Install needed
Create conf/addon/userdata folders for home dir
Move conf to /var/services/homes/openhab/conf and create conf link
Move addons to /var/services/homes/openhab/addons and create addons link
Move userdata to /var/services/homes/openhab/userdata and create userdata link
Restore userdata to /volume1/@appstore/openHAB
Restore configuration files to /var/services/homes/openhab
Fix permissions
done
copy Startupscript for z-wave binding. Then start it
and the openHAB-start_stop.log file:
Stop service.
openHAB is not running
done.
Start service
call start.sh.
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
wait_for_status: 0
PID file created.
done.
The openhab.log file is empty. I am using Java 11 - installed per the Readme.md instructions in the Openhab 3.1 spk package:
# openHAB Synology DiskStation Install Package
This project build a Synology DiskStation SPK install package for [openHAB](https://www.openhab.org) (Home Automation Server).
Comments, suggestions and contributions are welcome!
## Create SPK
Run as followed:
OPENHAB_VERSION=3.1.0 ./build.sh
Install .spk via Synology Package manager.
## Installation script behaviour
The Current version of installer `3.1.0` checks most stable recent version of OpenHAB and installs it during the installation procedure.
You need Java 11 to be able to run openHAB >= 3.1.0, so please download AdoptOpenJDK for [arm32](https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.9.1%2B1/OpenJDK11U-jdk_aarch64_linux_hotspot_11.0.9.1_1.tar.gz) because Oracle is not offering 32bit compatible package.
Prepare a directory for your package like: `/var/packages/Java11`
Edit `/etc/profile` to update `JAVA_HOME properly`
#PATH=$PATH:/var/packages/Java8/target/j2sdk-image/bin # Synology Java runtime enviroment
PATH=$PATH:/var/packages/Java11/bin # Synology Java runtime enviroment
JAVA_HOME=/var/packages/Java11 # Synology Java runtime enviroment
CLASSPATH=.:/var/packages/Java11/lib # Synology Java runtime enviroment
Reboot your device or invoke following command ` . /etc/profile` and restart OpenHAB
Enjoy your OpenHAB3
## Download
Download SPK package from [![Github Releases](https://img.shields.io/badge/download-releases-blue.svg)](https://github.com/openhab/openhab-syno-spk/releases) [![Github All Releases](https://img.shields.io/github/downloads/openhab/openhab-syno-spk/total.svg?maxAge=2592000)](http://www.somsubhra.com/github-release-stats/?username=openhab&repository=openhab-syno-spk)
Any help you can provide would be very much appreciated.
-Mark