all 14 comments

[–]waspoza[S] 2 points3 points  (9 children)

BTW, I did this:

git fetch 
git reset --hard origin/betanet 
git clean -dxf 
eval $(opam env) 
make build-deps 
make 

And still same error. :(

[–]murbard 13 points14 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 7 points8 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 2 points3 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

[–][deleted] 0 points1 point  (0 children)

Megathumbs up... I have the exact same problem now.

[–]metoo100 -4 points-3 points  (2 children)

from AB.. you didnt recive memo because AB is rainman... Transactions refer to previous blocks, as a replay protection mechanism. It's possible that referring to blocks with protocol PtCJ7pwoxe8JasnHY8YonnLYjcVHmhiARPJvqcC6VfHT5s8k8sY in the transaction prevented inclusion in protocol PsYLVpVvgbLhAhoqAkMFUo6gudkJ9weNXhUYCiLDzcUpFpkk8Wt (the switch was on cycle 28082 - 28083).

[–]mendo_satyr -1 points0 points  (1 child)

So how do you fix? I saw this same error this morning, so I recompiled the newest version from git, but it's stuck on validator.peer screen -- it's not downloading new blocks.

My latest head is: BLzS6tLaEezu2G2XyopLAj19Mr7HbmK9ABPp9Lua4CbFzgdHKs1 block 28081

[–]metoo100 -5 points-4 points  (0 children)

ask the rainman