Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

Another database corruption problem? #247

Closed
sylphio opened this issue Oct 7, 2014 · 12 comments
Closed

Another database corruption problem? #247

sylphio opened this issue Oct 7, 2014 · 12 comments

Comments

@sylphio
Copy link

sylphio commented Oct 7, 2014

Setup : One home computer, one work computer and a s3 repository. Only command line sync.

On the work computer, i am trying to sync a change made on the home computer.
I get this error.

C:\Seb-CloudGame5>sy down
Error: Cannot determine file content for checksum 3d5cbe8caa5a6150a5eee4cca2cc3692c11063e5
Refer to help page using '--help'.

Content of the syncany log

http://tny.cz/fe326ee7

If i try to connect a new folder to the repo using "sy connect / sy down" the down sync fail on the following error.

C:\SEB-CloudGame51>sy down
Error: Checksums do not match: actual 49ecf7f0c83b6830e1d5732a4a8a04c2c01731e6 != expected 69924232a1e9fd71a1451cfcf5696cf72a
3fc684
Refer to help page using '--help'.

@binwiederhier
Copy link
Member

Thanks for reporting! Seems like you attract these types of issues. Like before, can you provide database files and/or local databases and full log files? I know it's a lot to ask every time, but it's the only way to solve these types of issues.

@sylphio
Copy link
Author

sylphio commented Oct 7, 2014

Sure, i will package the three DB. Strangely, i have the simplest usage pattern. I no longer use the daemon to avoid problem, no conccurent up/down and I just use it to pass a savegame back and forth between office and home so the transaction count per day is really low (2-3 each side).

@sylphio
Copy link
Author

sylphio commented Oct 7, 2014

@binwiederhier
Copy link
Member

After briefly looking at this, it looks like this is closely related to #231. But I think this one will be much easier to debug. Thanks for providing the log.

Possible/Likely reason:

  • 1-10-14 14:11:14.342 -- at work -- cleanup (purge database ..030)
  • 1-10-14 21:53:42.995 -- at home -- applies purge database
  • (more steps, to be continued)
  • 7-10-14 11:37:03.288 -- at work -- crash

@binwiederhier
Copy link
Member

I continued analyzing this issue. I still feel that we (possibly @pimotte and I) should talk again about the way that cleanup does things right now to avoid these types of issues entirely instead of fixing one issue after the other. In particular, I would like to discuss if it makes sense to let the CleanupOperating create some kind of snapshot -- a point in time that all clients respect as status quo. Meaning: Database versions that conflict with other database versions that were already part of a cleanup will never conflict. Said differently: A database that existed when a cleanup happend will never disappear or lose a conflict. Good idea?


However, until then here are a few things I discovered:

(a) The checksum causing problems (3d5cbe8caa5a6150a5eee4cca2cc3692c11063e5) was involved in a cleanup by your work computer at 1-10-14 14:11:14.342. After we changed cleanup, it now also merges database files of other clients. In this case, the work client merges database-DzCdhxXSuAUIuGGuuoeh-0000000001 .. 06 and database-UxJvzoNCERxSFDSTJlOV-0000000001 .. 30.

@pimotte Not sure if this is correct: Did we want the merging depend on whether the total number of database files has been exceeded, or the per-client number of databases. So if (size(db-A..) + size(db-B..) > maxDbFiles) { merge(A); merge(B); } or if (size(db-A..) > maxDbFiles) {merge(A); } if (size(db-B..) > maxDbFiles) { merge(B); }?

1-10-14 14:11:43.811 | CleanupOperatio | main           | INFO : - Merge remote files: Merging necessary (6 database files, max. 15) ...
1-10-14 14:11:43.812 | CleanupOperatio | main           | INFO :    + Writing new merge file (from 1, to 6) to C:\Seb-CloudGame5\.syncany\cache\database-DzCdhxXSuAUIuGGuuoeh-0000000006 ...
1-10-14 14:11:43.867 | CleanupOperatio | main           | INFO : Databases: [RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000001], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000002], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000003], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000004], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000005], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000006], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000007], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000008], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000009], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000010], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000011], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000012], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000013], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000014], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000015], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000016], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000017], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000018], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000019], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000020], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000021], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000022], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000023], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000024], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000025], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000026], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000027], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000028], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000029], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000030]]
1-10-14 14:11:43.867 | CleanupOperatio | main           | INFO : - Merge remote files: Merging necessary (30 database files, max. 15) ...
1-10-14 14:11:43.868 | CleanupOperatio | main           | INFO :    + Writing new merge file (from 1, to 30) to C:\Seb-CloudGame5\.syncany\cache\database-UxJvzoNCERxSFDSTJlOV-0000000030 ...
1-10-14 14:11:44.649 | CleanupOperatio | main           | INFO :    + Deleting remote file RemoteFile[name=database-DzCdhxXSuAUIuGGuuoeh-0000000001] ...

(b) The evil checksum (3d5cbe8caa5a6150a5eee4cca2cc3692c11063e5) is added by your home computer in database database-DzCdhxXSuAUIuGGuuoeh-0000000004, but is not there anymore in the merged database database-DzCdhxXSuAUIuGGuuoeh-0000000004. This is definitely the start of this issue. It does not explain why we reference to it later. Gotta stop here, gotta leave the train; one hour debugging time is not enough ...

  • Potentially fix "merging necessary" in CleanupOperation or at least adjust log message (see (a))

@pimotte
Copy link
Member

pimotte commented Oct 21, 2014

@ snapshots: sounds like an exceptional idea. I have a feeling this is what we have been overlooking, and it already worked this way in my mind. This will require changes to the core algorithms, but having a better defined and more consistent state seems to be worth that.

@ number: We currently check the total number of databasefiles, but allow to scale linearly with the number of clients. Eg. max 5 files per client, 17 db-A files causes a cleanup when there are 3 clients, but not when there are 4 clients.

@binwiederhier
Copy link
Member

@ snapshots: I think we should have a chat about that on IRC -- whenever you're available, obviously. That is not something I feel comfortable to implement without brainstorming about the how first.

@ number: Ah yes, I remember. I adjusted the log message to reflect that.

@binwiederhier
Copy link
Member

Continued analysis. No conclusion yet, still understanding the issue:

home.up()
---------
--> database-DzCdhxXSuAUIuGGuuoeh-0000000004
--> File first indexed (version 9 of config.xml)
    with checksum 3d5cbe8caa5a6150a5eee4cca2cc3692c11063e5

home-syncany.log.0:28-9-14 9:40:53.748 | FileVersionComp | main           | INFO :      - [CHANGED_CHECKSUM, CHANGED_LAST_MOD_DATE]: Local file DIFFERS from file version, expected CHECKSUM = 3d5cbe8caa5a6150a5eee4cca2cc3692c11063e5, but actual CHECKSUM = c2de0210591ec4cc28af8c393f809f9ec78020fd, for file Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml
home-syncany.log.0:28-9-14 9:40:53.749 | Indexer         | main           | INFO :    * Added file version:    FileVersion [version=9, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Sun Sep 28 09:40:11 EDT 2014, linkTarget=null, checksum=3d5cbe8caa5a6150a5eee4cca2cc3692c11063e5, updated=Sun Sep 28 09:40:53 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-]

work.down()
-----------
--> download and apply
      database-DzCdhxXSuAUIuGGuuoeh-0000000004
--> File first applied config.xml(v9) at work PC

work-syncany.log.0:29-9-14 10:31:47.010 | FileSystemActio | main           | INFO :     with winning version   : FileVersion [version=9, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Sun Sep 28 09:40:11 EDT 2014, linkTarget=null, checksum=3d5cbe8caa5a6150a5eee4cca2cc3692c11063e5, updated=Sun Sep 28 09:40:53 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-]
work-syncany.log.0:29-9-14 10:31:47.094 | FileVersionComp | main           | INFO :      - [CHANGED_LAST_MOD_DATE, CHANGED_CHECKSUM]: Local file DIFFERS from file version, expected CHECKSUM = 3d5cbe8caa5a6150a5eee4cca2cc3692c11063e5, but actual CHECKSUM = c2de0210591ec4cc28af8c393f809f9ec78020fd, for file Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml
work-syncany.log.0:29-9-14 10:31:47.094 | FileSystemActio | main           | INFO :      -> (13) Content changed: Local file differs from winning version: local file = C:\Seb-CloudGame5\Jeux\KSP-win-0-24-2\GameData\Trajectories\Plugin\PluginData\Trajectories\config.xml, local version = FileVersion [version=8, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Fri Sep 26 13:14:33 EDT 2014, linkTarget=null, checksum=c2de0210591ec4cc28af8c393f809f9ec78020fd, updated=Fri Sep 26 13:14:56 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-], winning version = FileVersion [version=9, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Sun Sep 28 09:40:11 EDT 2014, linkTarget=null, checksum=3d5cbe8caa5a6150a5eee4cca2cc3692c11063e5, updated=Sun Sep 28 09:40:53 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-]
work-syncany.log.0:29-9-14 10:31:47.094 | FileSystemActio | main           | INFO :      -> ChangeFileSystemAction [file1=FileVersion [version=8, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Fri Sep 26 13:14:33 EDT 2014, linkTarget=null, checksum=c2de0210591ec4cc28af8c393f809f9ec78020fd, updated=Fri Sep 26 13:14:56 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-], file2=FileVersion [version=9, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Sun Sep 28 09:40:11 EDT 2014, linkTarget=null, checksum=3d5cbe8caa5a6150a5eee4cca2cc3692c11063e5, updated=Sun Sep 28 09:40:53 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-]]

work-syncany.log.0:29-9-14 10:32:11.150 | FileSystemActio | main           | INFO :    + ChangeFileSystemAction [file1=FileVersion [version=8, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Fri Sep 26 13:14:33 EDT 2014, linkTarget=null, checksum=c2de0210591ec4cc28af8c393f809f9ec78020fd, updated=Fri Sep 26 13:14:56 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-], file2=FileVersion [version=9, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Sun Sep 28 09:40:11 EDT 2014, linkTarget=null, checksum=3d5cbe8caa5a6150a5eee4cca2cc3692c11063e5, updated=Sun Sep 28 09:40:53 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-]]

work-syncany.log.0:29-9-14 10:32:11.594 | FileVersionComp | main           | INFO :      - [CHANGED_LAST_MOD_DATE, CHANGED_CHECKSUM]: Local file DIFFERS from file version, expected CHECKSUM = 3d5cbe8caa5a6150a5eee4cca2cc3692c11063e5, but actual CHECKSUM = c2de0210591ec4cc28af8c393f809f9ec78020fd, for file Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml
work-syncany.log.0:29-9-14 10:32:11.594 | FileSystemActio | main           | INFO :      - (2) Original file matches, target file does NOT match (EXISTS!): deleting original file, creating conflict file and creating target file at: FileVersion [version=9, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Sun Sep 28 09:40:11 EDT 2014, linkTarget=null, checksum=3d5cbe8caa5a6150a5eee4cca2cc3692c11063e5, updated=Sun Sep 28 09:40:53 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-]

work.up()
---------
--> upload
      database-UxJvzoNCERxSFDSTJlOV-0000000017
--> config.xml changed, new version: version 10, new checksum (!)
--> At this point, there is still a reference to the checksum 3d5cbe8caa5a6150a5eee4cca2cc3692c11063e5 in version 9 of the file      

work-syncany.log.0:29-9-14 13:45:36.132 | Indexer         | main           | INFO :    * Added file version:    FileVersion [version=10, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Mon Sep 29 12:59:21 EDT 2014, linkTarget=null, checksum=6e8330b1c80c372fac5840bac37567bfe62c44fb, updated=Mon Sep 29 13:45:36 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-]
work-syncany.log.0:29-9-14 13:45:36.133 | Indexer         | main           | INFO :      based on file version: FileVersion [version=9, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Sun Sep 28 09:40:11 EDT 2014, linkTarget=null, checksum=3d5cbe8caa5a6150a5eee4cca2cc3692c11063e5, updated=Sun Sep 28 09:40:53 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-]
work-syncany.log.0:29-9-14 13:45:36.136 | FileVersionComp | main           | INFO :      - [CHANGED_LAST_MOD_DATE]: Local file DIFFERS from file version, expected MOD. DATE = 14-09-29 12:47 (1 412 009 225 496), but actual MOD. DATE = 14-09-28 08:20 (1 411 906 837 945), for file Jeux/KSP-win-0-24-2/GameData/TriggerTech/KSPAlternateResourcePanel/settings.cfg
work-syncany.log.0:29-9-14 13:45:36.136 | FileVersionComp | main           | INFO :      - [CHANGED_CHECKSUM, CHANGED_LAST_MOD_DATE]: Local file DIFFERS from file version, expected CHECKSUM = bc0bca9267fdf944f766d7832bc31986b8e39963, but actual CHECKSUM = e7e25fad13edadf61847bee29779b3e9851d7040, for file Jeux/KSP-win-0-24-2/GameData/TriggerTech/KSPAlternateResourcePanel/settings.cfg


home.down()
-----------
--> download and apply
      database-UxJvzoNCERxSFDSTJlOV-0000000017 << version 10 of config.xml
      database-UxJvzoNCERxSFDSTJlOV-0000000018 
      database-UxJvzoNCERxSFDSTJlOV-0000000019 
      database-UxJvzoNCERxSFDSTJlOV-0000000020 
--> Apply updated config.xml (version 10)

home-syncany.log.0:29-9-14 19:14:42.064 | FileSystemActio | main           | INFO :   + Comparing local version: FileVersion [version=9, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Sun Sep 28 09:40:11 EDT 2014, linkTarget=null, checksum=3d5cbe8caa5a6150a5eee4cca2cc3692c11063e5, updated=Sun Sep 28 09:40:53 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-]
home-syncany.log.0:29-9-14 19:14:42.064 | FileSystemActio | main           | INFO :     with winning version   : FileVersion [version=10, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Mon Sep 29 12:59:21 EDT 2014, linkTarget=null, checksum=6e8330b1c80c372fac5840bac37567bfe62c44fb, updated=Mon Sep 29 13:45:36 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-]
home-syncany.log.0:29-9-14 19:14:42.065 | FileVersionComp | main           | INFO :      - [CHANGED_LAST_MOD_DATE]: Local file DIFFERS from file version, expected MOD. DATE = 14-09-29 12:59 (1 412 009 961 877), but actual MOD. DATE = 14-09-28 09:40 (1 411 911 611 729), for file Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml
home-syncany.log.0:29-9-14 19:14:42.065 | FileVersionComp | main           | INFO :      - [CHANGED_CHECKSUM, CHANGED_LAST_MOD_DATE]: Local file DIFFERS from file version, expected CHECKSUM = 6e8330b1c80c372fac5840bac37567bfe62c44fb, but actual CHECKSUM = 3d5cbe8caa5a6150a5eee4cca2cc3692c11063e5, for file Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml
home-syncany.log.0:29-9-14 19:14:42.065 | FileSystemActio | main           | INFO :      -> (13) Content changed: Local file differs from winning version: local file = C:\SEB-CloudGame5\Jeux\KSP-win-0-24-2\GameData\Trajectories\Plugin\PluginData\Trajectories\config.xml, local version = FileVersion [version=9, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Sun Sep 28 09:40:11 EDT 2014, linkTarget=null, checksum=3d5cbe8caa5a6150a5eee4cca2cc3692c11063e5, updated=Sun Sep 28 09:40:53 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-], winning version = FileVersion [version=10, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Mon Sep 29 12:59:21 EDT 2014, linkTarget=null, checksum=6e8330b1c80c372fac5840bac37567bfe62c44fb, updated=Mon Sep 29 13:45:36 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-]
home-syncany.log.0:29-9-14 19:14:42.065 | FileSystemActio | main           | INFO :      -> ChangeFileSystemAction [file1=FileVersion [version=9, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Sun Sep 28 09:40:11 EDT 2014, linkTarget=null, checksum=3d5cbe8caa5a6150a5eee4cca2cc3692c11063e5, updated=Sun Sep 28 09:40:53 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-], file2=FileVersion [version=10, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Mon Sep 29 12:59:21 EDT 2014, linkTarget=null, checksum=6e8330b1c80c372fac5840bac37567bfe62c44fb, updated=Mon Sep 29 13:45:36 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-]]
home-syncany.log.0:29-9-14 19:14:47.894 | FileSystemActio | main           | INFO :    + ChangeFileSystemAction [file1=FileVersion [version=9, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Sun Sep 28 09:40:11 EDT 2014, linkTarget=null, checksum=3d5cbe8caa5a6150a5eee4cca2cc3692c11063e5, updated=Sun Sep 28 09:40:53 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-], file2=FileVersion [version=10, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Mon Sep 29 12:59:21 EDT 2014, linkTarget=null, checksum=6e8330b1c80c372fac5840bac37567bfe62c44fb, updated=Mon Sep 29 13:45:36 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-]]
home-syncany.log.0:29-9-14 19:14:47.997 | FileVersionComp | main           | INFO :      - [CHANGED_CHECKSUM, CHANGED_LAST_MOD_DATE]: Local file DIFFERS from file version, expected CHECKSUM = 6e8330b1c80c372fac5840bac37567bfe62c44fb, but actual CHECKSUM = 3d5cbe8caa5a6150a5eee4cca2cc3692c11063e5, for file Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml

home.up()
---------
--> Add new version of config.xml (version 11)
--> Uploads database-DzCdhxXSuAUIuGGuuoeh-0000000005

30-9-14 19:05:52.260 | Indexer         | main           | INFO :    * Added file version:    FileVersion [version=11, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Mon Sep 29 20:50:37 EDT 2014, linkTarget=null, checksum=6e8330b1c80c372fac5840bac37567bfe62c44fb, updated=Tue Sep 30 19:05:52 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-]
30-9-14 19:05:52.260 | Indexer         | main           | INFO :      based on file version: FileVersion [version=10, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Mon Sep 29 12:59:21 EDT 2014, linkTarget=null, checksum=6e8330b1c80c372fac5840bac37567bfe62c44fb, updated=Mon Sep 29 13:45:36 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-]
30-9-14 19:05:52.263 | FileVersionComp | main           | INFO :      - [CHANGED_LAST_MOD_DATE]: Local file DIFFERS from file version, expected MOD. DATE = 14-09-29 20:50 (1 412 038 217 636), but actual MOD. DATE = 14-09-29 12:52 (1 412 009 544 073), for file Jeux/KSP-win-0-24-2/GameData/TweakableEverything/PluginData/TweakableDecouplers/config.xml


home.up()
---------
--> Add new version of config.xml (version 12)
--> Uploads database-DzCdhxXSuAUIuGGuuoeh-0000000006

30-9-14 20:48:28.521 | Indexer         | main           | INFO :    * Added file version:    FileVersion [version=12, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Tue Sep 30 20:46:23 EDT 2014, linkTarget=null, checksum=6e8330b1c80c372fac5840bac37567bfe62c44fb, updated=Tue Sep 30 20:48:28 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-]
30-9-14 20:48:28.521 | Indexer         | main           | INFO :      based on file version: FileVersion [version=11, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Mon Sep 29 20:50:37 EDT 2014, linkTarget=null, checksum=6e8330b1c80c372fac5840bac37567bfe62c44fb, updated=Tue Sep 30 19:05:52 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-]
30-9-14 20:48:28.522 | FileVersionComp | main           | INFO :      - [CHANGED_LAST_MOD_DATE]: Local file DIFFERS from file version, expected MOD. DATE = 14-09-30 19:55 (1 412 121 311 226), but actual MOD. DATE = 14-09-29 12:47 (1 412 009 225 496), for file Jeux/KSP-win-0-24-2/GameData/TriggerTech/KSPAlternateResourcePanel/settings.cfg
30-9-14 20:48:28.523 | FileVersionComp | main           | INFO :      - [CHANGED_LAST_MOD_DATE, CHANGED_CHECKSUM]: Local file DIFFERS from file version, expected CHECKSUM = 6135e9a2480a052f4d390fedcaa0b0a641b0c98d, but actual CHECKSUM = bc0bca9267fdf944f766d7832bc31986b8e39963, for file Jeux/KSP-win-0-24-2/GameData/TriggerTech/KSPAlternateResourcePanel/settings.cfg

work.down()
-----------
--> Apply changes for config.xml
--> version 10, then version 12

1-10-14 10:35:12.166 | FileSystemActio | main           | INFO :   + Comparing local version: FileVersion [version=10, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Mon Sep 29 12:59:21 EDT 2014, linkTarget=null, checksum=6e8330b1c80c372fac5840bac37567bfe62c44fb, updated=Mon Sep 29 13:45:36 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-]
1-10-14 10:35:12.166 | FileSystemActio | main           | INFO :     with winning version   : FileVersion [version=12, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Tue Sep 30 20:46:23 EDT 2014, linkTarget=null, checksum=6e8330b1c80c372fac5840bac37567bfe62c44fb, updated=Tue Sep 30 20:48:28 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-]
1-10-14 10:35:12.171 | FileVersionComp | main           | INFO :      - [CHANGED_LAST_MOD_DATE]: Local file DIFFERS from file version, expected MOD. DATE = 14-09-30 20:46 (1 412 124 383 306), but actual MOD. DATE = 14-09-29 12:59 (1 412 009 961 877), for file Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml
1-10-14 10:35:12.172 | FileSystemActio | main           | INFO :      -> (12) Rename / Changed file attributes: Local file has different file attributes: local file = C:\Seb-CloudGame5\Jeux\KSP-win-0-24-2\GameData\Trajectories\Plugin\PluginData\Trajectories\config.xml, local version = FileVersion [version=10, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Mon Sep 29 12:59:21 EDT 2014, linkTarget=null, checksum=6e8330b1c80c372fac5840bac37567bfe62c44fb, updated=Mon Sep 29 13:45:36 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-], winning version = FileVersion [version=12, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Tue Sep 30 20:46:23 EDT 2014, linkTarget=null, checksum=6e8330b1c80c372fac5840bac37567bfe62c44fb, updated=Tue Sep 30 20:48:28 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-]
1-10-14 10:35:12.172 | FileSystemActio | main           | INFO :      -> RenameFileSystemAction [file1=FileVersion [version=10, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Mon Sep 29 12:59:21 EDT 2014, linkTarget=null, checksum=6e8330b1c80c372fac5840bac37567bfe62c44fb, updated=Mon Sep 29 13:45:36 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-], file2=FileVersion [version=12, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Tue Sep 30 20:46:23 EDT 2014, linkTarget=null, checksum=6e8330b1c80c372fac5840bac37567bfe62c44fb, updated=Tue Sep 30 20:48:28 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-]]

work.cleanup()
--------------
--> 2150 file histories longer than 2 versions (sy cleanup -k 2)
--> Rightfully removes checksum 3d5cbe8caa5a6150a5eee4cca2cc3692c11063e5 
--> Upload PURGE database database-UxJvzoNCERxSFDSTJlOV-0000000030
--> Merge database-DzCdhxXSuAUIuGGuuoeh-0000000001 .. 06 
--> Merge database-UxJvzoNCERxSFDSTJlOV-0000000001 .. 30

--> THIS IS IT. 
--> database-UxJvzoNCERxSFDSTJlOV-0000000030 is a PURGE database that is uploaded 
    as a single file. Right afterwards, it is merged with other databases and thereby
    all the PURGE entries are lost because of issue #252

1-10-14 14:11:30.170 | CleanupOperatio | main           | INFO : - Old version removal: Found 2 150 file histories that need cleaning (longer than 2 versions).
1-10-14 14:11:31.809 | CleanupOperatio | main           | INFO : - Uploading PURGE database file RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000030] ...
1-10-14 14:11:31.810 | RemoteTransacti | main           | INFO : - Adding file to TX for UPLOAD: C:\Seb-CloudGame5\.syncany\cache\database-UxJvzoNCERxSFDSTJlOV-0000000030 -> Temp. remote file: RemoteFile[name=temp-dJgBOmRybixTqFWvJBQv], final location: RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000030]
1-10-14 14:11:31.810 | CleanupOperatio | main           | INFO : - Deleting remote multichunks ...
1-10-14 14:11:31.811 | RemoteTransacti | main           | INFO : - Adding file to TX for DELETE: RemoteFile[name=multichunk-b92ac9834c793d3af57e081f6874829b5e855de4]-> Temp. remote file: RemoteFile[name=temp-JNviccZRQmERiqeXNinP]
1-10-14 14:11:31.811 | RemoteTransacti | main           | INFO : - Adding file to TX for DELETE: RemoteFile[name=multichunk-ce80f86124cec6c4164ffba2bdcfd982ead4302b]-> Temp. remote file: RemoteFile[name=temp-OlayMFbGaSXMcOyzejmA]
...
1-10-14 14:11:31.817 | RemoteTransacti | main           | INFO : - Adding file to TX for DELETE: RemoteFile[name=multichunk-1832ecacdd5ff625bb0595bb0d5ead3041662e80]-> Temp. remote file: RemoteFile[name=temp-ngEoapUWGzgDyRmsendo]
1-10-14 14:11:31.817 | RemoteTransacti | main           | INFO : Starting TX.commit() ...
1-10-14 14:11:31.839 | RemoteTransacti | main           | INFO : Wrote transaction manifest to temporary file: C:\Seb-CloudGame5\.syncany\cache\temp-transaction-4912586080820252308.tmp
1-10-14 14:11:31.840 | RemoteTransacti | main           | INFO : - Uploading remote transaction file RemoteFile[name=transaction-4c7e1674] ...
1-10-14 14:11:31.910 | RemoteTransacti | main           | INFO : - Uploading C:\Seb-CloudGame5\.syncany\cache\database-UxJvzoNCERxSFDSTJlOV-0000000030 to temp. file RemoteFile[name=temp-dJgBOmRybixTqFWvJBQv] ...
1-10-14 14:11:32.198 | RemoteTransacti | main           | INFO : - Moving RemoteFile[name=multichunk-b92ac9834c793d3af57e081f6874829b5e855de4] to temp. file RemoteFile[name=temp-JNviccZRQmERiqeXNinP] ...
1-10-14 14:11:32.521 | RemoteTransacti | main           | INFO : - Moving RemoteFile[name=multichunk-ce80f86124cec6c4164ffba2bdcfd982ead4302b] to temp. file RemoteFile[name=temp-OlayMFbGaSXMcOyzejmA] ...
...
1-10-14 14:11:40.355 | RemoteTransacti | main           | INFO : - Moving RemoteFile[name=multichunk-1832ecacdd5ff625bb0595bb0d5ead3041662e80] to temp. file RemoteFile[name=temp-ngEoapUWGzgDyRmsendo] ...
1-10-14 14:11:40.601 | RemoteTransacti | main           | INFO : - Moving temp. file RemoteFile[name=temp-dJgBOmRybixTqFWvJBQv] to final location RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000030] ...
1-10-14 14:11:40.717 | RemoteTransacti | main           | INFO : - Deleting remote transaction file RemoteFile[name=transaction-4c7e1674] ...
1-10-14 14:11:40.757 | RemoteTransacti | main           | INFO : Succesfully committed transaction.
1-10-14 14:11:40.757 | RemoteTransacti | main           | INFO : - Deleting temp. file RemoteFile[name=temp-JNviccZRQmERiqeXNinP]  ...
...
1-10-14 14:11:43.091 | RemoteTransacti | main           | INFO : - Deleting temp. file RemoteFile[name=temp-YsxqrJrWiBPQsffQfHoF]  ...
1-10-14 14:11:43.134 | RemoteTransacti | main           | INFO : - Deleting temp. file RemoteFile[name=temp-ngEoapUWGzgDyRmsendo]  ...
1-10-14 14:11:43.169 | RemoteTransacti | main           | INFO : Sucessfully deleted final files.
1-10-14 14:11:43.811 | CleanupOperatio | main           | INFO : Databases: [RemoteFile[name=database-DzCdhxXSuAUIuGGuuoeh-0000000001], RemoteFile[name=database-DzCdhxXSuAUIuGGuuoeh-0000000002], RemoteFile[name=database-DzCdhxXSuAUIuGGuuoeh-0000000003], RemoteFile[name=database-DzCdhxXSuAUIuGGuuoeh-0000000004], RemoteFile[name=database-DzCdhxXSuAUIuGGuuoeh-0000000005], RemoteFile[name=database-DzCdhxXSuAUIuGGuuoeh-0000000006]]
1-10-14 14:11:43.811 | CleanupOperatio | main           | INFO : - Merge remote files: Merging necessary (6 database files, max. 15) ...
1-10-14 14:11:43.812 | CleanupOperatio | main           | INFO :    + Writing new merge file (from 1, to 6) to C:\Seb-CloudGame5\.syncany\cache\database-DzCdhxXSuAUIuGGuuoeh-0000000006 ...
1-10-14 14:11:43.867 | CleanupOperatio | main           | INFO : Databases: [RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000001], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000002], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000003], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000004], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000005], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000006], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000007], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000008], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000009], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000010], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000011], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000012], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000013], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000014], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000015], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000016], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000017], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000018], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000019], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000020], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000021], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000022], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000023], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000024], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000025], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000026], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000027], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000028], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000029], RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000030]]
1-10-14 14:11:43.867 | CleanupOperatio | main           | INFO : - Merge remote files: Merging necessary (30 database files, max. 15) ...
1-10-14 14:11:43.868 | CleanupOperatio | main           | INFO :    + Writing new merge file (from 1, to 30) to C:\Seb-CloudGame5\.syncany\cache\database-UxJvzoNCERxSFDSTJlOV-0000000030 ...
1-10-14 14:11:44.649 | CleanupOperatio | main           | INFO :    + Deleting remote file RemoteFile[name=database-DzCdhxXSuAUIuGGuuoeh-0000000001] ...
1-10-14 14:11:44.649 | RemoteTransacti | main           | INFO : - Adding file to TX for DELETE: RemoteFile[name=database-DzCdhxXSuAUIuGGuuoeh-0000000001]-> Temp. remote file: RemoteFile[name=temp-xxqMysKiITzHTfVXgigy]
1-10-14 14:11:44.649 | CleanupOperatio | main           | INFO :    + Deleting remote file RemoteFile[name=database-DzCdhxXSuAUIuGGuuoeh-0000000002] ...
1-10-14 14:11:44.650 | RemoteTransacti | main           | INFO : - Adding file to TX for DELETE: RemoteFile[name=database-DzCdhxXSuAUIuGGuuoeh-0000000002]-> Temp. remote file: RemoteFile[name=temp-ftJItNanPQDcWlqzItvH]
1-10-14 14:11:44.650 | CleanupOperatio | main           | INFO :    + Deleting remote file RemoteFile[name=database-DzCdhxXSuAUIuGGuuoeh-0000000003] ...
...
1-10-14 14:11:44.657 | CleanupOperatio | main           | INFO :    + Uploading new file RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000030] from local file C:\Seb-CloudGame5\.syncany\cache\database-UxJvzoNCERxSFDSTJlOV-0000000030 ...
1-10-14 14:11:44.657 | RemoteTransacti | main           | INFO : - Adding file to TX for UPLOAD: C:\Seb-CloudGame5\.syncany\cache\database-UxJvzoNCERxSFDSTJlOV-0000000030 -> Temp. remote file: RemoteFile[name=temp-DMidqrXSVMKJTvqxCuwP], final location: RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000030]
1-10-14 14:11:44.658 | RemoteTransacti | main           | INFO : Starting TX.commit() ...
1-10-14 14:11:44.673 | RemoteTransacti | main           | INFO : Wrote transaction manifest to temporary file: C:\Seb-CloudGame5\.syncany\cache\temp-transaction-5533066099120409984.tmp
1-10-14 14:11:44.673 | RemoteTransacti | main           | INFO : - Uploading remote transaction file RemoteFile[name=transaction-3ce19ea8] ...
1-10-14 14:11:44.752 | RemoteTransacti | main           | INFO : - Moving RemoteFile[name=database-DzCdhxXSuAUIuGGuuoeh-0000000001] to temp. file RemoteFile[name=temp-xxqMysKiITzHTfVXgigy] ...
1-10-14 14:11:44.926 | RemoteTransacti | main           | INFO : - Moving RemoteFile[name=database-DzCdhxXSuAUIuGGuuoeh-0000000002] to temp. file RemoteFile[name=temp-ftJItNanPQDcWlqzItvH] ...
...
1-10-14 14:11:50.882 | RemoteTransacti | main           | INFO : - Moving RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000030] to temp. file RemoteFile[name=temp-NJbZyYlvafctixZRexty] ...
1-10-14 14:11:51.026 | RemoteTransacti | main           | INFO : - Uploading C:\Seb-CloudGame5\.syncany\cache\database-DzCdhxXSuAUIuGGuuoeh-0000000006 to temp. file RemoteFile[name=temp-hVhXzcfULderUnAwAiON] ...
1-10-14 14:11:51.179 | RemoteTransacti | main           | INFO : - Uploading C:\Seb-CloudGame5\.syncany\cache\database-UxJvzoNCERxSFDSTJlOV-0000000030 to temp. file RemoteFile[name=temp-DMidqrXSVMKJTvqxCuwP] ...
1-10-14 14:11:51.563 | RemoteTransacti | main           | INFO : - Moving temp. file RemoteFile[name=temp-hVhXzcfULderUnAwAiON] to final location RemoteFile[name=database-DzCdhxXSuAUIuGGuuoeh-0000000006] ...
1-10-14 14:11:51.659 | RemoteTransacti | main           | INFO : - Moving temp. file RemoteFile[name=temp-DMidqrXSVMKJTvqxCuwP] to final location RemoteFile[name=database-UxJvzoNCERxSFDSTJlOV-0000000030] ...
1-10-14 14:11:51.865 | RemoteTransacti | main           | INFO : - Deleting remote transaction file RemoteFile[name=transaction-3ce19ea8] ...


home.up()
---------
--> upload
       database-DzCdhxXSuAUIuGGuuoeh-0000000007
--> config.xml with old checksum (from version 9) reappears 

home-syncany.log.0:6-10-14 23:57:33.117 | Indexer         | main           | INFO :    * Added file version:    FileVersion [version=15, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Mon Oct 06 23:56:51 EDT 2014, linkTarget=null, checksum=3d5cbe8caa5a6150a5eee4cca2cc3692c11063e5, updated=Mon Oct 06 23:57:33 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-]
home-syncany.log.0:6-10-14 23:57:33.117 | Indexer         | main           | INFO :      based on file version: FileVersion [version=14, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Mon Oct 06 13:13:49 EDT 2014, linkTarget=null, checksum=6e8330b1c80c372fac5840bac37567bfe62c44fb, updated=Mon Oct 06 15:52:12 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-]
home-syncany.log.0:6-10-14 23:57:33.119 | FileVersionComp | main           | INFO :      - [CHANGED_LAST_MOD_DATE]: Local file DIFFERS from file version, expected MOD. DATE = 14-10-06 23:56 (1 412 654 188 374), but actual MOD. DATE = 14-10-06 12:52 (1 412 614 373 073), for file Jeux/KSP-win-0-24-2/GameData/TweakableEverything/PluginData/TweakableDecouplers/config.xml

work.down()
-----------
--> download and apply
       database-DzCdhxXSuAUIuGGuuoeh-0000000007

work-syncany.log.0:7-10-14 11:37:01.664 | FileSystemActio | main           | INFO :     with winning version   : FileVersion [version=15, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Mon Oct 06 23:56:51 EDT 2014, linkTarget=null, checksum=3d5cbe8caa5a6150a5eee4cca2cc3692c11063e5, updated=Mon Oct 06 23:57:33 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-]
work-syncany.log.0:7-10-14 11:37:01.667 | FileVersionComp | main           | INFO :      - [CHANGED_LAST_MOD_DATE, CHANGED_CHECKSUM]: Local file DIFFERS from file version, expected CHECKSUM = 3d5cbe8caa5a6150a5eee4cca2cc3692c11063e5, but actual CHECKSUM = 6e8330b1c80c372fac5840bac37567bfe62c44fb, for file Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml
work-syncany.log.0:7-10-14 11:37:01.667 | FileSystemActio | main           | INFO :      -> (13) Content changed: Local file differs from winning version: local file = C:\Seb-CloudGame5\Jeux\KSP-win-0-24-2\GameData\Trajectories\Plugin\PluginData\Trajectories\config.xml, local version = FileVersion [version=14, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Mon Oct 06 13:13:49 EDT 2014, linkTarget=null, checksum=6e8330b1c80c372fac5840bac37567bfe62c44fb, updated=Mon Oct 06 15:52:12 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-], winning version = FileVersion [version=15, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Mon Oct 06 23:56:51 EDT 2014, linkTarget=null, checksum=3d5cbe8caa5a6150a5eee4cca2cc3692c11063e5, updated=Mon Oct 06 23:57:33 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-]
work-syncany.log.0:7-10-14 11:37:01.667 | FileSystemActio | main           | INFO :      -> ChangeFileSystemAction [file1=FileVersion [version=14, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Mon Oct 06 13:13:49 EDT 2014, linkTarget=null, checksum=6e8330b1c80c372fac5840bac37567bfe62c44fb, updated=Mon Oct 06 15:52:12 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-], file2=FileVersion [version=15, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Mon Oct 06 23:56:51 EDT 2014, linkTarget=null, checksum=3d5cbe8caa5a6150a5eee4cca2cc3692c11063e5, updated=Mon Oct 06 23:57:33 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-]]
work-syncany.log.0:7-10-14 11:37:03.122 | FileSystemActio | main           | INFO :    + ChangeFileSystemAction [file1=FileVersion [version=14, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Mon Oct 06 13:13:49 EDT 2014, linkTarget=null, checksum=6e8330b1c80c372fac5840bac37567bfe62c44fb, updated=Mon Oct 06 15:52:12 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-], file2=FileVersion [version=15, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Mon Oct 06 23:56:51 EDT 2014, linkTarget=null, checksum=3d5cbe8caa5a6150a5eee4cca2cc3692c11063e5, updated=Mon Oct 06 23:57:33 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-]]
work-syncany.log.0:7-10-14 11:37:03.285 | FileVersionComp | main           | INFO :      - [CHANGED_LAST_MOD_DATE, CHANGED_CHECKSUM]: Local file DIFFERS from file version, expected CHECKSUM = 3d5cbe8caa5a6150a5eee4cca2cc3692c11063e5, but actual CHECKSUM = 6e8330b1c80c372fac5840bac37567bfe62c44fb, for file Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml
work-syncany.log.0:7-10-14 11:37:03.285 | FileSystemActio | main           | INFO :      - (2) Original file matches, target file does NOT match (EXISTS!): deleting original file, creating conflict file and creating target file at: FileVersion [version=15, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Mon Oct 06 23:56:51 EDT 2014, linkTarget=null, checksum=3d5cbe8caa5a6150a5eee4cca2cc3692c11063e5, updated=Mon Oct 06 23:57:33 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-]
work-syncany.log.0:java.lang.Exception: Cannot determine file content for checksum 3d5cbe8caa5a6150a5eee4cca2cc3692c11063e5

work.down()
-----------
--> repeat

work-syncany.log.0:7-10-14 11:37:21.044 | FileSystemActio | main           | INFO :     with winning version   : FileVersion [version=15, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Mon Oct 06 23:56:51 EDT 2014, linkTarget=null, checksum=3d5cbe8caa5a6150a5eee4cca2cc3692c11063e5, updated=Mon Oct 06 23:57:33 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-]
work-syncany.log.0:7-10-14 11:37:21.045 | FileSystemActio | main           | INFO :      -> (14) Content changed: Local file does NOT exist, and winning version changed: local file = C:\Seb-CloudGame5\Jeux\KSP-win-0-24-2\GameData\Trajectories\Plugin\PluginData\Trajectories\config.xml, local version = FileVersion [version=14, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Mon Oct 06 13:13:49 EDT 2014, linkTarget=null, checksum=6e8330b1c80c372fac5840bac37567bfe62c44fb, updated=Mon Oct 06 15:52:12 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-], winning version = FileVersion [version=15, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Mon Oct 06 23:56:51 EDT 2014, linkTarget=null, checksum=3d5cbe8caa5a6150a5eee4cca2cc3692c11063e5, updated=Mon Oct 06 23:57:33 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-]
work-syncany.log.0:7-10-14 11:37:21.045 | FileSystemActio | main           | INFO :      -> ChangeFileSystemAction [file1=FileVersion [version=14, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Mon Oct 06 13:13:49 EDT 2014, linkTarget=null, checksum=6e8330b1c80c372fac5840bac37567bfe62c44fb, updated=Mon Oct 06 15:52:12 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-], file2=FileVersion [version=15, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Mon Oct 06 23:56:51 EDT 2014, linkTarget=null, checksum=3d5cbe8caa5a6150a5eee4cca2cc3692c11063e5, updated=Mon Oct 06 23:57:33 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-]]
work-syncany.log.0:7-10-14 11:37:21.234 | FileSystemActio | main           | INFO :    + ChangeFileSystemAction [file1=FileVersion [version=14, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Mon Oct 06 13:13:49 EDT 2014, linkTarget=null, checksum=6e8330b1c80c372fac5840bac37567bfe62c44fb, updated=Mon Oct 06 15:52:12 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-], file2=FileVersion [version=15, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Mon Oct 06 23:56:51 EDT 2014, linkTarget=null, checksum=3d5cbe8caa5a6150a5eee4cca2cc3692c11063e5, updated=Mon Oct 06 23:57:33 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-]]
work-syncany.log.0:7-10-14 11:37:21.271 | FileSystemActio | main           | INFO :      - (8) Original does NOT match, target file does not exist: Creating file at: FileVersion [version=15, path=Jeux/KSP-win-0-24-2/GameData/Trajectories/Plugin/PluginData/Trajectories/config.xml, type=FILE, status=CHANGED, size=391, lastModified=Mon Oct 06 23:56:51 EDT 2014, linkTarget=null, checksum=3d5cbe8caa5a6150a5eee4cca2cc3692c11063e5, updated=Mon Oct 06 23:57:33 EDT 2014, posixPermissions=rw-rw-r--, dosAttributes=--a-]
work-syncany.log.0:java.lang.Exception: Cannot determine file content for checksum 3d5cbe8caa5a6150a5eee4cca2cc3692c11063e5

@binwiederhier
Copy link
Member

Found it.

The sy cleanup -k 2 rightfully removes checksum 3d5cbe8caa5a6150a5eee4cca2cc3692c11063e5 because version 9 of the config.xml file is older than 2 versions. Cleanup first writes and uploads a PURGE database database-UxJvzoNCERxSFDSTJlOV-0000000030 and then detects that it should also merge a few databases together.

That is all fine if there wasn't issue #252 -- meaning that PURGE databases are entirely lost while merging, i.e. after a merge, a PURGE database is simple an empty database.

@binwiederhier
Copy link
Member

So 6cac3dd fixes #252 and this issue. Is this too dirty? I'm writing an extra table to store the purge database version entries and consider them when re-serializing. @pimotte Opinions?

@binwiederhier
Copy link
Member

Before I merge this, I would like to see if #231 is also a result of this issue (#247 / #252).

@binwiederhier
Copy link
Member

I merged this and created a new branch for #231 that does not contain this fix so I can test before/after here: https://github.com/syncany/syncany/tree/bugfix/issue231

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants