Clear Nextcloud Integrity Warnings by Restoring the Right Files

To clear Nextcloud’s “Some files have not passed the integrity check” warning, first open Administration settings → Overview → List of invalid files…, then restore or remove only the files identified in the report. Do not edit signature.json or suppress the check: integrity errors can indicate an incomplete update, an accidental customization, or an unexpected file that needs investigation.

Read the report before changing files

The warning appears on the admin Overview page. Nextcloud’s code-signing documentation describes two useful actions there: view the invalid-file list and trigger a rescan. The report groups issues by component, such as core or an app, and gives an error type and file path. The current Nextcloud 35 administration manual documents these same actions and the occ integrity commands.

  • INVALID_HASH: a file differs from the hash recorded in its signature. A local edit, incomplete replacement during an upgrade, or unexpected modification may explain it.
  • MISSING_FILE: a signed file is absent. It may have been removed accidentally or left out during an update.
  • EXTRA_FILE: a file exists in the installation but is not part of the signed set. It may be a local file, a leftover from an old release, or something that requires security review.
  • EXCEPTION: the verifier could not validate a signature, for example because required signature data is missing or invalid. Check the named app and its source.

These labels describe the check result, not the cause. An extra file is not automatically malicious, and a hash mismatch is not proof of compromise. Record the component, path, and error, and compare them with your deployment method and recent changes.

Run a targeted check

If you have shell access, run occ as the web server’s user from the Nextcloud installation directory. The correct account and PHP command can vary by operating system, container image, Snap, or hosting provider. On a common Debian or Ubuntu Apache installation, with Nextcloud at /var/www/nextcloud and the web user www-data, use:

cd /var/www/nextcloud
sudo -E -u www-data php occ integrity:check-core
sudo -E -u www-data php occ integrity:check-app calendar

Replace calendar with the app identifier shown in your report. The core check verifies Nextcloud server files; the app check verifies one named app. The Nextcloud 35 manual also documents occ integrity:check-app --all for checking installed apps. A successful check may produce no output; use -v when you need confirmation. If your installation is containerized or managed by a package, use its documented way to invoke occ and its actual web user rather than copying these paths blindly.

Restore files from a trusted source

For core files

For INVALID_HASH or MISSING_FILE under core, use the exact Nextcloud release currently installed. Obtain a clean archive from the official download source or restore the matching files from a known-good backup or deployment artifact. Compare the installed version before replacing files, and preserve site-specific configuration and the data directory. If several core files fail after an interrupted upgrade, repair the deployment or rerun the supported upgrade process for that installation type instead of replacing individual files at random.

For EXTRA_FILE, inspect the path and establish who created it. Move an understood local file outside the Nextcloud code directory if it is not part of the installation; preserve a copy first if it may contain needed custom work. If the file is unfamiliar or suspicious, preserve it for investigation and review access logs and deployment history before removing it. Do not delete arbitrary files just to make the warning disappear.

For app files

For a signed app with modified or missing files, reinstall the same compatible app version from the official Nextcloud app store or the app maintainer’s trusted release channel. Back up the app directory first if it contains local changes. If it is a custom or unsigned app, an integrity message can reflect its signing status or implementation; check with its developer rather than manufacturing signature data. Nextcloud’s documentation says not to modify the app’s signature.json. Code signing for core and apps provides a way to detect changes and incomplete upgrades, so changing the recorded hashes defeats that purpose.

When transferring replacement files with FTP, Nextcloud specifically advises binary transfer mode. Text-mode conversion can alter bytes and create a fresh hash mismatch.

Rescan and confirm the result

  1. Run the matching core or app integrity command again, or return to Administration settings → Overview and select Rescan….
  2. Confirm that the affected component no longer appears in the invalid-file list. If you used the CLI, a passing app check produces no output, or a verbose check confirms the result.
  3. Reload the Overview page and verify the warning is gone. If it remains, open the updated report; it may identify another file or a different component.

If the same error returns immediately, investigate whether your deployment process, customization, or a mounted volume is restoring the changed file. For signature exceptions, check the app’s supported release and consult its maintainer. If the report identifies a core file you cannot account for, treat it as a security and deployment issue and review trusted backups and server logs before proceeding.

See the official Nextcloud code-signing and integrity documentation, the Nextcloud 35 integrity command reference, and the official Nextcloud server release archive.

Leave a Comment

Connect Gmail or Microsoft 365 to Nextcloud Mail Using OAuth2

Set up OAuth2 for Nextcloud Mail with Gmail or Microsoft 365, verify receiving and sending, and resolve common consent and SMTP failures.

Clear Stuck Nextcloud Maintenance Mode Safely With OCC

Clear Stuck Nextcloud Maintenance Mode Safely With OCC

Use OCC to restore Nextcloud access, verify database migration status, and choose the right command for archive, Docker, or Snap installs.

Set Up Nextcloud LDAP and Active Directory Login

Connect Nextcloud to LDAP or Active Directory, limit access with user and group filters, and verify secure authentication before rollout.

Require Two-Factor Authentication for Nextcloud Users

Enable a supported 2FA provider, prepare account recovery, then require two-factor authentication for everyone or selected Nextcloud groups.

Protect Collabora CODE Documents at Rest with Storage Encryption

Secure files edited in Collabora CODE by encrypting the storage layer, protecting temporary data, and verifying encryption and recovery.

Get Collabora CODE Running on ARM64 With the Correct Image

Get Collabora CODE Running on ARM64 With the Correct Image

Check your host architecture, confirm the CODE tag publishes ARM64, remove forced AMD64 settings, and separate image errors from permissions or memory issues.

Connect Collabora Online to ownCloud Infinite Scale

Set up the WOPI connection between Collabora Online and ownCloud Infinite Scale, configure the right service URLs, and verify document edits save.

Block File Exports in Collabora CODE Through WOPI

Prevent document exports in Collabora Online CODE by setting the WOPI DisableExport permission, then verify the host and editor enforce it.

Put Collabora Behind Nginx Without Breaking WebSockets

Put Collabora Behind Nginx Without Breaking WebSockets

Configure Nginx TLS termination, Collabora routes, and WebSocket headers, then test the public endpoints before opening real documents.

Stop CODE Editing Sessions from Ending at 10 Minutes

Trace a 10-minute CODE disconnect to its proxy, load balancer, or WebSocket path, then correct the timeout and verify the session stays connected.