[Bug]: Upgrade fails with 'The column "webhook_uri" on table "oc_taskprocessing_tasks" already exists.' #49413
Labels
0. Needs triage
Pending check for reproducibility or if it fits our roadmap
29-feedback
30-feedback
bug
feature: database
Database related DB
feature: install and update
needs info
Bug description
Upgrade from 29.0.9 to 30.0.2 fails to a table column already existing. See "Steps to reproduce" below for details.
Steps to reproduce
1.sudo -u www-data php /var/www/nextcloud/updater/updater.phar
I receive normal messages (backups, downloading, etc.) and then during the upgrade:
Updating database schema
Exception: Database error when running migration 30000Date20240717111406 for app core
The column "webhook_uri" on table "oc_taskprocessing_tasks" already exists.
Update failed
Expected behavior
I expected the upgrade to complete normally, of course. I've run upgrades since version 14, and usually they go quite well.
Nextcloud Server version
29
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.3
Web server
Apache (supported)
Database engine version
MySQL
Is this bug present after an update or on a fresh install?
Upgraded to a MAJOR version (ex. 28 to 29)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
After one failed attempt, I examined the named table and found no data in that column. I deleted the column and retried, but it failed the same way. Examining a mysql backup taken just before the update, I found that the column did exist prior to initiating the upgrade.
The text was updated successfully, but these errors were encountered: