Just for the sake of completeness (or more like: as a documentation for myself when I bump into the problem next time, and until I’ve come across doing @Ardanedh’s init-file fix:
-
Log into the openHAB docker container:
docker exec -t -i openhab /bin/bash
-
Access the respective folder with the lock file that shouldn’t be there
cd /var/run/lock
-
Delete the respective file that shouldn’t be there:
rm -f LCK..ttyACM0
-
Restart the openHAB container (in my case via Portainer)
-
Done.
Worked 100% of the time for me, and is at least a bit more elegant than re-creating the entire container.