ssbc/go-ssb

Come up with plan for better migrations when conducting storage changes

Opened this issue · 1 comments

cblgh commented

as spurred on by this error when running the migration tool (#120) on my slightly old / unknown-state-of-disrepair .ssb-go directory

gossb-migrate-mf: migrating /home/cblgh/.ssb-go
gossb-migrate-mf: load classic keypair
gossb-migrate-mf: move backup
gossb-migrate-mf: get metafeed id
2021/10/08 12:43:30 saved identity ssb:feed/bendybutt-v1/eZu7F4GFPFn25f7aylGC4Cfyf_PWDrycMr9pfnY8jkw= to /home/cblgh/.ssb-go/secret
gossb-migrate-mf: root mf id is ssb:feed/bendybutt-v1/eZu7F4GFPFn25f7aylGC4Cfyf_PWDrycMr9pfnY8jkw=
2021/10/08 12:43:30 [gossb-migrate-mf: get metafeed id] failed to close (sbot: index group shutdown failed: sbot index(abouts) update of backlog failed: error decoding data for seq(590848) (ofst:569798072): multiMessage: legacy decoding failed: cbor decode error [pos 56]: serializedFeed: failed to parse tfk data: ssb/tfk: unexpected type value)

Maybe the migration strategy from scuttlego might be relevant here:

planetary-social/scuttlego#90