Problem with code integrity after uprade

after upgrading vom owncloud 8 to nextcloud 9 there is an error about the code integrity.
checking the files there is the following result:

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
      • tmp/oc_tmp_82Ce2X-folder/.htaccess

Raw output

Array
(
[core] => Array
(
[EXTRA_FILE] => Array
(
[tmp/oc_tmp_82Ce2X-folder/.htaccess] => Array
(
[expected] =>
[current] => 8a7dbece25e682d31437d522b80eaf5325b618078cbc9f00bb7f3f066a01cb4b054c82ee8538b1732d514528e7fc2dc89e6e08eb64cc071b7c39417ad5a2f879
)

            )

    )

)

Remove the file

:slight_smile: :wink:

haha,
these file is not in the desired folder, it seems to be a temoprary file.
It removed the TMP path from the config.php as a workaround.

problem with code integrity after updating from 9.0.50 to 9.0.51

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
	- INVALID_HASH
		- 3rdparty/symfony/console/Helper/ProgressHelper.php
		- core/doc/admin/configuration_server/security_setup_warnings.html
		- core/doc/user/_static/bootstrap-3.1.0/fonts/glyphicons-halflings-regular.ttf
- gallery
	- INVALID_HASH
		- js/vendor/dompurify/LICENSE
- calendar
	- INVALID_HASH
		- core/vendor/moment/locale/id.js
		- core/vendor/fullcalendar/dist/fullcalendar.min.js
- files_pdfviewer
	- INVALID_HASH
		- vendor/pdfjs/web/cmaps/Adobe-Japan1-UCS2.bcmap

Raw output
==========
Array
(
    [core] => Array
        (
            [INVALID_HASH] => Array
                (
                    [3rdparty/symfony/console/Helper/ProgressHelper.php] => Array
                        (
                            [expected] => eac0ae99a9e9381388252321f45c22bde1fa5dc84cf4fd24494f180acf5dd3aa43b198ae678046c64933d029065946095ca2da5d921f4239b2d2538ebfc00102
                            [current] => c4b314075e0343be658c7ccbf0474b8c101b017964f0a392e0099a8f2ceeae2d4df81fd2d171cc54cbc78c4dbadbbe1479ad3444ee2acb2da61972c6d8db6227
                        )

                    [core/doc/admin/configuration_server/security_setup_warnings.html] => Array
                        (
                            [expected] => e26038a0385c552fc204ab7132fc12968a9ab90e1c9164374e6862a75de747344db3a61b5c0022af15c96945ac4b7b9d48b71d348410e43222ba32d143651ef4
                            [current] => 0b3fa2fbb5c9256121db06b96199524d41964ffba74e734828dc991d8583ffc5a825e03007fd3624d952ba2d7c20e871c6e893dc2e9947c35c98222492ae7c01
                        )

                    [core/doc/user/_static/bootstrap-3.1.0/fonts/glyphicons-halflings-regular.ttf] => Array
                        (
                            [expected] => d2962cd2d2b2d081f8880688ff0ad05d01bf5def9c7669e483fae5d1aa4159a5d9b6f1f3da90b536cfb22b664e9fbb0d9f3ccd2a4a0fa85ec0d624d0b865b1ae
                            [current] => 044f81d401b4853e4ecf0a705f7611069e3e11fb364cf949f4ed5bf6844ccb65a79429f7491ba2e23446e0826be822a81b58cce3e8b21369490450ec948b56cb
                        )

                )

        )

    [gallery] => Array
        (
            [INVALID_HASH] => Array
                (
                    [js/vendor/dompurify/LICENSE] => Array
                        (
                            [expected] => b0cd3a6247f4239d99c76d225c331a4e744700a2f1d9b1f8a1ed5f30cde95fb5112b8d79cb9e14defc0d8db2c5d58769b84045268ea39e3dda74c961716b9936
                            [current] => 2d66469f83c72b3e4f92dcb66c9453018a8bbe4c0da2bb041acb0d790460f1ddb9e14fc3762de81fcaeba5ca8a727bf2953899ae563b95cafedf9837fa209f63
                        )

                )

        )

    [calendar] => Array
        (
            [INVALID_HASH] => Array
                (
                    [core/vendor/moment/locale/id.js] => Array
                        (
                            [expected] => 92241f3d9df8c69bd89598554bb9bc2aefacfc4823faffcc50c4aba294e93d1dbc6b655a816349da9501ea8bc348bd99743e57ebdd8179d8415647e9955f7953
                            [current] => 28c442f1703cb8f720c3d8cf23cdf99e547d526ca5fb9ff95949c1b8aecc1ed0ff155a89056f2324cad41fff358c93ac2f58461aa57daf135cecd05e6bac5bf9
                        )

                    [core/vendor/fullcalendar/dist/fullcalendar.min.js] => Array
                        (
                            [expected] => 7565fd202dcb0e35710a3c4f892adfa26d1b737dd9eae09ba9ba25ea52869e4e7e9b0d6c3d481e61f12c41a21df1fa4f7642d991cc81cbae298617514974542d
                            [current] => 85a304ecdf48f6d8de0fc683ce2e3e79854e8f0e2f86f442374b3b1a86982a7050c8abdfcfd12292340c557480591697a2d4d3463054180f000c369b3e87ec82
                        )

                )

        )

    [files_pdfviewer] => Array
        (
            [INVALID_HASH] => Array
                (
                    [vendor/pdfjs/web/cmaps/Adobe-Japan1-UCS2.bcmap] => Array
                        (
                            [expected] => d0711b8e37d8be245984956492e245447ab4c3875a569c6f1475f1c116aa51916c773faeb7e09630875a0bb085fa0284ef5c7f82a574392fd4b85a8cd4b34737
                            [current] => 048c0e6e2f642a7b17f7ed6fbeebb076e7541e1e8cc79675b6ba8a16cb8f2f60da399cb6642c461271057e4a8e559b0c1f42a947ddf6f8170ff433e2e49067e5
                        )

                )

        )

)

