-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
UniqueConstraintViolationException during upgrade from 13.0.5 to 13.0.6 - sqlite3 database #11221
Comments
When I emptied the oc_filecache table the update succeeded succesfully. Edit by @MorrisJobke: DON'T DO THIS - IT WILL CAUSE DAMAGE. However after logging in, it was very much noticable that the cache had to be build again. |
🙈 This breaks your instance. Even if it says "cache" it is not really a cache, but an index (due to limitations on DB side we also don't want to rename the table as it would mean that the upgrade could take hours if not longer, because some DBs do a copy on rename and this table is the biggest one we have). Thus this table MUST NEVER BE EMPTIED. If this is emptied all shares, comments, activities, etc are lost due to the fact that the index is dropped. |
Close as the evidence what went wrong was deleted and we can't investigate what went wrong. |
Steps to reproduce
Expected behaviour
Succesful upgrade (as many times before)
Actual behaviour
Upgrade fails (unusual, the upgade is normally succesfull)
Server configuration
Operating system: linux 4.4 (openSUSE)
Web server: apache-2.4.23
Database: sqlite3 3.8.10
PHP version: 7.0.7
Nextcloud version: 13.0.5 to be upgraded to 13.0.6
Updated from an older Nextcloud/ownCloud or fresh install:
Where did you install Nextcloud from: Nextcloud.com
Nextcloud configuration:
Config report
Logs
Web server error log
Web server error log: Nothing special to report
Nextcloud log (data/nextcloud.log)
Nextcloud log
Browser log
Browser log:
Nothing special to report
Discussed in the forum as well:
https://help.nextcloud.com/t/during-update-from-13-0-5-to-13-06-database-error-sqlstate-23000-integrity-constraint-violation-19-unique-constraint-failed-oc-filecache-fileid/36455/6
Advice was to open a ticket.
The text was updated successfully, but these errors were encountered: