Description
I'm creating this issue to collect all the other issues related to broken updates that try to skip a major release.
Nextcloud does not support skipping a major release while updating. So going from 13->15
will not work without including version 14: 13->14->15.
The problem is, that the entrypoint script correctly detects that the image version is greater, but does not check if the upgrade is feasible. So it overwrites the Nextcloud files (including version.php
) and does not fail until running the occ upgrade command run_as 'php /var/www/html/occ upgrade'
.
Upgrading fails and the container exits, but the user can't go back to his initial state because the Nextcloud source files are already replaced. He also can't trigger a proper update from 13->14
because the upgrade detection is broken (version.php
now falsely claims version 15).
#597 in my opinion does not enough, but is a good start to at least document that Nextcloud might break when updating. However a check should be introduced to protect the Nextcloud install in that case. I think it is no problem, that running the new containers fails, but the Nextcloud instance should be unharmed.