openhab / openhab-docker

Repository for building Docker containers for openHAB
https://www.openhab.org/
Eclipse Public License 2.0
212 stars 128 forks source link

Loop when updating from 2.4.0 to 2.5.0 #267

Closed janwo closed 4 years ago

janwo commented 4 years ago

When updating from 2.4.0 to 2.5.0, it constantly creates backups and the log says that I am already on version 2.4 although the image is on 2.5.0.

I also did a fresh 2.4.0 install and restored my old 2.4.0 instance via the backup tool. The problem persists. :(

What's wrong?

cebrox commented 4 years ago

I have the same problem. I use this tag: 2.5.0-armhf-debian in DockerHub

wborn commented 4 years ago

It's probably due to some configuration error so I suggest to ask for help in the community. Make sure to provide as much info as possible, like docker version/compose file/docker commands.

janwo commented 4 years ago

https://community.openhab.org/t/backup-loop-when-updating-docker-image-from-2-4-0-to-2-5-0/88255

@cebrox maybe comment on it to increase visibility.

wborn commented 4 years ago

Is this still an issue? Perhaps you can try 2.5.1?

cebrox commented 4 years ago

@wborn I will try in the next few days.

cebrox commented 4 years ago

@wborn I've tried to update from 2.4.0 to 2.5.1. Unfortunaly, i got the same error.

cebrox commented 4 years ago

I found a solution for this problem. I using portainer to manage my containers. There is an environment variable named OPENHAB_VERSION. When i updated the container image with portainer, this environment variable does not change automatically to the new version. I've updated this environment variable manually to 2.5.1 and the update script works.

wborn commented 4 years ago

Great that you've solved it! :+1: Looks like you're not the only one running into this Portainer specific behavior. See: https://github.com/portainer/portainer/issues/2952