Lost access to group folders files

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 32.0.5
  • Operating system and version (e.g., Ubuntu 24.04):
    • Debian 13
  • Web server and version (e.g, Apache 2.4.25):
    • Apache
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • Apache 2.4.66
  • PHP version (e.g, 8.3):
    • 8.2.29
  • Is this the first time you’ve seen this error? (Yes / No):
    • yes
  • When did this problem seem to first start?
    • After migrating from cephfs to virtiofs
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • VM in Proxmox
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • Cloudflare

Summary of the issue you are facing:

For some time I’ve used cephfs and mounted it in nextcloud, but since I had many issues with it I decided to move to virtiofs. Everything went smoothly except for group folders files. Every file in every team folder not to be found using web interface! When I started to dig into my server I found that these files are present in __groupfolders or something…

Configuration

Nextcloud

The output of occ config:list system :

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "nextcloud.jeansibelius.net",
        ],
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "32.0.3.2",
        "overwrite.cli.url": "nothing here:)",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "maintenance": false,
        "loglevel": 0,
        "maintenance_window_start": 1,
        "theme": "",
        "config_preset": 2
    }
}

Apps

The output of occ app:list :

Enabled:
  - activity: 5.0.0-dev.0
  - admin_audit: 1.22.0
  - app_api: 32.0.0
  - bruteforcesettings: 5.0.0-dev.0
  - calendar: 6.1.5
  - circles: 32.0.0
  - cloud_federation_api: 1.16.0
  - collectives: 3.5.0
  - comments: 1.22.0
  - contacts: 8.3.1
  - contactsinteraction: 1.13.1
  - cookbook: 0.11.5
  - dashboard: 7.12.0
  - dav: 1.34.2
  - deck: 1.16.3
  - drawio: 3.1.2
  - federatedfilesharing: 1.22.0
  - federation: 1.22.0
  - files: 2.4.0
  - files_accesscontrol: 3.0.2
  - files_antivirus: 6.1.0
  - files_confidential: 4.0.0
  - files_downloadlimit: 5.0.0-dev.0
  - files_pdfviewer: 5.0.0-dev.0
  - files_reminders: 1.5.0
  - files_retention: 3.0.0
  - files_sharing: 1.24.1
  - files_trashbin: 1.22.0
  - files_versions: 1.25.0
  - firstrunwizard: 5.0.0-dev.0
  - forms: 5.2.4
  - gdatavaas: 32.1.1
  - gpxpod: 7.2.4
  - groupfolders: 20.1.9
  - guests: 4.6.0
  - integration_giphy: 2.2.0
  - integration_github: 3.2.2
  - integration_gitlab: 4.0.0
  - integration_homeassistant: 0.0.7
  - integration_mastodon: 4.0.0
  - logreader: 5.0.0-dev.0
  - lookup_server_connector: 1.20.0
  - nextcloud_announcements: 4.0.0-dev.0
  - notes: 4.13.0
  - notifications: 5.0.0-dev.0
  - notify_push: 1.3.0
  - oauth2: 1.20.0
  - password_policy: 4.0.0-dev.0
  - photos: 5.0.0-dev.1
  - privacy: 4.0.0-dev.0
  - profile: 1.1.0
  - provisioning_api: 1.22.0
  - recognize: 10.0.7
  - recommendations: 5.0.0-dev.0
  - related_resources: 3.0.0-dev.0
  - richdocuments: 9.0.2
  - richdocumentscode: 25.4.802
  - serverinfo: 4.0.0-dev.0
  - settings: 1.15.1
  - sharebymail: 1.22.0
  - spreed: 22.0.8
  - support: 4.0.0-dev.0
  - survey_client: 4.0.0-dev.0
  - suspicious_login: 10.0.0-dev.0
  - systemtags: 1.22.0
  - tables: 1.0.3
  - tasks: 0.17.1
  - text: 6.0.1
  - theming: 2.7.0
  - twofactor_backupcodes: 1.21.0
  - twofactor_nextcloud_notification: 6.0.0-dev.0
  - updatenotification: 1.22.0
  - user_status: 1.12.0
  - viewer: 5.0.0-dev.0
  - weather_status: 1.12.0
  - webhook_listeners: 1.3.0
  - whiteboard: 1.5.4
  - workflowengine: 2.14.0
Disabled:
  - encryption: 2.20.0
  - files_external: 1.24.0
  - twofactor_totp: 14.0.0
  - user_ldap: 1.23.0

On server:

user@nextcloud:~$ sudo ls /path/to/datadir/should/I/reveal/it?/nextcloud/__groupfolders/3
 00000_TO_DO
 0_TO-DO_Audiobooks
 0_TO-DO_Movies
 0_TO-DO_Music
 0_TO-DO_Seriale
 Album
 Audiobooks
 isos
 Movies
 Movies_iso
 Music
 Noh
 Seriale
user@nextcloud:~$

On browser:

I’ll be very grateful for any help!

Best,
Miro

I can also see in the web interface that there are some files:

Also I can’t create any files or folders inside those folders. I get an error when I try to create a folder:

Two things:

  • Check your Nextcloud Server log for additional details (as described in the support template)
  • Can you elaborate on the specific process you used to move your datadirectory and its contents? For example, did the /path/to/datadirectory change?

I tried to browse logs using web interface and terminal it seems to me that there aren’t any logs from that date (2nd of February)…

I also don’t understand very well how to copy them, can you help me out?

Sure. nextcloud cephfs has, among usual proxmox folders (e.g. dump), folder named nextcloud, this is the datadir for nextcloud.

Using ceph I mounted it to /mnt/cephfs, so data path looked like this: /mnt/cephfs/nextcloud.

I mapped /mnt/pve/nextcloud/nextcloud on proxmox machine and added this mapped dir to a vm. On the vm I mounted it as /mnt/nextcloud. This resulted in shorter data path: /mnt/nextcloud.

Maybe it has something to do with team folders application?