Upgraded OpenWRT and received migration error

Upgraded my openWRT install that I run syncthing on and I’m now met with this error. I don’t believe that the version of syncthing was changed/upgraded at all during this process…

[I4HAF] 22:29:42 WARNING: Database schema: failed migrating to version 3: proto: wrong wireType = 2 for field Invalid

[monitor] 22:29:42 INFO: Syncthing exited: exit status 1

[monitor] 22:29:43 WARNING: 4 restarts in 12.817645676s; not retrying further

Not much info to go on here, but the version three schema it’s trying to upgrade to was introduced by v0.14.48 back in summer 2018. Either you were previously running a seriously ancient version, or something else is toast.

It’s actually trying to migrate from schema 1 at the beginning of the log…

[start] 17:18:43 INFO: syncthing v1.9.0 "Fermium Flea" (go1.15.6 linux-arm) openwrt@openwrt 2020-12-14 23:18:12 UTC  
[I4HAF] 17:18:43 INFO: My ID: XXXXXX
[I4HAF] 17:18:44 INFO: Single thread SHA256 performance is 45 MB/s using crypto/sha256 (45 MB/s using minio/sha256-simd).  
[I4HAF] 17:18:44 VERBOSE: Starting up (/root/.config/syncthing)
[I4HAF] 17:18:45 INFO: Hashing performance is 40.99 MB/s
[I4HAF] 17:18:45 INFO: Migrating database to schema version 1...
[I4HAF] 17:18:45 INFO: Migrating database to schema version 2...
[I4HAF] 17:18:45 INFO: Migrating database to schema version 3...
[I4HAF] 17:18:45 WARNING: Database schema: failed migrating to version 3: proto: wrong wireType = 2 for field Invalid
[monitor] 17:18:45 INFO: Syncthing exited: exit status 1
[monitor] 17:18:46 WARNING: 4 restarts in 11.486556873s; not retrying further

I think that it would be useful if you could provide more information on the previous version that had been used on the device (i.e. prior to trying to upgrade to v1.9.0, which itself is not the newest).

It would have been the same syncthing version – but I did a upgrade to the firmware of the device. I did move from a 32bit architecture to a 64bit – could that have changed anything?

The only version of syncthing I see in the opkg sources is 1.9.0-2 but I will post over on the OpenWRT forums to find out if there is a current maintainer that can upgrade it.

I don’t know what might have happened, but on the assumption that you’re not actually upgrading from an ancient version then I think your database is toast. Delete it and it should get somewhat up and running.

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