-
-
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
Old file versions not removed #3145
Comments
'trashbin_retention_obligation' => 30, This is not really a valid value. Try the value you also have on your 'trashbin_retention_obligation' => '30, 31', |
Ah, this is about versions. Well then the place to check is if the cron runs without issues, you have system cron on (not ajax cron). And then there is |
Thanks for the reply. I've updated the config file as requested and the system still hasn't deleted the old versions. The cron is running every 15 minutes and according to NextCloud this is running successfully. We are not using the AJAX cron. |
@schiessle @icewind1991 Mind to have a look if this is still working and if there are (integration) tests for this use case (deletion of old files versions when quota is reached) available? Thanks |
Ping |
Are you sure the cron job is running successfully? I've noticed that the indicator reports the cron exec times from before I switched to system cron. For system cron you should manually install the cron job as mentioned here. Alternatively you can also run the cron job manually (this should free up some space at least), e.g. : sudo -u www-data php -f /var/www/nextcloud/cron.php (note this can take a long time to complete). |
Just tested and it works here. Make sure that the cron job is properly executed. See the linked documentation above for details. Also check your administrators page for details which cron is set up and if it was executed properly. |
Steps to reproduce
Expected behaviour
As I understand it my configuration should remove files after 31 days, or at the worst case when they are using more than 50% of the users quota.
Actual behaviour
Old versions are left on the server and not deleted.
Server configuration
Operating system: CentOS 7 64bit
Web server: Apache 2.4 with PHP7.0
Database: MySQL 5.6
PHP version: PHP7.0
Nextcloud version: 11.0.0
Updated from an older Nextcloud/ownCloud or fresh install: Updated from older OwnCloud installation
Where did you install Nextcloud from: NextCloud.com
Signing status:
Signing status
Results
List of activated apps:
App list
Enabled:
Disabled:
The content of config/config.php:
Config report
Are you using external storage, if yes which one: local/smb/sftp/...
NFS Share mounted at system level. Nothing configured on external storage app
Are you using encryption: NO
Are you using an external user-backend, if yes which one: NO
Client configuration
Browser: Chrome 55.0.2883.87
Operating system: Windows 10 64bit
Logs
Web server error log
Web server error log
[11-Jan-2017 10:36:48 UTC] PHP Fatal error: Uncaught Error: Access to undeclared static property: OC\Files\Filesystem::$normalizedPathCache in /home/backup/public_html/lib/private/Files/Filesystem.php:806 Stack trace: #0 /home/backup/public_html/lib/private/Files/View.php(2018): OC\Files\Filesystem::normalizePath('/achievingclari...') #1 /home/backup/public_html/lib/private/Files/View.php(1156): OC\Files\View->unlockFile('/SERVER/Shared/...', 1) #2 [internal function]: OC\Files\View->OC\Files\{closure}() #3 /home/backup/public_html/3rdparty/icewind/streams/src/CallbackWrapper.php(109): call_user_func(Object(Closure)) #4 [internal function]: Icewind\Streams\CallbackWrapper->stream_close() #5 {main} thrown in /home/backup/public_html/lib/private/Files/Filesystem.php on line 806Nextcloud log (data/nextcloud.log)
Nextcloud log
Browser log
Browser log
The text was updated successfully, but these errors were encountered: