Not sure if this is the correct forum and this is my first post so please correct me if wrong.
I’ve tried all day now to get OH running on Alpine. I’ve tried Alpine 3.8/3.9, OH2.4/2.5m1/2.5snapshot. I started using a VirtualBox with Alpine guest but moved on to an Intel NUC to verify this issue. I tried inside docker and without. Right now I replicated it on an Intel NUC, Alpine 3.9, openJDK8, and the OpenHAB2.4 download zip (no docker).
The error is the same and replicated when trying to configure the ZWave device: Adding the ZWave Binding, Inbox->Choose binding->ZWave Binding->ZWave Serial Controller
To make sure nothing is wrong with the stick, permissions, or aything else I have confirmed access to my ZWaveStick by building and running OpenZWave-Control-Panel and it works fine. I have set permissions to 777 on /dev/ttyACM0 to be sure there are no access problems.
At the ZWave configuration screen, the OH CLI console immediately exits with:
A fatal error has been detected by the Java Runtime Environment:
SIGSEGV (0xb) at pc=0x00000000000036f6, pid=12902, tid=0x00007fb199b8cb10
JRE version: OpenJDK Runtime Environment (8.0_191-b12) (build 1.8.0_191-b12)
Java VM: OpenJDK 64-Bit Server VM (25.191-b12 mixed mode linux-amd64 compressed oops)
Derivative: IcedTea 3.10.0
Distribution: Custom build (Tue Jan 8 12:55:26 UTC 2019)
An error report file with more information is saved as:
I’ve also attached the full hs_err_pid log file that shows the last frame being
After adding the ZWave Binding I see a /userdata/tmp/libNRJavaSerial_root_0 folder appear with a
libNRJavaSerial.so shared library in it. This shared library seems to depend on glibc which is not provided by Alpine since it’s musl based.
I filed a bug with the ZWave binding but Chris Jackson pointed out that he ZWave module is just using the provided serial connection so the problems lies with the core OpenHAB installation.
I did try all of this on Ubuntu18 plus the normal OpenHAB container and everythis worked fine.