failed migrating to version 3: proto: wrong wireType = 0 for field Device

I have two machines running syncthing in linux docker and one macos running via brew install. All are running v1.9.0. The docker ones are good but the brew install loops with the following:

> $ syncthing
> [start] 13:43:21 INFO: syncthing v1.9.0 "Fermium Flea" (go1.15.2 darwin-amd64) redacted@redacted.local 2020-09-28 17:20:45 UTC [noupgrade]
> [ZQPHR] 13:43:21 INFO: My ID: ZQPHRVI-REDACTED
> [ZQPHR] 13:43:22 INFO: Single thread SHA256 performance is 298 MB/s using minio/sha256-simd (292 MB/s using crypto/sha256).
> [ZQPHR] 13:43:23 INFO: Hashing performance is 248.45 MB/s
> [ZQPHR] 13:43:23 INFO: Migrating database to schema version 2...
> [ZQPHR] 13:43:23 INFO: Migrating database to schema version 3...
> [ZQPHR] 13:43:23 WARNING: Database schema: failed migrating to version 3: proto: wrong wireType = 0 for field Device
> [monitor] 13:43:23 INFO: Syncthing exited: exit status 1

Thoughts?

what was previous Syncthing version? was this automatic or manual update?

Schema version 2 was 0.14.48 so something predating that… It’s supposed to work, but I guess there may be problems with migrating from several years old databases. I don’t think anyone has tested it.

I haven’t used these synced dirs in a while, so I don’t know how long it was broken. (EDIT: I have used the dirs, but not confirmed the sync.)

When I noticed the problem, I manually upgraded the brew install “1.8.0_1 -> 1.9.0_1”. I also noticed that one of the docker syncthings was 1.8 and upgraded it to 1.9.0. The other docker syncthing was already 1.9.0, perhaps due to my habit of upgrading a larger docker-compose file. (Again, those two linux docker syncthings were happy with each other.)

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