-
-
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
Large external storage deletions can fill data drive #7223
Comments
Further investigation here shows that my trash and version file deletion doesn't seem to be working at all...at least, over the space of a few days the filesystem can still fill up (eg, the 50% and other checks aren't kicking in). Any way to debug why this is happening? I don't see any selinux or other complaints about an unlink fails. I do see this: type=AVC msg=audit(1516401061.514:11320): avc: denied { getattr } for pid=23973 comm="find" path="/usr/sbin/crond" dev="xvda1" ino=395861 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:crond_exec_t:s0 tclass=file But it's not happening every 15 minutes, so doesn't seem like a find failing to look for old files. |
I think expected behavior is file deletions on external storage would go to a trashbin on the external storage. I think simplest would be to let the user/admin define a location for the trash when creating the external storage. |
Just hit this, VM drive got filled to 100% while I was making changes to files in S3. No idea how I'm going to unclog the mess this made. |
Hi, I think this is rather a feature request to allow an external direct delete or allowing to create a hidden trash folder on the external storage directly. |
Duplicate of #14436 Let's consolidate discussions related to this there. |
Steps to reproduce
Expected behaviour
Hmm. Well, one could argue that either the files should fail to be thrown out, an alert should be generated, with a "Yes, proceed" dialog, or something else? But...it probably shouldn't wedge the server.
Actual behaviour
Nextcloud copies everything into the trash bin until space runs out on the filesystem. Server is then wedged and requires manual intervention (SSH in to clean stuff) and a reboot or restart.
General server configuration
Operating system: Linux owncloud 3.10.0-693.5.2.el7.x86_64 #1 SMP Fri Oct 20 20:32:50 UTC 2017 x86_64
Web server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.0.24 (apache2handler)
Database: mysql 10.1.19
PHP version: 7.0.24
PHP-modules loaded
Nextcloud configuration
Nextcloud version: 12.0.3 - 12.0.3.3
**Updated from an older Nextcloud/ownCloud or fresh install: Was upgraded
Where did you install Nextcloud from: Downloaded from Nextcloud directly
Are you using external storage, if yes which one: Array
(
[0] => \OC\Files\Storage\Local
[1] => \OCA\Files_External\Lib\Storage\FTP
[2] => \OC\Files\Storage\DAV
[3] => \OCA\Files_External\Lib\Storage\OwnCloud
[4] => \OCA\Files_External\Lib\Storage\SFTP
[5] => \OCA\Files_External\Lib\Storage\AmazonS3
[6] => \OCA\Files_External\Lib\Storage\Dropbox
[7] => \OCA\Files_External\Lib\Storage\Google
[8] => \OCA\Files_External\Lib\Storage\Swift
[9] => \OCA\Files_External\Lib\Storage\SFTP
)
Are you using encryption: no
Are you using an external user-backend, if yes which one: YOUR ANSWER HERE (LDAP/ActiveDirectory/Webdav/...)
Signing status
Enabled apps
Disabled apps
Content of config/config.php
Client configuration
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/604.3.5 (KHTML, like Gecko) Version/11.0.1 Safari/604.3.5
Operating system: CentOS
Logs
Web server error log
Nextcloud log (data/nextcloud.log)
Browser log
The text was updated successfully, but these errors were encountered: