Skip to content
Arno Welzel edited this page Jul 20, 2026 · 7 revisions

How to fix integrity check errors when upgrading from a version older than 4.3.0

Download the Nextcloud server archive from https://download.nextcloud.com/server/releases/. Keep in mind to select the version you are currently running.

Extract the archive and copy the file core/js/mimetypelist to the same folder of your Nextloud installation.

In a console run the following command within the nextcloud root folder - it should not return any error:

php occ integrity:check-core

Please do not create a new mimetypelist using OCC after this step! This may create a mimetypelist which would not pass the integrity check.

In addition you need to delete the filetype icons:

rm core/img/filetypes/drawio.svg
rm core/img/filetypes/dwb.svg

How restore the mimetype definitions in an AIO setup

If you use Nextcloud AIO, you have to copy the files to the volume used by AIO and also set the correct ownership. Thanks to robert-blip for the following explanation he posted in https://github.com/arnowelzel/drawio-nextcloud/issues/27#issuecomment-5026789481.

Get the original Nextcloud files (for example with version 33.0.6):

wget https://download.nextcloud.com/server/releases/nextcloud-33.0.6.tar.bz2

Extract the mimetypelist.js file:

tar -xjf nextcloud-33.0.6.tar.bz2 nextcloud/core/js/mimetypelist.js

Copy into Docker container:

docker cp nextcloud/core/js/mimetypelist.js nextcloud-aio-nextcloud:/var/www/html/core/js/mimetypelist.js

Set ownership:

docker exec --user root nextcloud-aio-nextcloud chown www-data:www-data /var/www/html/core/js/mimetypelist.js

Filetype icons missing since Version 4.3.0

Since there is no official way to add filetype icons in an app, older versions copied the two icons to the Nextcloud core folder core/img/filetypes/. However this will cause integrity errors, because Nextcloud does not expect these files there.

To address this, version 4.3.0 or newer will not copy the filetype any longer. This means, files with the extension .drawio or .dbw will only be displayed with the default file icon or a preview, if previews are enabled.

This may change in the future, but there is no date planned yet for this.