Owncloud failed the integrity check

I have upgraded to YunoHost 2.4 and owncloud 9. After login to owncloud, I got a notification message saying that some files failed the integrity check.

Here is the relevant log:

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
      • lib/private/session/sess_n95q03257obc79mnq0v46m6d54
      • config.json
    • INVALID_HASH
      • lib/base.php

Raw output

Array
(
[core] => Array
(
[EXTRA_FILE] => Array
(
[lib/private/session/sess_n95q03257obc79mnq0v46m6d54] => Array
(
[expected] =>
[current] => 2dde1da345d0e0dd961ad30a0b1f13cb04769dae874c03cff4190bbc488d4a2cb9947e8eb32f0c7dc93edecefff3b1b0d7d06aa919e98ddd83f54a4b9b314848
)

                [config.json] => Array
                    (
                        [expected] => 
                        [current] => 7baa8a52833353debc3e7a9d5532239c13359887725046fab203af798664bf28e25ebb00ede07c08b33dd3efe90ea57f3f0b0857b98a099678b35d5f660b44e0
                    )
            )
        [INVALID_HASH] => Array
            (
                [lib/base.php] => Array
                    (
                        [expected] => 27fb607fc00a4468181bc23b1294851dbe175f71d4b65f89677c329181d4f390f12ee374902cc668c702c5faa46bff8ca529cdf90d8f40bd1b3e1e863ccbef25
                        [current] => ddef0010f673bd4451ca8a6ad9a4442509df4b10268ad4b7a011ac83398ca1d04d98117119fad376e45919b6e80e74982fb6822579845617e9e7407deabed33c
                    )
            )
    )

)

After some cleanup it’s only base.php that’s left. Maybe that’s due to the modifications made to the logout button.

I have noticed this message as well, but according to the yunohost owncloud repo README ( https://github.com/YunoHost-Apps/owncloud_ynh ) it seems to be normal:

To integrate the logout button to the SSO, we have to patch ownCloud sources until this feature is integrated. That is going to give you an alert about invalid integrity core code…

1 Like

I too have that error.

Yes, everybody will have this error due to what @Gwendal posted… See https://github.com/YunoHost-Apps/owncloud_ynh#limitations.

1 Like

The Owncloud integrity check can be disabled in your config.ini with
'integrity.check.disabled' => true,
followed by a rescan in the admin section

So knowing this is possible, do you think it’s safe to disable the integrity check ?

1 Like

Thanks for that, I didn’t know… I’m not convinced about disabling it to hide the message because of the manually edited file, since except this one, no one else should change. But if the majority prefer to disable it, let’s go! :slight_smile: I’m not THE decision-maker!

I’m getting something similar, but in my case, php is creating it’s session files in the owncloud sessions directory, which ownCloud then doesn’t recognize and thus fails the code integrity check.

Does anyone know the path to the correct .ini file to edit so the session files go somewhere else?

It has been fixed with 01890f and the app list has been updated the same day, so if you have the last ownCloud app version, you should not have this issue…