# NC 15.0.7-\>16.0.0 Upgrade - File Integrity check failed

**URL:** <https://help.nextcloud.com/t/nc-15-0-7-16-0-0-upgrade-file-integrity-check-failed/52611>\
**Category:** ℹ️ Support\
**Tags:** update\_problems\
**Created:** [May 4, 2019, 11:07am UTC](https://help.nextcloud.com/t/nc-15-0-7-16-0-0-upgrade-file-integrity-check-failed/52611 "2019-05-04T11:07:10Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![mhls](https://help.nextcloud.com/user_avatar/help.nextcloud.com/mhls/32/15027_2.png) [@mhls](https://help.nextcloud.com/u/mhls)\
**Post date:** [May 4, 2019, 11:07am UTC](https://help.nextcloud.com/t/nc-15-0-7-16-0-0-upgrade-file-integrity-check-failed/52611/1 "2019-05-04T11:07:10Z")

</div>

Nextcloud version _(eg, 12.0.2)_: 16.0.0  
Operating system and version _(eg, Ubuntu 17.04)_:  
Apache or nginx version _(eg, Apache 2.4.25)_:  
PHP version _(eg, 7.1)_:

The issue you are facing: File integrity check fails after upgrade to 16.0.0

# Technical information

The following list covers which files have failed the integrity check. Please read  
the previous linked documentation to learn more about the errors and how to fix  
them.

Is this the first time you’ve seen this error? _(Y/N)_: Y

Steps to replicate it:

1. Upgrade from NC 15.0.7 to 16.0.0 (via assistant)
2. Click on Preferences
3. Click on Overview

The output of your Nextcloud log in **Admin \> Logging** :

```auto

Results
=======
- files_rightclick
	- EXTRA_FILE
		- README.md

Raw output
==========
Array
(
    [files_rightclick] => Array
        (
            [EXTRA_FILE] => Array
                (
                    [README.md] => Array
                        (
                            [expected] => 
                            [current] => cf73849388838de5037624e53303618579b164ec69fd55834ce4c5332ae33f778839e36298cbcc8ede90620927e076dbb8883479754e4c09b0491b15bf7653f3
                        )

                )

        )

)

```

The output of your config.php file in `/path/to/nextcloud` (make sure you remove any identifiable information!):

```auto
PASTE HERE

```

The output of your Apache/nginx/system log in `/var/log/ ____ `:

```auto
PASTE HERE

```

---

<div class="post-metadata">

**Author:** ![Reiner\_Nippes](https://help.nextcloud.com/user_avatar/help.nextcloud.com/reiner_nippes/32/9479_2.png) [@Reiner\_Nippes](https://help.nextcloud.com/u/Reiner_Nippes)\
**Post date:** [May 4, 2019, 12:46pm UTC](https://help.nextcloud.com/t/nc-15-0-7-16-0-0-upgrade-file-integrity-check-failed/52611/2 "2019-05-04T12:46:37Z")

</div>

there should be no README.md in your nextcloud folder.

just move outside your installation folder or delete it.

---

<div class="post-metadata">

**Author:** ![Schmu](https://help.nextcloud.com/user_avatar/help.nextcloud.com/schmu/32/7823_2.png) [@Schmu](https://help.nextcloud.com/u/Schmu)\
**Post date:** [May 4, 2019, 2:12pm UTC](https://help.nextcloud.com/t/nc-15-0-7-16-0-0-upgrade-file-integrity-check-failed/52611/3 "2019-05-04T14:12:45Z")

</div>

The maintainer of the right-click app has probaly taken the README.md file out of his package. And while it had been included before, it integrity check is now complaining.  
I had the same issue during the update, but nothing to worry about. Just remove the file  
`/path/to/nextcloud/apps/files_rightclick/README.md`

and hit retry on the web updater.

---

<div class="post-metadata">

**Author:** ![mhls](https://help.nextcloud.com/user_avatar/help.nextcloud.com/mhls/32/15027_2.png) [@mhls](https://help.nextcloud.com/u/mhls)\
**Post date:** [May 5, 2019, 1:11pm UTC](https://help.nextcloud.com/t/nc-15-0-7-16-0-0-upgrade-file-integrity-check-failed/52611/4 "2019-05-05T13:11:33Z")

</div>

Thanks, done! Works!

---

<div class="post-metadata">

**Author:** ![Asif\_Khan](https://help.nextcloud.com/user_avatar/help.nextcloud.com/asif_khan/32/30822_2.png) [@Asif\_Khan](https://help.nextcloud.com/u/Asif_Khan)\
**Post date:** [May 16, 2019, 10:41pm UTC](https://help.nextcloud.com/t/nc-15-0-7-16-0-0-upgrade-file-integrity-check-failed/52611/5 "2019-05-16T22:41:25Z")

</div>

> [@mhls](#):
>
> /path/to/nextcloud/apps/files\_rightclick/README.md

Even after deleting Readme.md file, I am still getting the same error. Any other solution? @Schmu

---

<div class="post-metadata">

**Author:** ![Schmu](https://help.nextcloud.com/user_avatar/help.nextcloud.com/schmu/32/7823_2.png) [@Schmu](https://help.nextcloud.com/u/Schmu)\
**Post date:** [May 30, 2019, 6:45pm UTC](https://help.nextcloud.com/t/nc-15-0-7-16-0-0-upgrade-file-integrity-check-failed/52611/6 "2019-05-30T18:45:30Z")

</div>

Did you perform a re-scan, after you deleted the file? Please do if not already done and provide a new output of the integrity check.

---

<div class="post-metadata">

**Author:** ![Asif\_Khan](https://help.nextcloud.com/user_avatar/help.nextcloud.com/asif_khan/32/30822_2.png) [@Asif\_Khan](https://help.nextcloud.com/u/Asif_Khan)\
**Post date:** [May 30, 2019, 6:59pm UTC](https://help.nextcloud.com/t/nc-15-0-7-16-0-0-upgrade-file-integrity-check-failed/52611/7 "2019-05-30T18:59:23Z")

</div>

I have already done re-scan so many times after deleting the file.

---

<div class="post-metadata">

**Author:** ![Schmu](https://help.nextcloud.com/user_avatar/help.nextcloud.com/schmu/32/7823_2.png) [@Schmu](https://help.nextcloud.com/u/Schmu)\
**Post date:** [May 30, 2019, 7:01pm UTC](https://help.nextcloud.com/t/nc-15-0-7-16-0-0-upgrade-file-integrity-check-failed/52611/8 "2019-05-30T19:01:15Z")

</div>

Yes okay, but what is the scan complaining about now? Could you post an up to date scan result?  
You can also add an output of `ls -al` of the directory in question.

---

<div class="post-metadata">

**Author:** ![Asif\_Khan](https://help.nextcloud.com/user_avatar/help.nextcloud.com/asif_khan/32/30822_2.png) [@Asif\_Khan](https://help.nextcloud.com/u/Asif_Khan)\
**Post date:** [May 30, 2019, 7:16pm UTC](https://help.nextcloud.com/t/nc-15-0-7-16-0-0-upgrade-file-integrity-check-failed/52611/9 "2019-05-30T19:16:54Z")

</div>

Some files have not passed the integrity check. Further information on how to resolve this issue can be found in the documentation. (List of invalid files… / Rescan…)

```auto
Technical information
=====================
The following list covers which files have failed the integrity check. Please read
the previous linked documentation to learn more about the errors and how to fix
them.

Results
=======
- core
	- EXTRA_FILE
		- ocs/.rnd
		- .rnd

Raw output
==========
Array
(
    [core] => Array
        (
            [EXTRA_FILE] => Array
                (
                    [ocs/.rnd] => Array
                        (
                            [expected] => 
                            [current] => ae8d523f60742ebd8d4c9788259e30bd7331e213c874e7ca058dac1e0d3ffaba0ed9eb20d184e00a4ca3fd8ec473e8b73389933ee8a835f4fa4757fc59418688
                        )

                    [.rnd] => Array
                        (
                            [expected] => 
                            [current] => 69affe975207adf123d5de7ec7bb98e7478d65dace66e83509a8074a9c7eca23a597189d2d784780985281811448f4be9073c71959cca23f48005b844696becf
                        )

                )

        )

)
```

---

<div class="post-metadata">

**Author:** ![Schmu](https://help.nextcloud.com/user_avatar/help.nextcloud.com/schmu/32/7823_2.png) [@Schmu](https://help.nextcloud.com/u/Schmu)\
**Post date:** [May 30, 2019, 7:57pm UTC](https://help.nextcloud.com/t/nc-15-0-7-16-0-0-upgrade-file-integrity-check-failed/52611/10 "2019-05-30T19:57:46Z")

</div>

You see, totally different files and no more complaining about the README.md.

In case it is too difficult to figure out: these files should also not be there and need to be deleted.

```auto
cd /path/to/nextcloud
rm .rnd ocs/.rnd

```

---

<div class="post-metadata">

**Author:** ![Asif\_Khan](https://help.nextcloud.com/user_avatar/help.nextcloud.com/asif_khan/32/30822_2.png) [@Asif\_Khan](https://help.nextcloud.com/u/Asif_Khan)\
**Post date:** [May 30, 2019, 8:04pm UTC](https://help.nextcloud.com/t/nc-15-0-7-16-0-0-upgrade-file-integrity-check-failed/52611/11 "2019-05-30T20:04:35Z")

</div>

@Schmu Thank you so much problem solved. All checks passed.

---

<div class="post-metadata">

**Author:** ![freeeflyer](https://help.nextcloud.com/letter_avatar/freeeflyer/32/5_5575768a8748004e209b776fc1b2916d.png) [@freeeflyer](https://help.nextcloud.com/u/freeeflyer)\
**Post date:** [June 5, 2019, 6:00pm UTC](https://help.nextcloud.com/t/nc-15-0-7-16-0-0-upgrade-file-integrity-check-failed/52611/12 "2019-06-05T18:00:10Z")

</div>

Thanks, @Schmu, brut this problem is present since a lot of time.  
remove it each time you upgrade is not a permanent solution.  
The reference to the file is there :

```auto
$nextcloud_home/3rdparty/phpseclib/phpseclib/phpseclib/openssl.cnf

```

Maybe there is a way to add an ignorefile to the updater ?

---

<div class="post-metadata">

**Author:** ![andrewperry](https://help.nextcloud.com/user_avatar/help.nextcloud.com/andrewperry/32/17439_2.png) [@andrewperry](https://help.nextcloud.com/u/andrewperry)\
**Post date:** [January 7, 2020, 2:46pm UTC](https://help.nextcloud.com/t/nc-15-0-7-16-0-0-upgrade-file-integrity-check-failed/52611/13 "2020-01-07T14:46:40Z")

</div>

Yes, it seems crazy that even now when I upgraded to version 17.0.2 this issue arose when rightclick is an “Official” app!

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 4, 2024, 9:50am UTC](https://help.nextcloud.com/t/nc-15-0-7-16-0-0-upgrade-file-integrity-check-failed/52611/14 "2024-12-04T09:50:40Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 11, 2024, 2:54pm UTC](https://help.nextcloud.com/t/nc-15-0-7-16-0-0-upgrade-file-integrity-check-failed/52611/15 "2024-12-11T14:54:15Z")

</div>


