# Index anomaly reporting

**URL:** https://forum.syncthing.net/t/index-anomaly-reporting/22660
**Category:** Development
**Created:** [August 25, 2024, 7:34am UTC](https://forum.syncthing.net/t/index-anomaly-reporting/22660 "2024-08-25T07:34:26Z")
**Posts on this page:** 7
**Page:** 1

<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: [August 25, 2024, 7:34am UTC](https://forum.syncthing.net/t/index-anomaly-reporting/22660/1 "2024-08-25T07:34:27Z")

</div>

This is a topic for reports of index anomalies. Syncthing debug messages refer to this thread in which reports can be made. If you ended up here as a result of seeing an index anomaly in the Syncthing logs or GUI please paste the message you saw and any relevant things you were doing at the time. Thanks!

Ideally, this will be removed in a further-future version and this topic can be closed with an explanation.

---

<div class="post-metadata">

### Author: ![bt90](https://forum.syncthing.net/user_avatar/forum.syncthing.net/bt90/32/18565_2.png) [@bt90](https://forum.syncthing.net/u/bt90)
#### Post date: [August 25, 2024, 9:22am UTC](https://forum.syncthing.net/t/index-anomaly-reporting/22660/2 "2024-08-25T09:22:18Z")

</div>

ELI5 tl;dr: we’re adding a canary to check for unexpected badness

---

<div class="post-metadata">

### Author: ![AudriusButkevicius](https://forum.syncthing.net/user_avatar/forum.syncthing.net/audriusbutkevicius/32/277_2.png) [@AudriusButkevicius](https://forum.syncthing.net/u/AudriusButkevicius)
#### Post date: [August 25, 2024, 9:28am UTC](https://forum.syncthing.net/t/index-anomaly-reporting/22660/3 "2024-08-25T09:28:27Z")

</div>

For the purpose of hunting down an index corruption/“things look out of sync” bug that has been around for quite a while, that we never managed to reproduce.

---

<div class="post-metadata">

### Author: ![grumpybozo](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/g/c37758/32.png) [@grumpybozo](https://forum.syncthing.net/u/grumpybozo)
#### Post date: [September 12, 2024, 6:41pm UTC](https://forum.syncthing.net/t/index-anomaly-reporting/22660/4 "2024-09-12T18:41:04Z")

</div>

2024-09-12 14:33:12: Index sequence anomaly detected (please report at [Index anomaly reporting](https://forum.syncthing.net/t/22660)): index update with unexpected sequence (map[batch:1000 expectedPrev:361110 lastSeq:363960 prevSeq:362545])

Popped up while I was rebuilding a wiped folder by resynching…

---

<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 12, 2024, 8:03pm UTC](https://forum.syncthing.net/t/index-anomaly-reporting/22660/5 "2024-09-12T20:03:02Z")

</div>

Very interesting, thank you for reporting! Can you describe a little more the steps involved in this rebuilding?

---

<div class="post-metadata">

### Author: ![TheJACKedViking](https://forum.syncthing.net/user_avatar/forum.syncthing.net/thejackedviking/32/17369_2.png) [@TheJACKedViking](https://forum.syncthing.net/u/TheJACKedViking)
#### Post date: [September 21, 2024, 4:49am UTC](https://forum.syncthing.net/t/index-anomaly-reporting/22660/6 "2024-09-21T04:49:49Z")

</div>

```plaintext
 2024-09-20 23:26:45: Index sequence anomaly detected (please report at https://forum.syncthing.net/t/22660): index update with unexpected sequence (map[batch:18 expectedPrev:1791693 lastSeq:1791693 prevSeq:1791675]) 

```

Restarted SyncThing via the Synology Package Center. Currently running on v1.27.13-rc.1, Linux (64-bit Intel/AMD).

---

<div class="post-metadata">

### Author: ![grumpybozo](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/g/c37758/32.png) [@grumpybozo](https://forum.syncthing.net/u/grumpybozo)
#### Post date: [October 18, 2024, 4:28pm UTC](https://forum.syncthing.net/t/index-anomaly-reporting/22660/7 "2024-10-18T16:28:35Z")

</div>

The local copy of a folder shared by 4 peers got mostly erased (through ‘n’ lexically…) and Syncthing was not running. I restarted Syncthing after touching .stfolder and started synching with the other nodes.

It ultimately finished synching (~70GB, thousands of files) and the error did not reappear.
