Doctrine\DBAL\Exception\UniqueConstraintViolationException: An exception occurred while executing 'INSERT INTO oc_filecache (fileid, storage, parent, name, mimetype, mimepart, mtime, encrypted, path, path_hash, etag, storage_mtime, permissions, size, unencrypted_size, checksum) SELECT fileid, storage, parent, name, mimetype, mimepart, mtime, encrypted, path, path_hash, etag, storage_mtime, permissions, size, unencrypted_size, checksum FROM __temp__oc_filecache':
SQLSTATE[23000]: Integrity constraint violation: 19 UNIQUE constraint failed: oc_filecache.fileid
Update failed
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.