Skip to content

Repetitives sync with Mac Client #7641

Closed

Description

@piotr58

Hi,

My client configuration:

  • Low ADSL connection (less than 1 Mb)
  • Mac OS X 10.9.2
  • Mac OC Client 1.5.2 (build 2335)

Our Server configuration:

  • Xen VM on Debian 7 wheezy
  • 8 Gb RAM, 2 CPU dedicated
  • OC 6.0.1-1

My deposit:

  • about 3 Gb size
  • about 8000 files and 1900 directories

Repetitives sync
That's the principal problem. Every day, all my deposit (3 Gb) is download again and again. Even if none file were modify???

An example of local log message (with --logwindow paramètre):

...................
03-09 10:55:46:506 "INSERT OR REPLACE INTO downloadinfo (path, tmpfile, etag, errorcount) VALUES ( ? , ?, ? , ? )" "Partages-Piotr/MTD/MAJ Servers.rtf" "Partages-Piotr/MTD/.MAJ Servers.rtf.~6058ed8" "52e21a6b35704" 0 
03-09 10:55:46:506 Transaction Start  "download file start" 
03-09 10:55:46:695 Content encoding ist <empty> with status 200
03-09 10:55:47:309 FolderWatcherPrivate::callback by OS X 
03-09 10:55:47:309 void Mirall::FolderWatcher::changeDetected(const QString&) "/Users/Shared/OwnCloud_plm/" 
03-09 10:55:47:570 "INSERT OR REPLACE INTO metadata (phash, pathlen, path, inode, uid, gid, mode, modtime, type, md5, fileid) VALUES ( ? , ?, ? , ? , ? , ? , ?,  ? , ? , ?, ? )" -4868438229748282472 34 "Partages-Piotr/MTD/MAJ Servers.rtf" 30978258 0 0 0 "1368959621" "0" "52e21a6b35704" "0015097750bf3dbe239c8" 
03-09 10:55:47:570 "DELETE FROM downloadinfo WHERE path=?" "Partages-Piotr/MTD/MAJ Servers.rtf" 
03-09 10:55:47:570 Transaction Start  "download file start2" 
03-09 10:55:47:571 void Mirall::CSyncThread::transferCompleted(const Mirall::SyncFileItem&) "Partages-Piotr/MTD/MAJ Servers.rtf" 4 "" 
## ...................

It's not an isolate case. In this download session, about 500Mb were downloads without any real reason.
This file is an old one, not modify but download: why?

There is no message on owncloud.log file. But I can give an week report of our Apache server which only serve OC. I'm the only user at this time. So, here is our logwatch week report:

###### ############# Logwatch 7.4.0 (05/02/12) ####################


   Processing Initiated: Wed Mar  5 07:40:12 2014
   Date Range Processed: since -7 days
                         ( 2014-Feb-26 / 2014-Mar-05 )
                         Period is day.
   Detail Level of Output: 5
   Type of Output/Format: mail / text
   Logfiles for Host: owncloud

###### ############################################################


................
--------------------- httpd Begin ------------------------ 

53209.78 MB transferred in 278750 responses  (1xx 0, 2xx 268919, 3xx 411, 4xx 9416, 5xx 4) 
    53248 Images (19216.19 MB),
    25946 Documents (21300.72 MB),
     5596 Archives (3384.95 MB),
       99 Sound files (2513.79 MB),
       21 Movies files (1237.26 MB),
       30 Windows executable files (498.13 MB),
    94842 Content pages (563.16 MB),
        3 Redirects (0.01 MB),
       16 Program source files (0.02 MB),
    98949 Other (4495.55 MB) 
## .................................

Elsewhere, none of users have load files. This server is on test procedure and only local test users can load files. Their is few real external traffic. I'm the principal user with only 3 Gb deposit, not 50!!!

Is someone have an explanation?

