File Integrity Check Fail

Steps to reproduce

  1. Sign in to OC, and browse to settings area

Expected behaviour

No files failed check

Actual behaviour

Files listed as failed, however files not present in directory

Server configuration

Operating system: Ubuntu 20.04.2

Web server: nginx 1.18.0

Database: mariadb 10.3.29

PHP version: 7.4.3

ownCloud version: (see ownCloud admin page) 10.6.0.5 (Downgraded to test this issue, same error occurring on 10.7 as well)

Updated from an older ownCloud or fresh install: Fresh install

Where did you install ownCloud from: Download Server Packages - ownCloud

Signing status (ownCloud 9.0 and above):

Results

  • core
    • EXTRA_FILE
      • lib/private/oc_tmp_AhBLKY-folder/.htaccess
      • lib/private/oc_tmp_AhBLKY-folder/.user.ini
      • lib/private/oc_tmp_AhBLKY
      • lib/private/oc_tmp_vYP8D1-folder/.htaccess
      • lib/private/oc_tmp_vYP8D1-folder/.user.ini
      • lib/private/oc_tmp_vYP8D1

Raw output

Array
(
[core] => Array
(
[EXTRA_FILE] => Array
(
[lib/private/oc_tmp_AhBLKY-folder/.htaccess] => Array
(
[expected] =>
[current] => 8a34ea6fc94aa853eeaa766d1c1c4182ebdc6f70a93094d72f6d4ff4764b362cac5f5ccd21edbbc7bf4439fa3abbe81e74fb422e69e5ba95f81a9246159c8b11
)

                [lib/private/oc_tmp_AhBLKY-folder/.user.ini] => Array
                    (
                        [expected] => 
                        [current] => 0a557e3cdca4c2e3675deed761d79d109011dcdebbd9c7f6429f1d3476938ec95729543d7384651d1d0c48e26c5024cc5f517445920915a704ea748bdb903c5f
                    )

                [lib/private/oc_tmp_AhBLKY] => Array
                    (
                        [expected] => 
                        [current] => cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e
                    )

                [lib/private/oc_tmp_vYP8D1-folder/.htaccess] => Array
                    (
                        [expected] => 
                        [current] => 8a34ea6fc94aa853eeaa766d1c1c4182ebdc6f70a93094d72f6d4ff4764b362cac5f5ccd21edbbc7bf4439fa3abbe81e74fb422e69e5ba95f81a9246159c8b11
                    )

                [lib/private/oc_tmp_vYP8D1-folder/.user.ini] => Array
                    (
                        [expected] => 
                        [current] => 0a557e3cdca4c2e3675deed761d79d109011dcdebbd9c7f6429f1d3476938ec95729543d7384651d1d0c48e26c5024cc5f517445920915a704ea748bdb903c5f
                    )

                [lib/private/oc_tmp_vYP8D1] => Array
                    (
                        [expected] => 
                        [current] => cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e
                    )

            )

    )

)

The content of config/config.php:

<?php $CONFIG = array ( 'instanceid' => 'ocmkebnwuek7', 'passwordsalt' =>, 'secret' =>, 'trusted_domains' => array ( 0 => 'files.mydomain.com', ), 'datadirectory' => '/var/www/files.mydomain.com/data', 'overwrite.cli.url' => 'https://files.mydomain.com', 'dbtype' => 'mysql', 'version' => '10.6.0.5', 'dbname' => db, 'dbhost' => 'localhost', 'dbtableprefix' => 'oc_', 'mysql.utf8mb4' => true, 'memcache.local' => '\OC\Memcache\APCu', 'filelocking.enabled' => true, 'memcache.locking' => 'OC\Memcache\Redis', 'redis' => [ 'host' => 'localhost', 'port' => '6379', 'timeout' => 0, 'password' => '', ], 'dbuser' => dbuser, 'dbpassword' =.', 'logtimezone' => 'UTC', 'apps_paths' => array ( 0 => array ( 'path' => '/var/www/files.mydomain.com/apps', 'url' => '/apps', 'writable' => false, ), 1 => array ( 'path' => '/var/www/files.mydomain.com/apps-external', 'url' => '/apps-external', 'writable' => true, ), ), 'installed' => true, ); ``` **List of activated apps:** Enabled: - activity: 2.6.0 - comments: 0.3.0 - configreport: 0.2.0 - dav: 0.6.0 - federatedfilesharing: 0.5.0 - federation: 0.1.0 - files: 1.5.2 - files_external: 0.7.1 - files_mediaviewer: 1.0.3 - files_pdfviewer: 0.11.2 - files_sharing: 0.14.0 - files_texteditor: 2.3.0 - files_trashbin: 0.9.1 - files_versions: 1.3.0 - firstrunwizard: 1.2.0 - market: 0.6.0 - notifications: 0.5.2 - provisioning_api: 0.5.0 - systemtags: 0.3.0 - templateeditor: 0.4.0 - updatenotification: 0.2.1 Disabled: - admin_audit - announcementcenter - customgroups - encryption - enterprise_key - external - files_antivirus - files_classifier - files_external_dropbox - files_external_ftp - files_ldap_home - files_lifecycle - firewall - graphapi - guests - oauth2 - openidconnect - password_policy - ransomware_protection - sharepoint - systemtags_management - theme-enterprise - user_external - user_ldap - user_shibboleth - windows_network_drive - wopi - workflow **Are you using external storage, if yes which one:** local **Are you using encryption:** no **Are you using an external user-backend, if yes which one:** No ### Client configuration **Browser:** Chrome/Firefox **Operating system:** MacOS

But is ownCloud running, just with the integrity issue?

I don’t know how you have created these files. This looks like temporary clutter, I’d remove these directories, as they seem to be unneeded.

1 Like

Yes,

ownCloud is running just the integrity issue. The problem is, I don’t see these files to remove them.

In the /var/www/files.mydomain.com/lib/private folder, I see none of the listed files above. Am I missing something?

Thank you!

What if you invoke a occ files::scan --all, or click on the rescan link?

1 Like

It persists through both the occ files:scan --all and rescan link.

But then your web server config is strange. You cannot see files that ownCloud can see… Or you might have a look into the caching, but I cannot help there.

Is it possible that ownCloud is installed multiple times and you are searching in the wrong directory?

I’d run

find / -type d -name oc_tmp_AhBLKY

on your Server, this shows the location if the directory is still there.

Additionally enter your ownCloud installation directory and run

sudo -u www-data php occ integrity:check-core

which performs the same as clicking rescan. When there is not any output, your installation is “clean”.

1 Like

No bueno, files not found. It was a redis issue. Went and dug through the logs and Redis was throwing an error for Transparent Huge Pages, disabled that and rebooted, integrity check completed successfully. Also went ahead and manually updated to latest, no issue.

Thanks all!

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.