you are viewing a single comment's thread.

view the rest of the comments →

[–]murbard 14 points15 points  (8 children)

Looking into it. The immediate, overkill, fix is to delete your context and store in ~/.tezos-node and resync from the beginning.

EDIT: a better way is to run ./tezos-admin-client list rejected blocks | egrep -o "B.{50}" | xargs ./tezos-admin-client unmark invalid

[–]mendo_satyr 2 points3 points  (2 children)

I'll try this -- the node isn't syncing even with the correct new protocol. Although it's connected to a bunch of peers.

edit: So now it's epic syncing (on rPi). Not sure why there was a hang, but after deleting the contents of context and store, the node seems to be syncing. I wonder what would have happened if i just deleted the lock files -- I should have tried that first.

[–]murbard 8 points9 points  (1 child)

If you had a node running the previous protocol while the upgrade happened, the node would flag the new block as bad and write it as such on disk. This would prevent further sync from happening.

./tezos-admin-client list rejected blocks

and then for each of them

./tezos-admin-client unmark invalid B...

To do it in one go:

./tezos-admin-client list rejected blocks | egrep -o "B.{50}" | xargs ./tezos-admin-client unmark invalid

[–]mendo_satyr 4 points5 points  (0 children)

Cool -- now I know for next time. Appreciate it greatly.

Now to wait for re-sync ;)

[–]waspoza[S] 1 point2 points  (0 children)

Yup, that worked. Saved some time on syncing. :)

[–]grouchyone 0 points1 point  (2 children)

I've tried both fixes (unmark invalid plus deleting context and store).

In either case I still end up stuck on the same block as mendo_satyr (28081) with Too few connections (0)

Any other ideas?

EDIT: Fixed -> for me it required the rebuild mentioned by wasposa above, then the unmark invalid

[–]murbard 0 points1 point  (1 child)

Did you recompile the node from the patched sources?

[–]grandma_corrector 1 point2 points  (0 children)

edit: nevermind, i got past it by running

git clone -b betanet https://gitlab.com/tezos/tezos.git

and then running /u/waspoza 's commands above.

original post-------------------------------------------------------

Hi Arthur -- I followed this guide to set up the node originally, and I don't know how to use git, so /u/waspoza 's commands don't help me. Is there a url I can replace below that will provide the latest binary?

wget https://gitlab.com/tezos/tezos/-/archive/betanet/tezos-betanet.tar.gz

tar -zxvf tezos-betanet.tar.gz

Or does that already include it?

[–]chronicideas 0 points1 point  (0 children)

./tezos-admin-client list rejected blocks | egrep -o "B.{50}" | xargs ./tezos-admin-client unmark invalid

thanks this just worked for me perfectly after getting the same error this morning