Nc-integrity-fix - Script to resolve "Some files have not passed the integrity check" warnings


nc-integrity-fix is a script to resolve

  • Some files have not passed the integrity check

warnings


Every Nextcloud admin has been confronted with this warning sooner or later and is then always busy searching and checking again to find and eliminate the causes.
The → search function of the forum ← shows that this problem is as old as Nextcloud itself. There are so many results (well over 500) that it is even recommended to restrict the searchquery string :face_with_raised_eyebrow:.

To solve this problem once and for all times - at least for such instances that have full access to the server files (no containerized solutions like Docker, AIO etc) - I created this script with ebtb.

Install it this way:

sudo wget -O /usr/local/bin/nc-integrity-fix https://global-social.net/script/nc-integrity-fix
sudo chmod +x /usr/local/bin/nc-integrity-fix

Explanation:
- the first line downloads the script into the directory /usr/local/bin
- the second line makes it executable

You only need to install it once.
As all of my → ebtb ← scripts, it comes signed and does an integrity check on the first run and checks for updates on every startup.

Simply run it:

nc-integrity-fix

I really hope that this tool will make your life easier and save you a lot of searching and time in future.


Much and good luck,
ernolf

1 Like