Integrity errors

Hi,

I noticed that my ownCloud Server countinuosly declare Integrity errors.

This is invalid files list:

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
      • .htaccess
      • core/doc/admin/_static/img/note_pencil.svg
      • core/doc/admin/_static/img/warning.svg
      • core/fonts/LICENSE.txt
      • core/vendor/clipboard/dist/clipboard.js
      • core/vendor/jsTimezoneDetect/jstz.js
      • core/vendor/showdown/dist/showdown.js
      • core/vendor/showdown/dist/showdown.min.js
    • FILE_MISSING
      • .user.ini

Raw output

Array
(
[core] => Array
(
[INVALID_HASH] => Array
(
[.htaccess] => Array
(
[expected] => c00197d1a4d7a1db5bf43849acd10d2d7813705463ba02fe540b5d05328dcf078456e55dcd0450bb884a85bf25c66a596cdcf9108d26ba44d2287a35de26d72b
[current] => cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e
)

                [core/doc/admin/_static/img/note_pencil.svg] => Array
                    (
                        [expected] => 78b9df57afe9468145e6e375cd1f61274b269b9c3019726a99e043ae952367acf53cf471cbc5b3dcca2e68367c2c4422d4a9f9a9fdbb11f9b962845ac77857de
                        [current] => 97117ce2827cc1b742678b52fc100de1e7d3fdb1adeea04a301c012e7f95b66e10a369c6a83ba89a707c4232b5e31fba3d5e58b0e0d970f22031d0704eebb5a9
                    )

                [core/doc/admin/_static/img/warning.svg] => Array
                    (
                        [expected] => e8647b47ef1531b8c2fcdd51f76996fe85476467fc694540f3dcf8ce7e7da489e99edae5a158742da71c07dc09ccfaf721f01c1c4bda3f5bae9b711981b71a1b
                        [current] => 85687f19cf204716e9b1c608682aa22c045b6f8284a3496db07f13200952491bfea54deee7ef11115c0dedfd87443c7022ef05792892a8a984866752c8ec5726
                    )

                [core/fonts/LICENSE.txt] => Array
                    (
                        [expected] => 4cc5a12bfe984c0a50bf7943e2d70a948d520ef423677c77629707aace3a95aa378d205de929105d644680679e70ef2449479b360ad44896b75bafed66613272
                        [current] => 98f6b79b778f7b0a15415bd750c3a8a097d650511cb4ec8115188e115c47053fe700f578895c097051c9bc3dfb6197c2b13a15de203273e1a3218884f86e90e8
                    )

                [core/vendor/clipboard/dist/clipboard.js] => Array
                    (
                        [expected] => 0b118c979e7f7500e22f3849ec4bf13fe84663093400036007550047c99486585753675ad30f486410d9380ffdb5afb30003a5f89e7cb7520a9ceda5d0b3d477
                        [current] => acb0d6f535722770a0e3fb3e34dd2007423517c8364e09cb40a8a29832e0bd7be305d16b4cf94853fb386cc391664796b7382a22ed4739b178813a17f8f6fa2e
                    )

                [core/vendor/jsTimezoneDetect/jstz.js] => Array
                    (
                        [expected] => 8cb5b1df4cc7cb0ccc58e4283a705684c3790f23aff6f61554ace2f75ea7d5a017952fdeeecdc287a7d534bdc77502315a88cdd6dc2a5385ab53d92d4bfa802f
                        [current] => 14c2327f24d56511147b723f8e7281b32c79cd86995357f96f759bf0cfdd69cc18cacd0e9f1ac00c4bb8f5adc89e73bf991eb9f8dccdfb0201fdac69f489fc88
                    )

                [core/vendor/showdown/dist/showdown.js] => Array
                    (
                        [expected] => 859749899997555fa2a062308658182601377305dedbc09e8842353083f5e19111e3af75e48ac35020e5ae475abf512a53970248d593fd683f46df6e31a5b573
                        [current] => d5ea0b7a395f9f1829425c8e007fbf823214b536c3c015ce8d2de43abe68e1ed4ca7f721ce697501f04089a5294866e137458a21d5341c90678dcc1a5964ea8b
                    )

                [core/vendor/showdown/dist/showdown.min.js] => Array
                    (
                        [expected] => 21600e3f9417e1dd5603c65229726d3167405bc7ce89fc01d0bc9914a6aad9672fb1617f5e683c690c3130e5290a349a618fd5f8d0129517950fab824830ef1e
                        [current] => 7accc15a79545c9b54a3b17e74018453e2ecc3619c734f980b251a9d4502444c3cb4aff4b561c5245e1620a5ec89c3feab5a873ba1c9ed60f10ea60951d144a6
                    )

            )

        [FILE_MISSING] => Array
            (
                [.user.ini] => Array
                    (
                        [expected] => 0a557e3cdca4c2e3675deed761d79d109011dcdebbd9c7f6429f1d3476938ec95729543d7384651d1d0c48e26c5024cc5f517445920915a704ea748bdb903c5f
                        [current] => 
                    )

            )

    )

)

Hi,

have you made any adjustments?

nothing, just upload file from ftp in order to update to owncloud 10.x.x

If the upload was done via FTP then i think you have currently two problems:

  1. The files gets corrupted during the upload causing the wrong hash
  2. The FTP tool doesn't show hidden files (starting with a dot) and thus the .user.ini is missing and the .htaccess wasn't updated
1 Like

Did you notice if you sent the files in ascii or binary mode FTP mode? This is a typical error with FTP ...

Cut from Wikipedia FTP page 0:

While transferring data over the network, four data representations can be used:

ASCII mode: Used for text. Data is converted, if needed, from the sending host's character representation to "8-bit ASCII" before transmission, and (again, if necessary) to the receiving host's character representation. As a consequence, this mode is inappropriate for files that contain data other than plain text.
Image mode (commonly called Binary mode): The sending machine sends each file byte by byte, and the recipient stores the bytestream as it receives it. (Image mode support has been recommended for all implementations of FTP).
EBCDIC mode: Used for plain text between hosts using the EBCDIC character set.
Local mode: Allows two computers with identical setups to send data in a proprietary format without the need to convert it to ASCII.

Use type command from ftp 1.

Joan

1 Like

Wow, great catch :+1: This is probably the explanation for 1. and it seems also included in the mentioned documentation:

https://doc.owncloud.org/server/latest/admin_manual/issues/code_signing.html#fixing-invalid-code-integrity-messages

of the integrity warning:

Please read the previous linked documentation to learn more about the errors and how to fix them.