Skip to content

Block upgrade before changes when the upgrade is forbidden #1809

Closed
@vdanjean

Description

@vdanjean

Hi,

I'm not sure if this is a nextcloud docker image bug or a nextcloud server one.
I'm using official nextcloud docker images through a docker-compose file that was referencing the 'nextcloud' docker image.

Due to various reasons, I was running nextcloud 22, and I missed nextcloud 23.
Today, I ran

docker-compose build --pull
docker-compose up -d

And it have been a really big mess: skipping a major upgrade is not allowed by nexcloud, but trying to change the image back to the nextcloud 23 (using 'nextcloud:23-apache') did not work either, because some files have been modified and were referencing the 24 version ('no downgrade allowed' whereas the 22->24 migration has not been done).

With the help of internet, I found:

So, I'm not sure if the problem comes from the update of the docker image with docker compose, or if the problem comes from nextcloud server. But it would be very appreciated if the version check were done before any changes are done. Or if getting the 23 image really install the 23 version (it was not the case for version.php and the apps/* at least, I'm not a docker specialist so I do not know why).

That said, I removed the reference to the nextcloud:apache and I'm using nextcloud:MAJOR-apache now, to avoid to suffer this upgrade problem again. Major version upgrade will need that I manually enable it in my docker-compose.yml file. I think that it could be useful to add this (avoid images without major version) in the documentation if early blocking the upgrade is not possible/easy.

Regards
Vincent

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions