Upgrade from owncloud-9.0.4.1 to nextcloud-10.0.5 failed - sql transaction error #12425
Labels
0. Needs triage
Pending check for reproducibility or if it fits our roadmap
bug
feature: install and update
feature: owncloud migration
Steps to reproduce
Expected behaviour
Successful migrate/upgrade
Actual behaviour
root@# sudo -u www-data php ./occ upgrade
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Set log level to debug
Turned on maintenance mode
Checking whether the database schema can be updated (this can take a long time depending on the database size)
Done
27/27 [============================] 100%
Checked database schema update
Checking updates of apps
Checked database schema update for apps
Updating database schema
Updated database
Doctrine\DBAL\Exception\DriverException: An exception occurred while executing 'UPDATE "oc_preferences" SET "configvalue" = ? WHERE ("userid" = ?) AND ("appid" = ?) AND ("configkey" = ?)' with params [1542102321, "E4D21EFA-95F4-49C4-B51E-25B2B44ACE2D", "user_ldap", "lastFeatureRefresh"]:
SQLSTATE[25P02]: In failed sql transaction: 7 ERROR: current transaction is aborted, commands ignored until end of transaction block
Update failed
Maintenance mode is kept active
Reset log level
I execute sql and again I get about the same:
root@# export PGPASSWORD=*********; psql -Uowncloud_user -h localhost owncloud
psql (9.4.8)
SSL-соединение (протокол: TLSv1.2, шифр: ECDHE-RSA-AES256-GCM-SHA384, бит: 256, сжатие: выкл.)
Введите "help", чтобы получить справку.
owncloud=> UPDATE "oc_preferences" SET "configvalue" = 1542101006 WHERE ("userid" = 'E4D21EFA-95F4-49C4-B51E-25B2B44ACE2D') AND ("appid" = 'user_ldap') AND ("configkey" = 'lastFeatureRefresh');
UPDATE 1
owncloud=> \q
root@# sudo -u www-data php ./occ upgrade
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Set log level to debug
Checking whether the database schema can be updated (this can take a long time depending on the database size)
Done
27/27 [============================] 100%
Checked database schema update
Checking updates of apps
Checked database schema update for apps
Updating database schema
Updated database
Doctrine\DBAL\Exception\DriverException: An exception occurred while executing 'UPDATE "oc_preferences" SET "configvalue" = ? WHERE ("userid" = ?) AND ("appid" = ?) AND ("configkey" = ?)' with params [1542101072, "E4D21EFA-95F4-49C4-B51E-25B2B44ACE2D", "user_ldap", "lastFeatureRefresh"]:
SQLSTATE[25P02]: In failed sql transaction: 7 ERROR: current transaction is aborted, commands ignored until end of transaction block
Update failed
Maintenance mode is kept active
Reset log level
root@#
Server configuration
Operating system:
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.3 (jessie)
Release: 8.3
Codename: jessie
Web server:
nginx-1.6.2-5+deb8u1
Database:
posgresql-9.4+165+deb8u3
PHP version:
php5-5.6.24+dfsg-0+deb8u1
Nextcloud version: (see Nextcloud admin page)
Nextcloud-10.0.5
Updated from an older Nextcloud/ownCloud or fresh install:
owncloud-9.0.4.1
Where did you install Nextcloud from:
https://download.nextcloud.com/server/releases/nextcloud-10.0.5.tar.bz2
Signing status:
Signing status
List of activated apps:
App list
Nextcloud configuration:
Config report
With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your Nextcloud installation folder
root@# sudo -u www-data php occ ldap:show-config
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
[Symfony\Component\Console\Exception\CommandNotFoundException]
There are no commands defined in the "ldap" namespace.
Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM
oc_appconfig
WHEREappid
= 'user_ldap';Client configuration
Logs
Web server error log
Nextcloud log (data/nextcloud.log)
Nextcloud log
Browser log
The text was updated successfully, but these errors were encountered: