Files missing after a few hours

,

Hi all,

My files are missing in the Web UI. The files appear again after running repair, but disappear after some time. These files are located in an encrypted partition (I.e. I moved them out of the owncloud folder).

I’m after some guidance on debugging this. I’ve checked the oc_accounts table and everything was ok there. I’ve also read some similar questions but can’t quite work out what is wrong.

Steps to reproduce

  1. Leave owncloud for a day or so
  2. Navigate to /owncloud/index.php/settings/personal
  3. Files are missing

This can be fixed by running

sudo -u www-data php occ maintenance:singleuser --on
sudo -u www-data php occ files:scan --all --repair
sudo -u www-data php occ maintenance:singleuser --off

However, after some time the files are missing again. I’m going to pop that into a corn job but it doesn’t seem ideal?

Expected behaviour

Files should be listed

Actual behaviour

Files are missing

Server configuration

Debian 10

Web server:
Apache 2

Database:
Postgres

PHP version:
7.3.19

ownCloud version: (see ownCloud admin page)
10.6.0

Updated from an older ownCloud or fresh install:
Newish install (October). Updated recently to 10.6. Not sure if issues predated this.

Where did you install ownCloud from:
apt

Signing status (ownCloud 9.0 and above):

No errors have been found.

The content of config/config.php:

{                                                                                                                                                                                                                                                "system": {                                                                                                                                                                                                                                      "updatechecker": false,                                                                                                                                                                                                                      "passwordsalt": "***REMOVED SENSITIVE VALUE***",                                                                                                                                                                                             "secret": "***REMOVED SENSITIVE VALUE***",                                                                                                                                                                                                   "trusted_domains": [                                                                                                                                                                                                                             "localhost",                                                                                                                                                                                                                                 "cloud.goodwin-jones.com"                                                                                                                                                                                                                ],                                                                                                                                                                                                                                           "datadirectory": "\/mnt\/vault\/owncloud",                                                                                                                                                                                                   "overwrite.cli.url": "http:\/\/localhost",                                                                                                                                                                                                   "dbtype": "pgsql",                                                                                                                                                                                                                           "version": "10.6.0.5",                                                                                                                                                                                                                       "dbname": "owncloud",                                                                                                                                                                                                                        "dbhost": "localhost",                                                                                                                                                                                                                       "dbtableprefix": "oc_",                                                                                                                                                                                                                      "dbuser": "***REMOVED SENSITIVE VALUE***",                                                                                                                                                                                                   "dbpassword": "***REMOVED SENSITIVE VALUE***",                                                                                                                                                                                               "logtimezone": "UTC",                                                                                                                                                                                                                        "apps_paths": [                                                                                                                                                                                                                                  {                                                                                                                                                                                                                                                "path": "\/var\/www\/owncloud\/apps",                                                                                                                                                                                                        "url": "\/apps",                                                                                                                                                                                                                             "writable": false                                                                                                                                                                                                                        },                                                                                                                                                                                                                                           {                                                                                                                                                                                                                                                "path": "\/var\/www\/owncloud\/apps-external",                                                                                                                                                                                               "url": "\/apps-external",                                                                                                                                                                                                                    "writable": true                                                                                                                                                                                                                         }                                                                                                                                                                                                                                        ],                                                                                                                                                                                                                                           "installed": true,                                                                                                                                                                                                                           "instanceid": "ocujg2yvld86",                                                                                                                                                                                                                "theme": "",                                                                                                                                                                                                                                 "memcache.local": "\\OC\\Memcache\\APCu",                                                                                                                                                                                                    "memcache.locking": "\\OC\\Memcache\\Redis",                                                                                                                                                                                                 "redis": {                                                                                                                                                                                                                                       "host": "localhost",                                                                                                                                                                                                                         "port": 6379                                                                                                                                                                                                                             },                                                                                                                                                                                                                                           "loglevel": 2,                                                                                                                                                                                                                               "maintenance": false,                                                                                                                                                                                                                        "singleuser": false                                                                                                                                                                                                                      }                                                                                                                                                                                                                                        }                                    

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_external_dropbox: 1.2.0
  - files_mediaviewer: 1.0.4
  - 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_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: No

Are you using encryption: no

Are you using an external user-backend, if yes which one: No

Client configuration

Browser: Firefox

Operating system: Windows

After further debugging, it seems the “hard refresh” in the browser is the key to getting the files to appear, rather than the rescan.

I suspect two interlinked issues here:

  1. A client-side bug in Firefox where files do not appear without a hard refresh (perhaps some weird caching error?).
  2. A server-side issue where for some reason the file list goes out of date?

I’ve disabled the cron job and I update this post with some answers as and when I find them.

1 Like

After further debugging.

  1. The client-side bug only exists in firefox but not in chrome.
  2. The file list only needs to be refreshed after a reboot.

I suspect issue 2 occurs when owncloud tries to access the file system before I decrypt the partition, so this is a non-issue and that part is closed, IMHO.

Issue 1 looks like a firefox bug. Possibly related to the following
a) My Files Not Showing In Firefox Browser

I have opened https://github.com/owncloud/core/issues/38451 to track this issue and for completeness.

1 Like