Files are disappearing until occ files:scan --all

Support intro

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 33.0.2
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu 24.04.4 LTS
  • Web server and version (e.g, Apache 2.4.25):
    • Apache/2.4.58 (Ubuntu)
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • n/a
  • PHP version (e.g, 8.3):
    • PHP 8.3.6
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • Since a few weeks ago
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Manual installation
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

When editing files via the NextCloud App sometimes folder disappears until repair.

Steps to replicate it (hint: details matter!):

  1. Upload a few files

  2. Login to the web app

  3. See files and folders missing

  4. Repair by occ files:scan --all

  5. Everything is fine

Log entries

Nextcloud

Too many entries - unsure which is relevant

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

Safari Version 26.4 (21624.1.16.11.4)

Web server / Reverse Proxy

The output of your Apache/nginx/system log in /var/log/____:

n/a - Apache as Front

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

Too many entries - unsure which is relevant

Apps

The output of occ app:list (if possible).

Enabled:

  • bruteforcesettings: 6.0.0
  • camerarawpreviews: 0.9.0
  • circles: 33.0.0
  • cloud_federation_api: 1.17.0
  • comments: 1.23.0
  • contactsinteraction: 1.14.1
  • dav: 1.36.0
  • deck: 1.17.0
  • federatedfilesharing: 1.23.0
  • federation: 1.23.0
  • files: 2.5.0
  • files_downloadlimit: 5.1.0
  • files_pdfviewer: 6.0.0
  • files_reminders: 1.6.0
  • files_sharing: 1.25.2
  • files_trashbin: 1.23.0
  • files_versions: 1.26.0
  • groupfolders: 21.0.7
  • logreader: 6.0.0
  • lookup_server_connector: 1.21.0
  • nextcloud_announcements: 5.0.0
  • notes: 4.13.1
  • notifications: 6.0.0
  • oauth2: 1.21.0
  • password_policy: 5.0.0
  • photos: 6.0.0
  • previewgenerator: 5.13.0
  • privacy: 5.0.0
  • profile: 1.2.0
  • provisioning_api: 1.23.0
  • related_resources: 4.0.0
  • serverinfo: 5.0.0
  • settings: 1.16.0
  • sharebymail: 1.23.0
  • suspicious_login: 11.0.0
  • text: 7.0.0
  • theming: 2.8.0
  • twofactor_backupcodes: 1.22.0
  • twofactor_nextcloud_notification: 7.0.0
  • twofactor_totp: 15.0.0
  • updatenotification: 1.23.0
  • user_status: 1.13.0
  • viewer: 6.0.0
  • webhook_listeners: 1.5.0
  • workflowengine: 2.15.0
    Disabled:
  • activity: 6.0.0 (installed 4.0.0)
  • admin_audit: 1.23.0
  • app_api: 33.0.0 (installed 32.0.0)
  • dashboard: 7.13.0 (installed 7.11.0)
  • encryption: 2.21.0
  • files_external: 1.25.1
  • firstrunwizard: 6.0.0 (installed 3.0.0)
  • recommendations: 6.0.0 (installed 3.0.0)
  • support: 5.0.0 (installed 2.0.0)
  • survey_client: 5.0.0 (installed 2.0.0)
  • systemtags: 1.23.0 (installed 1.20.0)
  • testing: 1.23.0
  • user_ldap: 1.24.0
  • weather_status: 1.13.0 (installed 1.10.0)