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

**URL:** https://forum.syncthing.net/t/failed-migrating-to-version-3-proto-wrong-wiretype-0-for-field-device/15677
**Category:** Support
**Created:** [September 28, 2020, 5:49pm UTC](https://forum.syncthing.net/t/failed-migrating-to-version-3-proto-wrong-wiretype-0-for-field-device/15677 "2020-09-28T17:49:29Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![tlc](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/t/a4c791/32.png) [@tlc](https://forum.syncthing.net/u/tlc)
#### Post date: [September 28, 2020, 5:49pm UTC](https://forum.syncthing.net/t/failed-migrating-to-version-3-proto-wrong-wiretype-0-for-field-device/15677/1 "2020-09-28T17:49:29Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![uok](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/u/e99b99/32.png) [@uok](https://forum.syncthing.net/u/uok)
#### Post date: [September 28, 2020, 5:51pm UTC](https://forum.syncthing.net/t/failed-migrating-to-version-3-proto-wrong-wiretype-0-for-field-device/15677/2 "2020-09-28T17:51:23Z")

</div>

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

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [September 28, 2020, 5:55pm UTC](https://forum.syncthing.net/t/failed-migrating-to-version-3-proto-wrong-wiretype-0-for-field-device/15677/3 "2020-09-28T17:55:30Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![tlc](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/t/a4c791/32.png) [@tlc](https://forum.syncthing.net/u/tlc)
#### Post date: [September 28, 2020, 5:58pm UTC](https://forum.syncthing.net/t/failed-migrating-to-version-3-proto-wrong-wiretype-0-for-field-device/15677/4 "2020-09-28T17:58:39Z")

</div>

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.)

---

<div class="post-metadata">

### Author: ![system](https://forum-uploads.syncthingcdn.net/original/2X/0/0b50e0a202b22ae6a67190759e8c868805b8ed9f.png) [@system](https://forum.syncthing.net/u/system)
#### Post date: [October 28, 2020, 5:58pm UTC](https://forum.syncthing.net/t/failed-migrating-to-version-3-proto-wrong-wiretype-0-for-field-device/15677/5 "2020-10-28T17:58:40Z")

</div>

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