-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade from 9.1.x to 10.0.4 - updating database fails #30007
Comments
GitMate.io thinks possibly related issues are #29061 (upgrade 10.0.2 -> 10.0.3 failed), #25590 (1091 Can't DROP 'PRIMARY' with upgrade 8.1.6->8.1.9), and #13100 (database connection error displays host, username and password details). |
I have examined the issue #29061 and it is probablly same issue like mine. My oc_properties table isn't epmty. It has this structure: MariaDB [owncloud]> DESCRIBE oc_properties; Can I add the missing column 'fileid 'manually? It is safe modification? |
Can you post the contents of the "oc_migrations" table ? Possible another case of the mysterious and hard to reproduce "skipped migrations" case. cc @tomneedham |
I have restrored the database from backup after the failed upgrade and went back to OC 9.1... The current conntent of table is: MariaDB [owncloud]> SELECT * FROM oc_migrations; |
Hey, this issue has been closed because the label (This is an automated comment from GitMate.io.) |
Hey, this issue has been closed because the label (This is an automated comment from GitMate.io.) |
Hello, i had to run: php occ migrations:execute dav 20170116150538 then i did these ones which needed the fileid column: php occ migrations:execute dav 20170711193427 This issue seems resolved for me. cheers |
Steps to reproduce
Expected behaviour
No error
Actual behaviour
Upgrade failed on database update. There is following error in log:
Exception: {"Exception":"Doctrine\DBAL\Exception\InvalidFieldNameException","Message":"An exception occurred while executing 'UPDATE
oc_properties
SETfileid
= '349832' WHERE (userid
= 'PBSTURBO') AND (propertypath
= '/Documents')':\n\nSQLSTATE[42S22]: Column not found: 1054 Unknown column 'fileid' in 'field list'","Code":0,"Trace":"#0 /var/www/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php(128): Doctrine\DBAL\Driver\AbstractMySQLDriver->convertException('An exception oc...', Object(Doctrine\DBAL\Driver\PDOException))\n#1 /var/www/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(855): Doctrine\DBAL\DBALException::driverExceptionDuringQuery(Object(Doctrine\DBAL\Driver\PDOMySql\Driver), Object(Doctrine\DBAL\Driver\PDOException), 'UPDATEoc_prop...', Array)\n#2 \/var\/www\/owncloud\/lib\/private\/DB\/Connection.php(191): Doctrine\\DBAL\\Connection->executeQuery('UPDATE
oc_prop...', Array, Array, NULL)\n#3 /var/www/owncloud/lib/private/DB/MigrationService.php(396): OC\DB\Connection->executeQuery('UPDATE `*PREFIX...')\n#4 /var/www/owncloud/lib/private/DB/MigrationService.php(358): OC\DB\MigrationService->executeStep(20170202213905)\n#5 /var/www/owncloud/lib/private/legacy/app.php(1094): OC\DB\MigrationService->migrate()\n#6 /var/www/owncloud/lib/private/Updater.php(307): OC_App::updateApp('dav')\n#7 /var/www/owncloud/lib/private/Updater.php(233): OC\Updater->doAppUpgrade()\n#8 /var/www/owncloud/lib/private/Updater.php(108): OC\Updater->doUpgrade('10.0.4.4', '9.1.6.2')\n#9 /var/www/owncloud/core/Command/Upgrade.php(254): OC\Updater->upgrade()\n#10 /var/www/owncloud/lib/composer/symfony/console/Command/Command.php(262): OC\Core\Command\Upgrade->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))\n#11 /var/www/owncloud/lib/composer/symfony/console/Application.php(826): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))\n#12 /var/www/owncloud/lib/composer/symfony/console/Application.php(189): Symfony\Component\Console\Application->doRunCommand(Object(OC\Core\Command\Upgrade), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))\n#13 /var/www/owncloud/lib/composer/symfony/console/Application.php(120): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))\n#14 /var/www/owncloud/lib/private/Console/Application.php(162): Symfony\Component\Console\Application->run(NULL, NULL)\n#15 /var/www/owncloud/console.php(106): OC\Console\Application->run()\n#16 /var/www/owncloud/occ(11): require_once('/var/www/ownclo...')\n#17 {main}","File":"/var/www/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php","Line":71}Server configuration
Operating system: Debian 8.10
Web server:
Apache 2.4
Database:
MariaDB 10.0.32
PHP version:
5.6.30
ownCloud version: 10.0.4
Updated from an older ownCloud or fresh install: upgrade form 9.1.6.2
Where did you install ownCloud from: Download from https://owncloud.org/download/
Signing status (ownCloud 9.0 and above):
"system": {
"instanceid": "oc6307a27dc2",
"passwordsalt": "REMOVED SENSITIVE VALUE",
"check_for_working_webdav": false,
"datadirectory": "/var/www/owncloud/data",
"dbtype": "mysql",
"version": "9.1.6.2",
"dbname": "owncloud",
"dbhost": "localhost",
"dbtableprefix": "oc_",
"dbuser": "REMOVED SENSITIVE VALUE",
"dbpassword": "REMOVED SENSITIVE VALUE",
"installed": true,
"mail_smtpmode": "smtp",
"forcessl": true,
"maintenance": false,
"loglevel": 2,
"trusted_domains": [
REMOVED SENSITIVE VALUE
],
"secret": "REMOVED SENSITIVE VALUE",
"trashbin_retention_obligation": "auto, 7",
"theme": "",
"appstore.experimental.enabled": true,
"mail_from_address": "cloud",
"mail_domain": "REMOVED SENSITIVE VALUE",
"mail_smtphost": "127.0.0.1",
"mail_smtpport": "25",
"memcache.local": "\OC\Memcache\APCu"
},
List of activated apps:
Enabled:
Disabled:
Are you using encryption: no
Are you using an external user-backend, if yes which one: No
The text was updated successfully, but these errors were encountered: