Skip to content

Client suddenly re-downloads all files #747

Closed

Description

@nicokaiser

Expected behaviour

No files were changed => I don't expect the client to do anything

Actual behaviour

After some weeks of usage, the ownCloud Sync Client suddenly decided to re-download everything in my synced folders on both of my machines today.

The files did not change on either side, but all files are downloaded again.

I have no idea why this happens and why the client did not check the MD5 sums to see that everything is already there...

Server configuration

Operating system: Linux 3.2.0 (Debian 6.0)

Web server: nginx 1.4.1-1~dotdeb.0

Database: MySQL 5.1.49-3

PHP version: 5.4.17-1~dotdeb.0

ownCloud version: 5.0.8 RC

Storage backend: files

Client configuration

Client version: 1.3.0

Operating system: Mac OS X 10.8.4

OS language: en

Installation path of client: /Applications/ownCloud.app

Logs

(see below for client log)

Nothing in owncloud.log on the server (loglevel INFO)

Nothing noticable on the nginx/PHP logs

Activity

  1. nicokaiser commented on Jul 9, 2013

    @nicokaiser
    Author

    Logfile (sorry, I had to restart the client after downloading began, so the beginning may be missing):

    https://gist.github.com/nicokaiser/c508c63105d7547c84a8

  2. danimo commented on Jul 10, 2013

    @danimo
    Contributor

    @nicokaiser: did you do anything on the server side? The server seems to have assigned new e-tags (unique IDs) to the file, so the client must assume they all have changed.

  3. nicokaiser commented on Jul 14, 2013

    @nicokaiser
    Author

    @danimo No changes on the server that I was aware of. I'll observe if this happens again, I updated to 5.0.8 in the meantime.

  4. nicokaiser commented on Jul 27, 2013

    @nicokaiser
    Author

    This has happened again, mirall once again decided to re-download everything. I added one file ("2013-07-20-5850-Hochzeit,large.jpg" in the logfile), and then the client started to download all files:

    https://gist.github.com/nicokaiser/6dbe04d13d94cfbc8e78

    This is really annoying, as it wastes lots of bandwith and gives the feeling of the client not being able to detect changes (or the lack of) reliably.

  5. mmrose commented on Jul 31, 2013

    @mmrose

    I see the same behaviour some times on Windows.

    Where can I find the logs on Windows and are they enabled by default?

  6. dragotin commented on Aug 7, 2013

    @dragotin
    Contributor

    @nicokaiser here is an example snippet from the logfile:

    07-27 10:51:19:602 oc_module: owncloud_stat ownclouds://cloud.kaiser.me/remote.php/webdav/clientsync/Camera Uploads/WhatsApp/Totoro Bento.jpg called
    07-27 10:51:19:602 csync_walker: file: ownclouds://cloud.kaiser.me/remote.php/webdav/clientsync/Camera Uploads/WhatsApp/Totoro Bento.jpg
    07-27 10:51:19:602 _csync_detect_update: ==> file: Camera Uploads/WhatsApp/Totoro Bento.jpg - hash 5544170440339423313, mtime: 1371627419
    07-27 10:51:19:602 _csync_detect_update: Database entry found, compare: 1371627419 <-> 1371627419, md5: 51f3872b4c12c <-> 51f177086c28d
    07-27 10:51:19:602 _csync_detect_update: file: Camera Uploads/WhatsApp/Totoro Bento.jpg, instruction: INSTRUCTION_EVAL <<=
    
  7. dragotin commented on Aug 7, 2013

    @dragotin
    Contributor

    in the fourth line above we see that the ETags (named md5, which is misleading) changed. That happens if the file changes on server side. BUT what we also see that the modification time has not changed. That is a smell, because if the file changes, the modtime also changes.

    What could be the reason that the ETag on server side changed, but the modtime not? @icewind1991 , @MTGap do you have an idea? We need your help here.

  8. dragotin commented on Aug 7, 2013

    @dragotin
    Contributor

    @nicokaiser Something unrelated: did you by chance work with a mobile client on the same server/data? Thx.

  9. MTGap commented on Aug 7, 2013

    @MTGap

    The only thing I can think of right now is that our WebDAV connector allows the ETag property to be changed, exclusive of any mtime change. Does the desktop client, or any of our other clients, change the ETag or LastModified properties?

    Otherwise the ETag change should only occur with a file scan that happens when a mtime change is detected.

  10. nicokaiser commented on Aug 13, 2013

    @nicokaiser
    Author

    @dragotin I installed the ownCloud client on iOS, however did not use it in the given timespan, so this should not have had any influence.

  11. icewind1991 commented on Aug 13, 2013

    @icewind1991

    This might be fixed with owncloud/core#4391

  12. ogoffart commented on Dec 10, 2013

    @ogoffart
    Contributor

    Most likely a duplicate of #994

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions