Open kn0wmad opened 12 months ago
Are you certain you're pointed at the right database and/or not using a previously upgraded already db?
That db migration, Version1020Date20221114144058, is the only one the exists for file_versions
and it's the one that literally creates the files_versions
db table (known as `oc_files_versions in most installations) for the very first time. It didn't even exist in NC25.
So it's impossible to have had this table already unless... Well I'm not even sure how.
Also there's a check for it's prior existence that at the top of the migration that should have kicked in anyhow... so I'm kind of baffled.
Are you using stock Docker images or self built ones?
Sounds like you're also upgrading/moving your own db environment at the same time? Maybe something got crossed there?
There's never been a similar report and NC26 is hardly new... 🤔
Thank you for the timely response, which lead to a fix!
We determined that the /entrypoint.sh
from the official alpine docker image and occ upgrade
were running concurrently. We stopped the entrypoint before running the upgrade and everything went smoothly. It seems like occ upgrade
is not safe to run concurrently.
Glad you got it worked out, but sounds like you're doing something unconventional. The entrypoint is what runs occ upgrade
:
How are you updating and upgrading?
Very unconventional. Our Linux-based StartOS grants one-click installs of a Nextcloud server (and many other services) to non-technical users.
I was not referring to the docker-entrypoint
, but the 26/entrypoint.sh
within the image. Our container entrypoint is custom.
We very much appreciate the assist and look forward to helping create more sovereign Nextcloud server operators!
The entrypoint is what runs
occ upgrade
:
StartOS needs to separate migration from runtime code, so we need to be able to upgrade it separately. I had assumed that we couldn't just call occ upgrade
before the entrypoint had run, because otherwise it would be the wrong occ, seeing as the contents of /var/www/html
would be the old version. Am I incorrect in this assumption? Alternatively, is it possible to know when the upgrade
portion of /entrypoint.sh
is complete, so we can know we can safely send it a sigterm and know for sure it has already been upgraded?
StartOS needs to separate migration from runtime code, so we need to be able to upgrade it separately. I had assumed that we couldn't just call
occ upgrade
before the entrypoint had run, because otherwise it would be the wrong occ, seeing as the contents of/var/www/html
would be the old version. Am I incorrect in this assumption? Alternatively, is it possible to know when theupgrade
portion of/entrypoint.sh
is complete, so we can know we can safely send it a sigterm and know for sure it has already been upgraded?
Bump. @joshtrichards can you lend some insight here?
Ping @joshtrichards - could really use an answer here if you have a moment.
StartOS needs to separate migration from runtime code, so we need to be able to upgrade it separately. I had assumed that we couldn't just call occ upgrade before the entrypoint had run, because otherwise it would be the wrong occ, seeing as the contents of /var/www/html would be the old version. Am I incorrect in this assumption?
Correct.
Alternatively, is it possible to know when the upgrade portion of /entrypoint.sh is complete, so we can know we can safely send it a sigterm and know for sure it has already been upgraded?
The version
variable in config/config.php
will be bumped once occ upgrade
is successful.
⚠️ This issue respects the following points: ⚠️
Bug description
Attempting to update and migrate from v25.0.5 to v26.0.x (tried .6 and .8), v26 update code fails with the following error:
This is using nextcloud's docker images and coming from apache-bullseye with postgres13 and apache and going to fpm-alpine with postgres 15 and nginx
Steps to reproduce
Expected behavior
Update completes
Installation method
None
Nextcloud Server version
26
Operating system
None
PHP engine version
None
Web server
None
Database engine version
None
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
Thank you for your time