The Basics
- Nextcloud Server version: Nextcloud Hub 10 (31.0.7)
- Operating system and version: Linux 6.12.24-Unraid x86_64 (Docker
linuxserver/nextcloudrunning in unraid 7.1.4) - Web server and version: no clue
- Reverse proxy and version: nginx 1.28.0
- PHP version: 8.4.10
- Is this the first time you’ve seen this error? No
- When did this problem seem to first start? Always been this way
- Installation method: Docker install in unraid
- Are you using CloudfIare, mod_security, or similar? No
Summary of the issue you are facing:
All recent files and files_versions are stored in a SSD cache drive in unraid and older files are stored in the unraid HDD array. That way, files modified often are only impacting the cache SSD, letting the HDD spung down.
When a file is updated (i.e. Nextcloud syncs a file from Windows machine), a new version is created on the SSD cache (as it should) and the older version is removed which is stored in the HDD array, spinning up the drive(s).
Is there a way to postpone the deleting of file versions to a scheduled background job (say at night)?
Steps to replicate it (hint: details matter!):
- Modify a file
- New file is written on SSD cache
- Old file version is removed from HDD array
Logs
Unraid file monitoring
Cache
7/23/2025, 12:54:46 PM OPEN /mnt/cache/nextcloud/guillaume/files/Documents/testFile.txt Cache
7/23/2025, 12:54:46 PM WRITE /mnt/cache/nextcloud/guillaume/files/Documents/testFile.txt Cache
7/23/2025, 12:54:46 PM WRITE /mnt/cache/nextcloud/guillaume/files/Documents/testFile.txt Cache
7/23/2025, 12:54:46 PM CHMOD /mnt/cache/nextcloud/guillaume/files/Documents/testFile.txt Cache
disk1
7/23/2025, 12:55:03 PM REMOVE /mnt/disk1/nextcloud/guillaume/files_versions/Documents/testFile.txt.v1753226828 disk1
7/23/2025, 12:55:03 PM REMOVE /mnt/disk1/nextcloud/guillaume/files_versions/Documents/testFile.txt.v1753130989 disk1
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!):
{
"system": {
"memcache.local": "\\OC\\Memcache\\APCu",
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"192.168.0.11:23443",
"192.168.0.11:23380",
"cloud.mydomain.name",
"192.168.0.11"
],
"dbtype": "mysql",
"version": "31.0.7.1",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"trusted_proxies": "***REMOVED SENSITIVE VALUE***",
"overwrite.cli.url": "https:\/\/cloud.mydomain.name\/",
"overwritehost": "cloud.mydomain.name",
"overwriteprotocol": "https",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_smtpmode": "smtp",
"mail_sendmailmode": "smtp",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtpauthtype": "LOGIN",
"mail_smtpauth": 1,
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpsecure": "ssl",
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "465",
"app_install_overwrite": [
"groupfolders",
"facerecognition"
],
"maintenance": false,
"theme": "",
"loglevel": 0,
"default_phone_region": "FR",
"filelocking.enabled": "true",
"memcache.locking": "\\OC\\Memcache\\APCu",
"upgrade.disable-web": true,
"has_rebuilt_cache": true,
"memories.exiftool": "\/config\/www\/nextcloud\/apps\/memories\/bin-ext\/exiftool-amd64-musl",
"memories.vod.path": "\/config\/www\/nextcloud\/apps\/memories\/bin-ext\/go-vod-amd64",
"memories.vod.ffmpeg": "\/usr\/bin\/ffmpeg",
"memories.vod.ffprobe": "\/usr\/bin\/ffprobe",
"memories.vod.disable": false,
"trashbin_retention_obligation": "auto, 30"
}
}
Apps
The output of occ app:list (if possible).
Enabled:
- activity: 4.0.0
- app_api: 5.0.2
- bruteforcesettings: 4.0.0
- calendar: 5.3.6
- circles: 31.0.0
- cloud_federation_api: 1.14.0
- comments: 1.21.0
- contacts: 7.2.0
- contactsinteraction: 1.12.0
- cospend: 3.0.11
- dashboard: 7.11.0
- dav: 1.33.0
- facerecognition: 0.9.70
- federatedfilesharing: 1.21.0
- federation: 1.21.0
- files: 2.3.1
- files_downloadlimit: 4.0.0
- files_pdfviewer: 4.0.0
- files_reminders: 1.4.0
- files_sharing: 1.23.1
- files_trashbin: 1.21.0
- files_versions: 1.24.0
- firstrunwizard: 4.0.0
- forms: 5.1.2
- groupfolders: 19.1.2
- logreader: 4.0.0
- lookup_server_connector: 1.19.0
- nextcloud_announcements: 3.0.0
- notifications: 4.0.0
- oauth2: 1.19.1
- password_policy: 3.0.0
- photos: 4.0.0
- previewgenerator: 5.9.0
- privacy: 3.0.0
- profile: 1.0.0
- provisioning_api: 1.21.0
- recommendations: 4.0.0
- related_resources: 2.0.0
- richdocuments: 8.7.2
- serverinfo: 3.0.0
- settings: 1.14.0
- sharebymail: 1.21.0
- support: 3.0.0
- survey_client: 3.0.0
- systemtags: 1.21.1
- text: 5.0.0
- theming: 2.6.1
- twofactor_backupcodes: 1.20.0
- user_status: 1.11.0
- viewer: 4.0.0
- weather_status: 1.11.0
- webhook_listeners: 1.2.0
- workflowengine: 2.13.0
Disabled:
- admin_audit: 1.21.0
- carnet: 0.25.6 (installed 0.25.4)
- drawio: 3.1.0 (installed 3.1.0)
- encryption: 2.19.0
- files_external: 1.23.0
- files_rightclick: 1.6.0 (installed 1.6.0)
- group_everyone: 0.1.17 (installed 0.1.17)
- maps: 1.5.0 (installed 1.4.0)
- memories: 7.6.1 (installed 7.6.1)
- onlyoffice: 9.9.0 (installed 9.9.0)
- recognize: 9.0.3 (installed 9.0.3)
- spreed: 21.1.2 (installed 21.1.2)
- suspicious_login: 9.0.1
- twofactor_nextcloud_notification: 5.0.0
- twofactor_totp: 13.0.0-dev.0
- updatenotification: 1.21.0 (installed 1.17.0)
- user_ldap: 1.22.0