After updated my nextcloud to V12, I have this error

"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

- core
		- .htaccess

Raw output
    [core] => Array
            [INVALID_HASH] => Array
                    [.htaccess] => Array
                            [expected] => da8e0075f23227b107fc705aa1b20378107d3a1c195d96ed13e5f4f25c38d6c660aab75be183ae5799a4ff7eae0ea739a14c944430ee8bb9e9a824235aa136eb
                            [current] => 35e2e7815fccc6a99d89b2b15c3bea2ff9cfd04e9cd035696862c80a0a0eb067fad0909a3ddeb140c70de3fcecbf17cc110c7277372e6003a1107773ba61cc26




Can you help me

Nextcloud version : 12
Operating system and version : Ubuntu 16.04
Apache or nginx version : Apache/2.4.18 (Ubuntu)
PHP version : PHP 7.0.18-0ubuntu0.16.04.1 (cli)

Did you use the updater app? Any errors during the upgrade process in the logs?

To solve this, you can get all the code for each version from, you only need to replace the .htaccess file in the main folder. Then run the integrity check again from your admin page and the warning should disappear.

sudo -u www-data php /path/to/nextcloud/occ maintenance:update:htaccess should automate that step.


sudo -u www-data php /path/to/nextcloud/occ maintenance:update:htaccess doesn’t work
but I get the .htaccess in and replace in /var/www/nextcloud
and now it’s work