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

3 Likes

You’re a life saver!!! I was just about to cut my loses and spin up a new LXC for Nextcloud when I saw your post. I was able to successfully resolve all of my integrity checks.

Thank you for all your hard work. What a legend!

1 Like

Thank you for the appreciative words! That means a lot to me, as you obviously looked at the code yourself.
Your blog post encourages me to continue developing and maintaining my scripts.

:pray:


ernolf

2 Likes