With docker i don´t have the path /etc/default/openhab but i think with this line in my docker-compose file EXTRA_JAVA_OPTS: "-Dgnu.io.rxtx.SerialPorts=/dev/ttyAMA0" should normally load the export var ${EXTRA_JAVA_OPTS}. I did this now, and you can guess, no success…
#
# set JVM options
#
ARCH=`uname -m`
EXTRA_JAVA_OPTS_COMMON="-Djava.awt.headless=true"
EXTRA_JAVA_OPTS_ARCH=""
case "$ARCH" in
*arm*) ;;
*aarch*) ;;
*) EXTRA_JAVA_OPTS_ARCH="-XX:+UseG1GC" ;;
esac
export EXTRA_JAVA_OPTS="${EXTRA_JAVA_OPTS_COMMON} ${EXTRA_JAVA_OPTS_ARCH} ${EXTRA_JAVA_OPTS}"
export JAVA_NON_DEBUG_OPTS="-XX:-UsePerfData"
Have you tried running openhab without docker? I am unsure about docker security but that might interfere. At least you would know your board is working correctly and you would have a lead on where to find the problem.
Yes, i previously had OH 2.5 in this constellation (Raspberry Pi 4 / Razberry Board) running for a long time without any problems, since the switch to OH 3 the board no longer works - like a lot more, but that’s another story … what has changed is the version of OH and the move to Docker
i have now found the solution. The following post provided me with the necessary information:
If openHAB is installed in a Docker on a Raspberry Pi OS, the serial console must be deactivated via raspi-config and the serial port must of course be activated.