openHAB on Synology doesn't work

Hello,
I installed openHab in my Synology Diskstation with spk package 2.2.0.010.
Running openHab I’ve this error:


2018-01-09 21:32:05.752 [ERROR] [.service.internal.HttpServiceStarted] - Could not start the servlet context for context path []
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind0(Native Method) ~[?:?]
at sun.nio.ch.Net.bind(Net.java:433) [?:?]


Anyway the application starts, but I’m not able to work with RFXCOM transceiver rfxtrx433e.
This is the error:


2018-01-09 21:37:14.200 [ERROR] [g.rfxcom.handler.RFXComBridgeHandler] - Connection to RFXCOM transceiver failed
gnu.io.NoSuchPortException: null


I used RFXCOM USB Transceiver binding, I setted right serial port (/dev/ttyUSB0) with paperUI.

Many thanks
Marco

Seems to be a bug in the Synology install package.

The HTTP_PORT given during install ist set correctly in
/volume1/@appstore/openHAB/runtime/bin/setenv

But the HTTPS_PORT there is the default 8443, which is probably already in use.

So in
/volume1/@appstore/openHAB/runtime/bin/setenv
the HTTPS_PORT hast to be set to an unused port.

For example:

if [ ! -z ${OPENHAB_HTTPS_PORT} ]; then
HTTPS_PORT=61101
else
HTTPS_PORT=61101
fi