Container constantly rebooting after 3.0.1 --> 3.0.2 image upgrade

After running into the mentioned download issue regarding the sunset of the bintray issue I pulled the latest image 3.0.2 and the update script says:

“You are already on openHAB 3.0.1” and then restarts. No indications in the logs beyond that.

I am running the container on a synology - not sure that matters in this case.

Thanks for your help or suggestions

OH supports many platforms and there are multiple container-based installations.

How to ask a good question / Help Us Help You - Tutorials & Examples - openHAB Community

Please post the actual logs you are seeing and where you are seeing them. The snippet of log you are showing implies that you didn’t actually download 3.0.2 but still have 3.0.1 but it’s hard to say. It’s important to know if this is what is printed as the container tries to start up (i.e. the execution of the entrypoint.sh script) or if it’s coming from openHAB itself.

My environment - running on a synology 1512+

**admin@NAS**:**/volume4/docker/openhab/userdata/backup**$ uname -a

Linux NAS 3.10.105 #25426 SMP Mon Dec 14 18:46:28 CST 2020 x86_64 GNU/Linux synology_cedarview_1512+

Here is the image at play - so it looks like it is the right/latest one

admin@NAS:/volume4/docker/openhab/userdata/backup$ sudo docker image ls
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
openhab/openhab     latest              9808a627cfc8        2 weeks ago         691MB

admin@NAS:/volume4/docker/openhab/userdata/backup$ sudo docker image inspect 9808a627cfc8
[
    {
        "Id": "sha256:9808a627cfc82f8874d858aca6bb34c179a63b8924fb85180e46dc8bf6a07874",
        "RepoTags": [
            "openhab/openhab:latest"
        ],
        "RepoDigests": [
            "openhab/openhab@sha256:e2d3f7aa7f6565be446b045a0c7563c0f956762028378c5b93d97d8bccab5f37"
        ],
        "Parent": "",
        "Comment": "buildkit.dockerfile.v0",
        "Created": "2021-04-21T12:58:21.392202655Z",
        "Container": "",
        "ContainerConfig": {
            "Hostname": "",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": null,
            "Cmd": null,
            "Image": "",
            "Volumes": null,
            "WorkingDir": "",
            "Entrypoint": null,
            "OnBuild": null,
            "Labels": null,
            "DDSM": false
        },
        "DockerVersion": "",
        "Author": "",
        "Config": {
            "Hostname": "",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "ExposedPorts": {
                "5007/tcp": {},
                "8080/tcp": {},
                "8101/tcp": {},
                "8443/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "CRYPTO_POLICY=limited",
                "EXTRA_JAVA_OPTS=",
                "GROUP_ID=9001",
                "JAVA_VERSION=11",
                "KARAF_EXEC=exec",
                "LC_ALL=en_US.UTF-8",
                "LANG=en_US.UTF-8",
                "LANGUAGE=en_US.UTF-8",
                "OPENHAB_BACKUPS=/openhab/userdata/backup",
                "OPENHAB_CONF=/openhab/conf",
                "OPENHAB_HOME=/openhab",
                "OPENHAB_HTTP_PORT=8080",
                "OPENHAB_HTTPS_PORT=8443",
                "OPENHAB_LOGDIR=/openhab/userdata/logs",
                "OPENHAB_USERDATA=/openhab/userdata",
                "OPENHAB_VERSION=3.0.2",
                "USER_ID=9001",
                "JAVA_HOME=/usr/lib/jvm/default-jvm"
            ],
            "Cmd": [
                "gosu",
                "openhab",
                "tini",
                "-s",
                "./start.sh"
            ],
            "Healthcheck": {
                "Test": [
                    "CMD-SHELL",
                    "curl -f http://localhost:${OPENHAB_HTTP_PORT}/ || exit 1"
                ],
                "Interval": 300000000000,
                "Timeout": 5000000000,
                "Retries": 3
            },
            "ArgsEscaped": true,
            "Image": "",
            "Volumes": {
                "/openhab/addons": {},
                "/openhab/conf": {},
                "/openhab/userdata": {}
            },
            "WorkingDir": "/openhab",
            "Entrypoint": [
                "/entrypoint"
            ],
            "OnBuild": null,
            "Labels": {
                "maintainer": "openHAB <info@openhabfoundation.org>",
                "org.label-schema.build-date": "2021-04-21T12:56:20Z",
                "org.label-schema.description": "An open source, technology agnostic home automation platform",
                "org.label-schema.docker.dockerfile": "/Dockerfile",
                "org.label-schema.license": "EPL-2.0",
                "org.label-schema.name": "openHAB",
                "org.label-schema.url": "https://www.openhab.com/",
                "org.label-schema.vcs-ref": "d4bc2cfb570ee70d74369fccd168ccbd078a4c79",
                "org.label-schema.vcs-type": "Git",
                "org.label-schema.vcs-url": "https://github.com/openhab/openhab-docker.git",
                "org.label-schema.vendor": "openHAB Foundation e.V.",
                "org.label-schema.version": "3.0.2"
            },
            "DDSM": false
        },
        "Architecture": "amd64",
        "Os": "linux",
        "Size": 690587156,
        "VirtualSize": 690587156,
        "GraphDriver": {
            "Data": null,
            "Name": "aufs"
        },
        "RootFS": {
            "Type": "layers",
            "Layers": [
                "sha256:0270c2d5ad7267d4e20b234f5252bae2aa22b5fa0742b35a286d70532106269a",
                "sha256:2ffef5e674bb23f01ba0cc5610e296b4c82fd6c2e0db25f1717e406edac20cd5",
                "sha256:d42150b81e9d93973f4c705907b1cea1fe62c1f0c102ec18a5d169ea295a4eda",
                "sha256:6da727ebe7704e0e78e9ed865668411e64d4eb0da4c6cfacc325be9079e23177",
                "sha256:2e67737efcdad4e0674b383af5ba59ded64446c62fabc64b7c37cf4b1f0714ca",
                "sha256:9b6378a28413389d86939db9f99afc6bc07acb23dfef2d240d4ce536a361e8b9"
            ]
        },
        "Metadata": {
            "LastTagTime": "0001-01-01T00:00:00Z"
        }
    }
]

then the update.log:

admin@NAS:/volume4/docker/openhab/userdata/logs$ cat update.log 
Image and userdata versions differ! Starting an upgrade.
You can find backup of userdata in /openhab/userdata/backup/userdata-2021-05-11T15-54-33.tar

################################################
          openHAB Docker update script          
################################################

You are already on openHAB 3.0.1
admin@NAS:/volume4/docker/openhab/userdata/logs$ 

Your help is appreciated.

Axel

My help is going to be fairly limited because I don’t use Synology and most of the time the solutions for those who are using Synology (or QNAP) are non-obvious.

Is there anything in openhab.log? Errors or even an indication that it’s trying to start to run?

That dates back before the bintray shutdown, doesn’t it? This feels like its looking in the wrong remote repository.

I had such an issue with the docker-version and using portainer. The reason was, that portainer stores a Environment-Variable OPENHAB_VERSION at the first run. And this Variable conflicts during updates.

Maybe synology is doing something similar.

In my case I just delete the OPENHAB_VERSION-variable before upgrading the container, and everything runs fine.

Kindest regards,
Christian…

4 Likes

Christian - you nailed it! that is exactly what happened. Thanks a ton - really appreciate your help. Best Axel

worked for me, with qnap nas 453a

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