Activity

  1. PVince81 commented on Mar 10, 2014

    @PVince81
    Contributor
  2. dragotin commented on Mar 10, 2014

    @dragotin
    Contributor

    Ok, I added this patch to the nightlies:

    Index: debian.control
    ===================================================================
    --- debian.control      (revision 272)
    +++ debian.control      (working copy)
    @@ -7,7 +7,7 @@
    
     Package: owncloud
     Architecture: all
    -Depends: ${misc:Depends}, apache2 | httpd, php5, php5-mysql, php5-sqlite, php5-common, php5-gd, php-xml-parser, ntp | time-daemon
    +Depends: ${misc:Depends}, apache2 | httpd, php5, ,php5-mysql | php5-mysqli | php5-mysqlnd, php5-sqlite, php5-common, php5-gd, php-xml-parser, ntp | time-daemon
     Recommends: mysql-server | php5-sqlite, clamav | clamav-daemon, curl, exim4 | mail-transport-agent
    
  3. dragotin commented on Mar 11, 2014

    @dragotin
    Contributor

    @RealRancor yes, absolutely, thanks for notifying.

  4. piotr58 commented on Mar 16, 2014

    @piotr58
    Author

    I replaced yesterday php-mysql by php-mysqlnd on our server as you seem to recommend.
    It seems to work better but I still have incomprehensible, unnecessary and costly downloads in time and bandwidth. Maybe a little bit less ...

    I have no message in "owncloud.log" on server except lines which refer to inexistant files (???) like that:
    {"app":"webdav","message":"Exception: Sabre_DAV_Exception_NotFound: File with name Partages-Piotr/......../Liste Candidatures_mdf20111213_ChA (Copie de rascasse.frouzet en conflit 2012-01-06).xls could not be located","level":4,"time":"2014-03-16T07:14:12+00:00"}

    I just notice that the "conflict" file is write in french (conflit) and concern an Apple office suite...

    During these strange synchronizations some files are deleted unduly on the directory on my computer. While they are still on the server! Nothing says they will not be deleted on the server during the next synchronization!
    With this kind of practice, I actually lost data. For example some image files contained in my documents of the Apple office suite (numbers, pages, keynotes) ... This is not acceptable.

    I wish to have some explanations...

    Best whishes

  5. piotr58 commented on Mar 17, 2014

    @piotr58
    Author

    Hi,

    An example of local log of unatended sync. This file (02 Love Song.mp3) is stores since a long time, I never touch it. Look the log:

    ---- --logwindow log ----------------------------------------------------------
    .......................
    03-17 09:23:58:739 oc_module: owncloud_stat ownclouds://<SEVER>/remote.php/webdav/Partages-Piotr/Musiques/02 Love Song.mp3 called
    03-17 09:23:58:739 csync_walker: file: ownclouds://<SEVER>/remote.php/webdav/Partages-Piotr/Musiques/02 Love Song.mp3
    03-17 09:23:58:739 _csync_detect_update: ==> file: Partages-Piotr/Musiques/02 Love Song.mp3 - hash 7105420082254617972, mtime: 1370103920, fileId: 0016038550bf3dbe239c8
    03-17 09:23:58:739 _csync_detect_update: Database entry found, compare: 1370103920 <-> 1370103920, etag: 531f03373a195 <-> 52d722bcdecd6, inode: 0 <-> 32521574
    03-17 09:23:58:739 _csync_detect_update: file: Partages-Piotr/Musiques/02 Love Song.mp3, instruction: INSTRUCTION_EVAL <<=
    .................................................................
    03-17 09:23:58:767 oc_module: closedir method called 0x608000634820!
    03-17 09:23:58:767 csync_ftw:  <= Closing walk for ownclouds://<SEVER>/remote.php/webdav with read_from_db 0
    03-17 09:23:58:767 csync_update: Update detection for remote replica took 164,71 seconds walking 9437 files.
    03-17 09:23:58:767 <<#### Update end ####################################################  168116 
    .................................................................
    03-17 09:23:58:798 _csync_merge_algorithm_visitor: INSTRUCTION_NONE     file: Partages-Piotr/Musiques/02 Love Song.mp3
    .................................................................
    03-17 09:23:58:927 csync_reconcile: Reconciliation for remote replica took 0,08 seconds visiting 9437 files.
    03-17 09:23:58:937 Transaction Start  "checkConnect" 
    03-17 09:23:58:937 Columns in the current journal:  ("phash", "pathlen", "path", "inode", "uid", "gid", "mode", "modtime", "type", "md5", "fileid") 
    03-17 09:24:02:769     \* csync thread started 
    03-17 09:24:02:769 Folder in overallStatus Message:  Mirall::Folder(0x104135150)  with name  "ownCloud" 
    03-17 09:24:02:770 Sync state changed for folder  "ownCloud" :  "Sync Running" 
    03-17 09:24:02:770 SocketApi:  Sync state changed 
    03-17 09:24:02:771 SocketApi:  Broadcasting to 0 listeners:  "UPDATE_VIEW" 
    03-17 09:23:58:987  N------N Network Limits changed! 
    03-17 09:23:58:997 "INSERT OR REPLACE INTO downloadinfo (path, tmpfile, etag, errorcount) VALUES ( ? , ?, ? , ? )" "Partages-Piotr/Musiques/02 Love Song.mp3" "Partages-Piotr/Musiques/.02 Love Song.mp3.~41a7" "531f03373a195" 0 
    03-17 09:23:58:997 Transaction Start  "download file start" 
    03-17 09:23:59:184 Content encoding ist <empty> with status 200
    03-17 09:24:14:102 !!! Mirall::CheckQuotaJob created for  QUrl( "https://<SEVER>" )  querying "/" 
    03-17 09:24:14:141 "INSERT OR REPLACE INTO metadata (phash, pathlen, path, inode, uid, gid, mode, modtime, type, md5, fileid) VALUES ( ? , ?, ? , ? , ? , ? , ?,  ? , ? , ?, ? )" 7105420082254617972 40 "Partages-Piotr/Musiques/02 Love Song.mp3" 32523501 0 0 0 "1370103920" "0" "531f03373a195" "0016038550bf3dbe239c8" 
    03-17 09:24:14:141 "DELETE FROM downloadinfo WHERE path=?" "Partages-Piotr/Musiques/02 Love Song.mp3" 
    03-17 09:24:14:141 Transaction Start  "download file start2" 
    03-17 09:24:14:142 void Mirall::CSyncThread::transferCompleted(const Mirall::SyncFileItem&) "Partages-Piotr/Musiques/02 Love Song.mp3" 4 "" 
    
    ## .................................................................
    

    If I understand something to this log:

    • a different checksum is found ==> NSTRUCTION_EVAL
    • the évaluation give ==> "_csync_merge_algorithm_visitor: INSTRUCTION_NONE"
    • but, in fact, it download the file...

    Take a look to the file on my computer:

      $ ls -l OwnCloud_plm/Partages-Piotr/Musiques/02\ Love\ Song.mp3 
      -rw-r--r--  1 piotr  ird  1361559  1 jui  2013 /Users/Shared/OwnCloud_plm/Partages-Piotr/Musiques/02 Love Song.mp3
      $ md5 OwnCloud_plm/Partages-Piotr/Musiques/02\ Love\ Song.mp3 
      MD5 (OwnCloud_plm/Partages-Piotr/Musiques/02 Love Song.mp3) = 46d9037a3dc7c8c6c3321a69b878a125
    

    And this file on our server:

      # ls -la files/Partages-Piotr/Musiques/02\ Love\ Song.mp3 
      -rw-r--r-- 1 www-data www-data 1361559 juin   1  2013 files/Partages-Piotr/Musiques/02 Love Song.mp3
      # md5sum files/Partages-Piotr/Musiques/02\ Love\ Song.mp3
      46d9037a3dc7c8c6c3321a69b878a125  files/Partages-Piotr/Musiques/02 Love Song.mp3
    

    As you can see, their is no differences between theese files!
    Their is no log in "owncloud.log" file after "2014-03-17T08:19:29+00:00" and this sync start at "03-17 09:23:58:739".

    And it's the case for 555 Mb which are not really different...

    I don't understand! If these log can help you... I can also check the MySQL datables but I don't know where to see.

    Best whishes

  6. locked as resolved and limited conversation to collaborators on Nov 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions