-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nextcloud 13.0.6: database size exploding, scanning datadir #10956
Comments
Reading the changelog, I suspect this change to cause that behaviour: |
This ideally should never happen, and you should not create or delete files manually from that folder. This is why there are external local storages. If you want to do backup/snapshots, they should be stored outside the data folder. |
So I moved the snapshots to a different directory, and did a "occ files:scan --all", "occ files:cleanup" and manually removed corresponding entries from the SQL database table oc_filecache. But the database still is about 8 times the size it was before the update. |
Check which tables use the most space and then we can check for further help. |
In the meantime I managed to remove all (?) references concering snapshotted files. The size of the database dump returned to normal, however the allocated space on disk is still much higher (but that's most likely a postgresql and no nextcloud topic). |
Correct. That is how DBs works. A vacuum command should help here. Let's close this ticket then. |
Steps to reproduce
Expected behaviour
Cron.php should "process" files in known users directory and leave .snapshots and containing files alone. Never had trouble with this until 13.0.6
Actual behaviour
Cron.php seems to "process" every single file in this directory.
In my case this means processing all snapshots and containing files.
This made my database size explode from 1 GB to 8 GB (process still running after 40 hours)
Server configuration
Operating system:
Ubuntu 18.04 (x86_64)
Web server:
Apache 2.4.29
Database:
Postgresql 10.5
PHP version:
7.2.7
Nextcloud version: (see Nextcloud admin page)
13.0.6
Updated from an older Nextcloud/ownCloud or fresh install:
Updated
Where did you install Nextcloud from:
From source - updated via web-updater
Signing status:
Signing status
``` No errors have been found. ```List of activated apps:
App list
Nextcloud configuration:
Config report
Are you using external storage, if yes which one: local/smb/sftp/...
NO
Are you using encryption: yes/no
NO
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
SAMBA DC (Active Directory) / user_ldap
LDAP configuration (delete this part if not used)
LDAP config
The text was updated successfully, but these errors were encountered: