Conflicts after saving a file from a single machine

As of v1.22.x I’ve been getting sync conflicts when I make a change from my desktop and nowhere else.

It happens pretty consistently after saving my KeePass database, but I’m able to reproduce it when saving a text file too.

I enabled debugging for and recorded these events when I got another conflict file:

[SUMLB] 2022/11/06 14:50:31.071912 logfs.go:115: DEBUG: folderconfiguration.go:116 basic C:\Users\dan\syncthing\KeePass Stat . {0xc004c3e150} <nil>
[SUMLB] 2022/11/06 14:50:31.074377 logfs.go:115: DEBUG: folderconfiguration.go:134 basic C:\Users\dan\syncthing\KeePass Stat .stfolder {0xc004c3e230} <nil>
[SUMLB] 2022/11/06 14:50:31.078494 logfs.go:163: DEBUG: folder.go:334 basic C:\Users\dan\AppData\Local\Syncthing\index-v0.14.0.db Usage . {111751942144 255465836544} <nil>
[SUMLB] 2022/11/06 14:50:31.082370 logfs.go:115: DEBUG: folderconfiguration.go:116 basic C:\Users\dan\syncthing\KeePass Stat . {0xc004ce4000} <nil>
[SUMLB] 2022/11/06 14:50:31.082963 logfs.go:115: DEBUG: folderconfiguration.go:134 basic C:\Users\dan\syncthing\KeePass Stat .stfolder {0xc004ce40e0} <nil>
[SUMLB] 2022/11/06 14:50:31.082963 logfs.go:163: DEBUG: folder.go:334 basic C:\Users\dan\AppData\Local\Syncthing\index-v0.14.0.db Usage . {111751942144 255465836544} <nil>
[SUMLB] 2022/11/06 14:50:31.084896 logfs.go:163: DEBUG: folderconfiguration.go:267 basic C:\Users\dan\syncthing\KeePass Usage . {111751942144 255465836544} <nil>
[SUMLB] 2022/11/06 14:50:31.087483 basicfs_watch.go:96: DEBUG: basic C:\Users\dan\syncthing\KeePass Watch: Ignoring ~syncthing~test.sync-conflict-20221106-145032-SUMLBHF.txt.tmp
[SUMLB] 2022/11/06 14:50:31.088043 basicfs_watch.go:96: DEBUG: basic C:\Users\dan\syncthing\KeePass Watch: Ignoring ~syncthing~test.sync-conflict-20221106-145032-SUMLBHF.txt.tmp
[SUMLB] 2022/11/06 14:50:31.088054 basicfs_watch.go:96: DEBUG: basic C:\Users\dan\syncthing\KeePass Watch: Ignoring ~syncthing~test.sync-conflict-20221106-145032-SUMLBHF.txt.tmp
[SUMLB] 2022/11/06 14:50:31.252763 basicfs_watch.go:96: DEBUG: basic C:\Users\dan\syncthing\KeePass Watch: Ignoring ~syncthing~test.sync-conflict-20221106-145032-SUMLBHF.txt.tmp
[SUMLB] 2022/11/06 14:50:31.258320 basicfs_watch.go:96: DEBUG: basic C:\Users\dan\syncthing\KeePass Watch: Ignoring ~syncthing~test.sync-conflict-20221106-145032-SUMLBHF.txt.tmp
[SUMLB] 2022/11/06 14:50:31.259635 basicfs_watch.go:102: DEBUG: basic C:\Users\dan\syncthing\KeePass Watch: Sending test.sync-conflict-20221106-145032-SUMLBHF.txt non-remove
[SUMLB] 2022/11/06 14:50:31.259635 basicfs_watch.go:96: DEBUG: basic C:\Users\dan\syncthing\KeePass Watch: Ignoring ~syncthing~test.sync-conflict-20221106-145032-SUMLBHF.txt.tmp
[SUMLB] 2022/11/06 14:50:31.259635 aggregator.go:188: DEBUG: aggregator/"KeePass" (xctzt-yzntk): Skipping path we modified: test.sync-conflict-20221106-145032-SUMLBHF.txt
[SUMLB] 2022/11/06 14:50:31.260219 basicfs_watch.go:102: DEBUG: basic C:\Users\dan\syncthing\KeePass Watch: Sending test.sync-conflict-20221106-145032-SUMLBHF.txt non-remove
[SUMLB] 2022/11/06 14:50:31.260219 aggregator.go:188: DEBUG: aggregator/"KeePass" (xctzt-yzntk): Skipping path we modified: test.sync-conflict-20221106-145032-SUMLBHF.txt
[SUMLB] 2022/11/06 14:50:31.773576 aggregator.go:323: DEBUG: aggregator/"KeePass" (xctzt-yzntk): No tracked events, waiting for new event.
[SUMLB] 2022/11/06 14:50:33.009219 aggregator.go:334: DEBUG: aggregator/"Utils" (t9vjd-pxrkf): No old fs events
[SUMLB] 2022/11/06 14:50:33.009996 aggregator.go:315: DEBUG: aggregator/"Utils" (t9vjd-pxrkf): Resetting notifyTimer to 10s
[SUMLB] 2022/11/06 14:50:43.026553 aggregator.go:334: DEBUG: aggregator/"Utils" (t9vjd-pxrkf): No old fs events
[SUMLB] 2022/11/06 14:50:43.027589 aggregator.go:315: DEBUG: aggregator/"Utils" (t9vjd-pxrkf): Resetting notifyTimer to 10s
[SUMLB] 2022/11/06 14:50:53.029026 aggregator.go:334: DEBUG: aggregator/"Utils" (t9vjd-pxrkf): No old fs events
[SUMLB] 2022/11/06 14:50:53.029026 aggregator.go:315: DEBUG: aggregator/"Utils" (t9vjd-pxrkf): Resetting notifyTimer to 10s
[SUMLB] 2022/11/06 14:50:59.708587 logfs.go:115: DEBUG: folderconfiguration.go:116 basic C:\Users\dan\syncthing\KeePass Stat . {0xc00607c000} <nil>
[SUMLB] 2022/11/06 14:50:59.719992 logfs.go:115: DEBUG: folderconfiguration.go:134 basic C:\Users\dan\syncthing\KeePass Stat .stfolder {0xc00607c0e0} <nil>
[SUMLB] 2022/11/06 14:50:59.720662 logfs.go:163: DEBUG: folder.go:334 basic C:\Users\dan\AppData\Local\Syncthing\index-v0.14.0.db Usage . {111751684096 255465836544} <nil>
[SUMLB] 2022/11/06 14:50:59.728790 logfs.go:115: DEBUG: folderconfiguration.go:116 basic C:\Users\dan\syncthing\KeePass Stat . {0xc00607c230} <nil>
[SUMLB] 2022/11/06 14:50:59.730056 logfs.go:115: DEBUG: folderconfiguration.go:134 basic C:\Users\dan\syncthing\KeePass Stat .stfolder {0xc00607c310} <nil>
[SUMLB] 2022/11/06 14:50:59.730347 logfs.go:163: DEBUG: folder.go:334 basic C:\Users\dan\AppData\Local\Syncthing\index-v0.14.0.db Usage . {111751684096 255465836544} <nil>
[SUMLB] 2022/11/06 14:50:59.733427 basicfs_watch.go:102: DEBUG: basic C:\Users\dan\syncthing\KeePass Watch: Sending test.sync-conflict-20221106-145032-SUMLBHF.txt non-remove
[SUMLB] 2022/11/06 14:50:59.733427 aggregator.go:296: DEBUG: aggregator/"KeePass" (xctzt-yzntk): Tracking (type non-remove): test.sync-conflict-20221106-145032-SUMLBHF.txt
[SUMLB] 2022/11/06 14:50:59.733427 aggregator.go:315: DEBUG: aggregator/"KeePass" (xctzt-yzntk): Resetting notifyTimer to 10s
[SUMLB] 2022/11/06 14:51:03.038358 aggregator.go:334: DEBUG: aggregator/"Utils" (t9vjd-pxrkf): No old fs events
[SUMLB] 2022/11/06 14:51:03.040424 aggregator.go:315: DEBUG: aggregator/"Utils" (t9vjd-pxrkf): Resetting notifyTimer to 10s
[SUMLB] 2022/11/06 14:51:09.739587 aggregator.go:347: DEBUG: aggregator/"KeePass" (xctzt-yzntk): Notifying about 1 fs events
[SUMLB] 2022/11/06 14:51:09.739587 aggregator.go:315: DEBUG: aggregator/"KeePass" (xctzt-yzntk): Resetting notifyTimer to 10s
[SUMLB] 2022/11/06 14:51:09.745699 logfs.go:115: DEBUG: folderconfiguration.go:116 basic C:\Users\dan\syncthing\KeePass Stat . {0xc0057a6000} <nil>
[SUMLB] 2022/11/06 14:51:09.753274 logfs.go:115: DEBUG: folderconfiguration.go:134 basic C:\Users\dan\syncthing\KeePass Stat .stfolder {0xc0057a60e0} <nil>
[SUMLB] 2022/11/06 14:51:09.755049 logfs.go:163: DEBUG: folder.go:334 basic C:\Users\dan\AppData\Local\Syncthing\index-v0.14.0.db Usage . {111751684096 255465836544} <nil>
[SUMLB] 2022/11/06 14:51:09.756293 walkfs.go:84: DEBUG: walk: path=test.sync-conflict-20221106-145032-SUMLBHF.txt

Here’s a /rest/debug/file call result for that file from the REST API:

{
  "availability": [
    "7777777-777777N-7777777-777777N-7777777-777777N-7777777-77777Q4",
    "NT6BXBW-MI4PPSF-PYTRPVY-AI42HS5-BUZZJ25-SSNNQKG-4S7NAIM-6IW32QY",
    "FLG7YGM-6HKLCUV-2R67KFK-HIZ73GD-YI3MJQS-N77HLZ3-47YFBBA-TMVW5AR",
    "XVS74NW-4763GCD-5U7LOTY-RMZ5YWS-JEF2U7K-3T32PUL-PWSBQFR-NWEV5QN",
    "6LZV6KC-X6MTGQA-WSI3WWX-TR4EER6-PJ6H6OZ-G6W6B7K-YVH5JRF-CW2WYQE"
  ],
  "global": {
    "deleted": false,
    "ignored": false,
    "inodeChange": "1969-12-31T19:00:00-05:00",
    "invalid": false,
    "localFlags": 0,
    "modified": "2022-11-06T14:50:11.7424861-05:00",
    "modifiedBy": "SUMLBHF",
    "mustRescan": false,
    "name": "test.txt",
    "noPermissions": false,
    "numBlocks": 1,
    "permissions": "0644",
    "platform": {
      "unix": null,
      "windows": null,
      "linux": null,
      "darwin": null,
      "freebsd": null,
      "netbsd": null
    },
    "sequence": 314,
    "size": 112373,
    "type": "FILE_INFO_TYPE_FILE",
    "version": [
      "SUMLBHF:1667764221"
    ]
  },
  "globalVersions": "{{Version:{[{SUMLBHF 1667764221}]}, Deleted:false, Devices:{7777777, NT6BXBW, FLG7YGM, XVS74NW, 6LZV6KC}, Invalid:{}}}",
  "local": {
    "deleted": false,
    "ignored": false,
    "inodeChange": "1969-12-31T19:00:00-05:00",
    "invalid": false,
    "localFlags": 0,
    "modified": "2022-11-06T14:50:11.7424861-05:00",
    "modifiedBy": "SUMLBHF",
    "mustRescan": false,
    "name": "test.txt",
    "noPermissions": false,
    "numBlocks": 1,
    "permissions": "0644",
    "platform": {
      "unix": null,
      "windows": null,
      "linux": null,
      "darwin": null,
      "freebsd": null,
      "netbsd": null
    },
    "sequence": 314,
    "size": 112373,
    "type": "FILE_INFO_TYPE_FILE",
    "version": [
      "SUMLBHF:1667764221"
    ]
  },
  "mtime": {
    "err": null,
    "value": {
      "real": "0001-01-01T00:00:00Z",
      "virtual": "0001-01-01T00:00:00Z"
    }
  }
}

Is there anything else I can provide to help troubleshoot?

1 Like

What’s the other side/device?

My phone (Android), Windows 10 laptop and 3 Linux servers (all running v1.22.1).

To narrow the issue down, I created a new folder and only shared it with my phone. I added a text file on my desktop, made a change, saved, and got a sync-conflict file.

1 Like

Sounds like the same issue as mine in https://forum.syncthing.net/t/keep-getting-conflicts-generated-on-android-device-for-files-modified-only-on-a-desktop-pc/19060. In short, there is no easy workaround at the moment. The easiest option would be to downgrade Syncthing on Android to v1.21.0 for the time being. This can be done by uninstalling and reinstalling the app. You can find old versions either on F-Droid or straight in the GitHub repository.

1 Like

Thanks for the pointer. I read through your post, but didn’t realize mine was specific to Android until I created the test folder. I’ll downgrade to v1.21.0 for now.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.