Nextcloud 12 on Alpine Linux shows "integrity check"-error after installing
After installing Nextcloud 12 and logging in via browser Nextcloud shows the error “Some files have not passed the integrity check. Further information on how to resolve this issue can be found in our” in the “Basic settings”-page of Nextcloud.
The following files are listed as failed:
Array
(
[core] =>Array
(
[INVALID_HASH] =>Array
(
[lib/private/Template/CSSResourceLocator.php] =>Array
(
[expected] =>
8dd40132e15c1c6af45a9ee74761a160965bcb2cf3b7402e588a371ea9990c3d4b610943aa02c37c1084c1cd9c67d27c28e1cf1196d80eb30b60ddf62724b9db
[current] =>
95d89673e1c333e35bc3b42a5b73b7454adfa45d8b7aa9e4e36e97e2be68ade5312ecb9a5a6fc6cb276662d43303c2a0714cec36fe2d0322e1fb1983e2f002af
)
[lib/private/Template/ResourceLocator.php] =>Array
(
[expected] =>
d76847bef81f2c53835d5eb784791c0ab4407a882f6d29508db6b299cc2ce56cea1b77f0e553c3b8e5cdd7cc4b305f6d4591b1b27f03e85b5fb47c98ea2608aa
[current] =>
3715844d78d39f609d91323a20128ba747179aacef6659f1577cfab1f9336b78014757d9ee58f2617a1afa1a8b85263ba5efac0211e89396be8716e7130c4240
)
[lib/private/Config.php] =>Array
(
[expected] =>
55ec4e3c9aa0b3c7fed33e29b13b7d3532ca482d79b9b057f6ff7bc166d44f75d7140b7c04b02047baa880ec3980cb5653e28a79e016fdc2a362a4cf2e36f4a5
[current] =>
5719c7409f4873e3b25fc5537cfdc6d7c64defa4bedb7205605dbf67582b27a84a7b1a0d11f4bde4432e88a0c35010e0ad746385ff2cb95d5b2d8ca06bfdead5
)
)
)
)
The reason for that seems that the patches including in the alpine-package (of course) change the content of some files which changes the hash(es) of the files. Nextcloud (as far as I could see) saves the hashes of its files in some json-files. So adding a patch for the corresponding json-file should fix this issue.
(from redmine: issue id 8132, created on 2017-11-12, closed on 2018-09-11)