-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ssb/consistency error: message sequence missmatch for feed #81
Comments
This is related to #40 |
@cryptix I just ran into this error too, and confirm your workaround fixed the issue, thanks! |
have been running into this error again and again, not sure if i'm doing something wrong but seems to happen occasionally if i stop and restart the service running |
Just ran into this with a build from latest code on The offending feed was that of the
After running CC: @decentral1se |
@mycognosist thanks for the report! Would be great to fix this one. Are you seeing anything in the Do you see any duplicated messages in the output of As for connecting this with #40, I'm a bit lost. That seems like the dragons part. Any further info would be great. Maybe we can still break this up into small parts for debugging / troubleshooting? Try to figure out how to reproduce seems difficult. Even if we could do it manually, it'd be great. Perhaps some small win in the graceful shutdown code can be had... For the time being, the work-around is probably the one mentioned in https://github.com/ssbc/go-ssb#startup-error--illegal-json-value but that is obviously not ideal. But just in case you need to keep moving for whatever reasons. |
Hmm so what I notice is that the local log was seemingly wiped after the If I call Let me take another run at this with a fresh start and see if I encounter the error again. I'll try to find duplicate messages if I hit a snag again. One other detail to mention is that I was running legacy replication when this happened.
This could be handy. I guess you could create a list of each message key you find and shout if there's a duplicate.
Agreed. Could be a good issue to ask cryptix about on a call (if we can). |
Potentially also related: #201 |
Approach for checking for duplicates has emerged in #201 (comment) thanks to @mplorentz, scanning for duplicated signatures seems like a simple way to do it. |
This might happen because of a local duplication bug (some messages are append twice) in the verify logic.
It is a fatal error because it cripples replicatio. Tthe system thinks a feed has more messages then it actually does.
The workaround is to start go-sbot with
-fsck sequences -repair
which will check all the messages in a log, delete the affected feeds. On the next sync/connection it will reload them.AFAICT this only happens for external messages, not the ones signed by the bot itself.
The text was updated successfully, but these errors were encountered: