Docker container does not start after upgrade to 3.3.0

Hi,
this time I also have issues with the 3.3.0 docker image after upgrading from 3.2.0.
It won’t start, last thing I see is

Launching the openHAB runtime...

The upgrade script reported that it was successful but then nothing happens. I already checked that the mounted volumes are writeable and also had a look for a “/usr/share/openhab/addons” folder without luck. Also I could not increase the log output after adding

<AppenderRef ref="STDOUT"/>

to log4j2.xml…

This is the log output I got from docker:

docker-compose up
Starting openhab-latest ... done
Attaching to openhab-latest
openhab-latest     | + IFS='
openhab-latest     | 	'
openhab-latest     | ++ ls -d /usr/lib/jvm/temurin-11-jdk-amd64
openhab-latest     | + export JAVA_HOME=/usr/lib/jvm/temurin-11-jdk-amd64
openhab-latest     | + JAVA_HOME=/usr/lib/jvm/temurin-11-jdk-amd64
openhab-latest     | + '[' limited = unlimited ']'
openhab-latest     | + /etc/ca-certificates/update.d/adoptium-cacerts
openhab-latest     | /etc/ssl/certs/adoptium/cacerts successfully populated.
openhab-latest     | + capsh --print
openhab-latest     | + grep -E Current:.+,cap_net_admin,cap_net_raw,.+
openhab-latest     | + rm -f /openhab/runtime/instances/instance.properties
openhab-latest     | + rm -f /openhab/userdata/tmp/instances/instance.properties
openhab-latest     | Starting with openhab user id: 1032 and group id: 100
openhab-latest     | + NEW_USER_ID=1032
openhab-latest     | + NEW_GROUP_ID=100
openhab-latest     | + echo 'Starting with openhab user id: 1032 and group id: 100'
openhab-latest     | + id -u openhab
openhab-latest     | + initialize_volume /openhab/conf /openhab/dist/conf
openhab-latest     | + volume=/openhab/conf
openhab-latest     | + source=/openhab/dist/conf
openhab-latest     | ++ ls -A /openhab/conf
openhab-latest     | + '[' -z 'automation
openhab-latest     | coverage
openhab-latest     | html
openhab-latest     | icons
openhab-latest     | items
openhab-latest     | misc
openhab-latest     | persistence
openhab-latest     | rules
openhab-latest     | scripts
openhab-latest     | services
openhab-latest     | sitemaps
openhab-latest     | sounds
openhab-latest     | things
openhab-latest     | transform' ']'
openhab-latest     | + initialize_volume /openhab/userdata /openhab/dist/userdata
openhab-latest     | + volume=/openhab/userdata
openhab-latest     | + source=/openhab/dist/userdata
openhab-latest     | ++ ls -A /openhab/userdata
openhab-latest     | + '[' -z 'backup
openhab-latest     | cache
openhab-latest     | Californium.properties
openhab-latest     | config
openhab-latest     | etc
openhab-latest     | jsondb
openhab-latest     | kar
openhab-latest     | logs
openhab-latest     | marketplace
openhab-latest     | mqtt
openhab-latest     | mqttembedded.bin
openhab-latest     | openhabcloud
openhab-latest     | persistence
openhab-latest     | secrets
openhab-latest     | tmp
openhab-latest     | uuid' ']'
openhab-latest     | ++ cmp /openhab/userdata/etc/version.properties /openhab/dist/userdata/etc/version.properties
openhab-latest     | + '[' '!' -z ']'
openhab-latest     | + chown -R openhab:openhab /openhab
openhab-latest     | + sync
openhab-latest     | + '[' -d /etc/cont-init.d ']'
openhab-latest     | + sync
openhab-latest     | + '[' false == false ']'
openhab-latest     | ++ IFS=' '
openhab-latest     | ++ echo gosu openhab tini -s ./start.sh
openhab-latest     | + '[' 'gosu openhab tini -s ./start.sh' == 'gosu openhab tini -s ./start.sh' ']'
openhab-latest     | + command=($@ server)
openhab-latest     | + exec gosu openhab tini -s ./start.sh server
openhab-latest     | Launching the openHAB runtime...

This is my docker-compose.yml:

version: '2.2'

services:
  openhab_service: #name of the service
    container_name: openhab-latest
    image: "openhab/openhab:latest"
    restart: always
    network_mode: host
    volumes:
      - "/etc/localtime:/etc/localtime:ro"
      - "/etc/TZ:/etc/timezone:ro"
      - "/volume1/openhab/addons:/openhab/addons"
      - "/volume1/openhab/conf:/openhab/conf"
      - "/volume1/openhab/userdata:/openhab/userdata"
    environment:
      USER_ID: "1032"
      GROUP_ID: "100"
      OPENHAB_HTTP_PORT: "8080"
      OPENHAB_HTTPS_PORT: "8443"
      EXTRA_JAVA_OPTS: "-Duser.timezone=Europe/Berlin -Djava.net.preferIPv4Stack=true"
      LC_ALL: "de_DE.UTF-8"
      LANG: "de_DE.UTF-8"
      LANGUAGE: "de_DE.UTF-8"

Until now the docker image was running smoothly for years but now I’m stuck :frowning:

I hope that somebody can help me, thanks!

Are you using portainer by any chance…?

No, I’m using docker on a Synology NAS.

Ah. In portainer I had a problem of an environment with the OH version being automatically added. When downloading the new image, it got installed, but then when the container got started I got a version mismatch…
The end result was what you have there, being stuck in “ Launching the openHAB runtime…” and nothing else.

Not sure if you can have that happen as well but they do seem similar…

Never mind, I just did the upgrade again after unpacking the backup files and now it works!
Thanks!

2 Likes

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.