@cybero2912 how did you upload these files? FTP?

no - I used wget and then extracted directly on server

How exactly did you upgrade

renamed old nextcloud folder
copied new into /var/www
copied config.php /data from renamed folder into new
set permissions:

#!/bin/bash
ncpath='/var/www/nextcloud'
htuser='www-data'
htgroup='www-data'
rootuser='root'

printf "Creating possible missing Directories\n"
mkdir -p $ncpath/data
mkdir -p $ncpath/assets
mkdir -p $ncpath/updater

printf "chmod Files and Directories\n"
find ${ncpath}/ -type f -print0 | xargs -0 chmod 0640
find ${ncpath}/ -type d -print0 | xargs -0 chmod 0750

printf "chown Directories\n"
chown -R ${rootuser}:${htgroup} ${ncpath}/
chown -R ${htuser}:${htgroup} ${ncpath}/apps/
chown -R ${htuser}:${htgroup} ${ncpath}/assets/
chown -R ${htuser}:${htgroup} ${ncpath}/config/
chown -R ${htuser}:${htgroup} ${ncpath}/data/
chown -R ${htuser}:${htgroup} ${ncpath}/themes/
chown -R ${htuser}:${htgroup} ${ncpath}/updater/

chmod +x ${ncpath}/occ

printf "chmod/chown .htaccess\n"
if [ -f ${ncpath}/.htaccess ]
 then
  chmod 0644 ${ncpath}/.htaccess
  chown ${rootuser}:${htgroup} ${ncpath}/.htaccess
fi
if [ -f ${ncpath}/data/.htaccess ]
 then
  chmod 0644 ${ncpath}/data/.htaccess
  chown ${rootuser}:${htgroup} ${ncpath}/data/.htaccess
fi

done

@cybero2912 Can you ZIP the files that the integrity checker complains about and upload somewhere? Would be awesome if I could have a look. Thanks a lot! :rocket:

Hello Lukas,
I sent you a mail with the files attached

Hello Lukas,
any news on that?