You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Sync stopped after ownCloud runs out of disc space, even if old files were deleted #5346
If you sync a Mac folder with the Sync-Client to the ownCloud and the ownCloud runs out of disc space, the sync is stopped and the remaining files are marked with a yellow dot in in the macOS Finder folder.
As far as well. When you now empty space by deleting old files on the macOS sync-folder, the files are also deleted in the ownCloud folder on the Server and the free disc space is recalculated and updated.
BUT the remaining files aren’t synced - even if you pause and restart the process. ONLY if you rename the parent folder, the remaining files are synced.
Expected behaviour
After freeing disk space on the ownCloud the remaining files should be synced again.
Actual behaviour
Remaining files aren’t synced - even if you pause and restart the process.
Steps to reproduce
Fill up your ownCloud Disk space
Try to sync additional files
Remove other files locally to free ownCloud Disk space
Skipped Files remain not be synced
Server configuration
ownCloud version: 9.0.5
Client configuration
Client version: 2.2.4
Operating system: macOS 10.12
Installation path of client: /Applications/owncloud.app
@jfqd I can reproduce this. The file is blacklisted because of insufficient storage in the server stays like that until you modify its name/path (e.g. as you pointed changing the parent folder name).
The error that we display now when an upload fails due to file size being bigger than the remaining space available also could be improved:
The item is not synced because of previous errors: Error downloading https://XXXX/remote.php/webdav/60M-chunking-1673196607-7-1 - server replied: Insufficient Storage (Sabre\DAV\Exception\InsufficientStorage)
Just encountered with another scenario that reproduces this condition: if an account has a quota N and reaches it, any additional files the sync client tries to upload are blacklisted as server throws the Exception\InsufficientStorage, If the admin then widens the quota to N+m, the sync keeps blacklisting those extra items even if the whole local folder space in disk is < N+m.
tl;dr: some items in the blacklist should be updated upon changes in the quota/storage used in the server.
@SamuAlfageme Thanks for the analysis. All blacklisted files will be retried, so the files should be uploaded eventually. The blacklist times are approximately 25s, 2min, 10min, 1h, 5h, 24h - so if the file has already been unsuccessfully tried 6 times, you'll have to wait for a day for the next attempt.
That said, I'm not convinced it's correct to temporarily blacklist files with insufficent-storage errors. This is a problem that users should be made aware off because they probably need to do something about it. @ogoffart@guruz@jturcotte Do you see a compelling reason to blacklist these errors?
@ckamm oh, those blacklist retry times seem quite exponential 😄 (don't know how time-consuming this operation can be, but 24h seem extreme).
I think blacklist could do fine for this specific issue as long as it's handled wisely: reviewing the BL upon local changes for the first scenario, and based on a quota change (that the client notices almost immediately) for the second:
I think maybe the fix is a bit extreme. We still want to blacklist insuficient storage if the users did not do anything to solve the problem (removing files or asking the admin)
Otherwise the client will continue to upload the file over and over again, wasting bandwidth.
I suggest instead to limit the blacklist fo 5h max. Or try to be smarter and detect the Insufficient Storage before it happens with the quota check. (like we do already for the hardrive space on the client)
Working as expected, not blacklisted and when size is freed on the server the sync starts.
However, in the second scenario, when there's a quota modification (like in #5346 (comment)) the sync is not rescheduled (we could easily Force sync now on detection of this event, since this does the magic)
Also, the message is still not that user-friendly (involving chunking, paths, etc):
.../webdav/60M-chunking-818654934-7-2 - server replied: Insufficient Storage (Sabre\DAV\Exception\InsufficientStorage)
Activity
SamuAlfageme commentedon Dec 1, 2016
@jfqd I can reproduce this. The file is blacklisted because of insufficient storage in the server stays like that until you modify its name/path (e.g. as you pointed changing the parent folder name).
The error that we display now when an upload fails due to file size being bigger than the remaining space available also could be improved:
SamuAlfageme commentedon Dec 5, 2016
Just encountered with another scenario that reproduces this condition: if an account has a quota N and reaches it, any additional files the sync client tries to upload are blacklisted as server throws the
Exception\InsufficientStorage, If the admin then widens the quota to N+m, the sync keeps blacklisting those extra items even if the whole local folder space in disk is < N+m.tl;dr: some items in the blacklist should be updated upon changes in the quota/storage used in the server.
ckamm commentedon Dec 14, 2016
@SamuAlfageme Thanks for the analysis. All blacklisted files will be retried, so the files should be uploaded eventually. The blacklist times are approximately 25s, 2min, 10min, 1h, 5h, 24h - so if the file has already been unsuccessfully tried 6 times, you'll have to wait for a day for the next attempt.
That said, I'm not convinced it's correct to temporarily blacklist files with insufficent-storage errors. This is a problem that users should be made aware off because they probably need to do something about it. @ogoffart @guruz @jturcotte Do you see a compelling reason to blacklist these errors?
SamuAlfageme commentedon Dec 14, 2016
@ckamm oh, those blacklist retry times seem quite exponential 😄 (don't know how time-consuming this operation can be, but 24h seem extreme).
I think blacklist could do fine for this specific issue as long as it's handled wisely: reviewing the BL upon local changes for the first scenario, and based on a quota change (that the client notices almost immediately) for the second:
guruz commentedon Dec 21, 2016
Yes, we can look for the string
InsufficientStorageand then behave differentlyDon't blacklist 507 Insufficent Storage owncloud#5346
ckamm commentedon Jan 3, 2017
@guruz Pull request at #5424
Don't blacklist 507 Insufficent Storage #5346 (#5424)
guruz commentedon Jan 5, 2017
@jfqd Do you want to help out testing this? http://download.owncloud.com/desktop/daily/ownCloud-2.3.0.3936-nightly20170105.pkg
ogoffart commentedon Jan 11, 2017
I think maybe the fix is a bit extreme. We still want to blacklist insuficient storage if the users did not do anything to solve the problem (removing files or asking the admin)
Otherwise the client will continue to upload the file over and over again, wasting bandwidth.
I suggest instead to limit the blacklist fo 5h max. Or try to be smarter and detect the Insufficient Storage before it happens with the quota check. (like we do already for the hardrive space on the client)
SamuAlfageme commentedon Feb 15, 2017
Working as expected, not blacklisted and when size is freed on the server the sync starts.
However, in the second scenario, when there's a quota modification (like in #5346 (comment)) the sync is not rescheduled (we could easily
Force sync nowon detection of this event, since this does the magic)Also, the message is still not that user-friendly (involving chunking, paths, etc):
Revert "Don't blacklist 507 Insufficent Storage #5346 (#5424)"
ckamm commentedon Feb 17, 2017
Patch was reverted. Bad behavior will be adressed as part of #5537