client icon indicating copy to clipboard operation
client copied to clipboard

Owncloud 1.20 infinite sync loop

Open der-gilb opened this issue 13 years ago • 3 comments

Issue: Owncloud 1.20 for Windows client does not stop syncing. Instead, every file is uploaded to the server. Once this has been done the owncloud client states that sync has been completed, but a few seconds later a new sync cycle will start and the whole process starts again. For some reason, the client seems to think that it has to upload every file during every sync cycle.

Result: Constant network traffic between client and server, constant CPU load on server.

Log: This is a example of what happens to each file:

02-06 10:26:39:140 _csync_push_file: Remote repository atomar push enabled for ownclouds://130.XXX.XXX.31/owncloud/remote.php/webdav/clientsync/crypt.bc/9CLYeKXAe0/QEcZwVDd/KgI9wUArkFzAltegceiZ/,9QREYNgB-/Ktg54PEtMUd-5sBw/ZFg9/db0hm7x1hCGKmdC (0).
02-06 10:26:39:140 oc_module: => open called for ownclouds://130.XXX.XXX.31/owncloud/remote.php/webdav/clientsync/crypt.bc/9CLYeKXAe0/QEcZwVDd/KgI9wUArkFzAltegceiZ/,9QREYNgB-/Ktg54PEtMUd-5sBw/ZFg9/db0hm7x1hCGKmdC
02-06 10:26:39:140 oc_module: Stating directory ownclouds://130.XXX.XXX.31/owncloud/remote.php/webdav/clientsync/crypt.bc/9CLYeKXAe0/QEcZwVDd/KgI9wUArkFzAltegceiZ/,9QREYNgB-/Ktg54PEtMUd-5sBw/ZFg9
02-06 10:26:39:140 oc_module: owncloud_stat ownclouds://130.XXX.XXX.31/owncloud/remote.php/webdav/clientsync/crypt.bc/9CLYeKXAe0/QEcZwVDd/KgI9wUArkFzAltegceiZ/,9QREYNgB-/Ktg54PEtMUd-5sBw/ZFg9 called
02-06 10:26:39:375 oc_module: Simple propfind result code 207.
02-06 10:26:39:375 oc_module: Server Date from HTTP header value: Wed, 06 Feb 2013 09:23:16 GMT
02-06 10:26:39:375 oc_module: Ok: Time delta remained (almost) the same: 18446744073709551413.
02-06 10:26:39:375 oc_module: => Errno after fetch resource list for ownclouds://130.XXX.XXX.31/owncloud/remote.php/webdav/clientsync/crypt.bc/9CLYeKXAe0/QEcZwVDd/KgI9wUArkFzAltegceiZ/,9QREYNgB-/Ktg54PEtMUd-5sBw/ZFg9: 0
02-06 10:26:39:375 oc_module: Working on file ZFg9
02-06 10:26:39:375 oc_module:   :> Subtracting -203 from modtime 1353580198
02-06 10:26:39:375 oc_module: STAT result from propfind: ZFg9, mtime: 1353580401
02-06 10:26:39:375 oc_module: Directory of file to open exists.
02-06 10:26:39:375 oc_module: PUT request on /owncloud/remote.php/webdav/clientsync/crypt.bc/9CLYeKXAe0/QEcZwVDd/KgI9wUArkFzAltegceiZ/%2c9QREYNgB-/Ktg54PEtMUd-5sBw/ZFg9/db0hm7x1hCGKmdC!
02-06 10:26:39:375 oc_module: Sendfile handling request type PUT.
02-06 10:26:39:375 oc_module: Put file size: 1827, variable sizeof: 8
02-06 10:26:39:500 oc_module: Request failed, don't take session header.
02-06 10:26:39:500 oc_module: sendfile request failed with http status 507!
02-06 10:26:39:500 _csync_push_file: file: C:/Documents and Settings/removed\ownCloud/crypt.bc/9CLYeKXAe0/QEcZwVDd/KgI9wUArkFzAltegceiZ/,9QREYNgB-/Ktg54PEtMUd-5sBw/ZFg9/db0hm7x1hCGKmdC, command: sendfile, error: No space left on device from errno 28

I guess the last line is important - it says 'error: No space left on device from errno 28', but neither the server hdd nor the client hdd are full.

I also checked the network traffic, and the traffic generated in one syncing cycle matches the data volume of the owncloud folder. I.e. the data actually is uploaded to the server.

der-gilb avatar Feb 06 '13 10:02 der-gilb

Update: It seems that the reason for this problem was that the default user quota had accidently been set to 2 B, instead of 2 GB. This explains the 'error: No space left on device from errno 28' message. Closing Issue for now.

der-gilb avatar Feb 06 '13 15:02 der-gilb

I feel this should be revisited since it does not make any sense for the client keep reuploading files and hitting HTTP 507, effectively consuming all available upstream bandwidth 24/7. (in case the user is out of quota)

petrihelenius avatar Feb 17 '13 10:02 petrihelenius

This is already filed as #173

danimo avatar Feb 17 '13 10:02 danimo