Interface says "up to date" but md5sum differs

I have a file maintained by a password manager on my phone and I am syncing it to my desktop. I changed a password and used Hashr ( https://f-droid.org/repository/browse/?fdid=de.kodejak.hashr ) to generate an md5 sum file which I placed alongside the password manager file. The md5sum file synced over to the desktop right away. On the desktop I then checked it against the password manager file, and the two differed. On the phone the folder status is “Idle (99%)” and on the desktop it’s “Up to Date”.

Phone version: 0.6.1 (v0.11.5)

Desktop version: v0.11.5, Linux (64 bit)

I would guess that my password manager writes into the middle of the file without changing the mtime. Can I force a rescan of particular files somehow?

The fact that it’s idle 99% is suspicious, does it show any files as out of sync?

Actually it does say “13 / 17 Files” but I don’t know what that means. It seems that the files are synced over. The only new file is the md5 of the password manager file.

If you open the out of sync modal you will see which items are out of sync, and this way you will know what’s out of sync

On the Android side, you’ll have to use the web GUI for this.

Thanks, I didn’t realize I could use the web gui on mobile. I do see the file in question as “out of sync” on the phone. The question remains why it isn’t syncing up.

Check the stdout for clues.

Settings->Log Window

You mean Settings -> Open Log? It shows nothing, just

------ beginning of main
------ beginning of system

It seems to be continuing to fail with more than the one file. I put a .ics on the computer to add to the calendar on the phone, and it isn’t syncing over.

Okay, so I just tried unchecking “folder master” on the phone. I shouldn’t have done that because it ate a few of my newer passwords. At least the whole file is still readable. (I keep backups of my desktop anyway, though not my phone). Maybe the “folder master” feature needs a little work. In the mean time I’ll try enabling versioning.

Well master implies don't accept changes from anyone, hence no surprise that the .ics is not on the phone.

True but it doesn’t explain why the new version of the password file didn’t sync to the desktop.

Can you get https://github.com/syncthing/syncthing/wiki/REST-Interface#get-restdbfile from both sides?

Could you give me an example of making that request with curl? I can’t figure out how to specify the file. Getting 404s. I have tried:

curl http://localhost:8384/rest/db/file/<folder/path>/<filename>
curl http://localhost:8384/rest/db/file/<filename>
curl http://localhost:8384/rest/db/file/<folderid>/<filename>
curl http://localhost:8384/rest/db/<folder/path>/<filename>
curl http://localhost:8384/rest/db/<filename>
curl http://localhost:8384/rest/db/<folderid>/<filename>

curl 'http://localhost:8384/rest/db/file?folder=folderid&file=filename'

Okay, well I changed a password today and it synced over okay without ‘folder master’ enabled. I then enabled ‘folder master’ and created a new dummy entry in the file, and it seems to have synced over okay too. Maybe before, the desktop version of the file somehow had been touched, so the desktop thought it was more recent?

But anyhow, even though this seems to be working now, here’s on the phone:

{
  "local": {
    "version": [
      "5537513297551581384:1",
      "17140170133155813053:6"
    ],
    "size": 7272,
    "numBlocks": 1,
    "name": "passwords.psafe3",
    "modified": "2015-05-21T17:47:54Z",
    "localVersion": 25412,
    "flags": "0100666"
  },
  "global": {
    "version": [
      "5537513297551581384:1",
      "17140170133155813053:6"
    ],
    "size": 7272,
    "numBlocks": 1,
    "name": "passwords.psafe3",
    "modified": "2015-05-21T17:47:54Z",
    "localVersion": 16735,
    "flags": "0100666"
  }
}

And here’s on the desktop:

{
  "local": {
    "version": [
      "5537513297551581384:1",
      "17140170133155813053:6"
    ],
    "size": 7272,
    "numBlocks": 1,
    "name": "passwords.psafe3",
    "modified": "2015-05-21T10:47:54-07:00",
    "localVersion": 16735,
    "flags": "0100666"
  },
  "global": {
    "version": [
      "5537513297551581384:1",
      "17140170133155813053:6"
    ],
    "size": 7272,
    "numBlocks": 1,
    "name": "passwords.psafe3",
    "modified": "2015-05-21T10:47:54-07:00",
    "localVersion": 16735,
    "flags": "0100666"
  }
}

Thanks guys for your patience and help with this! If the problem comes back I will do the rest calls and look at the log now that I know how. :smile: I am leaving the phone with ‘folder master’…

1 Like