Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Restarting node won't sync anymore. #7345

Closed
aidenthefox opened this issue Oct 18, 2020 · 15 comments
Closed

Restarting node won't sync anymore. #7345

aidenthefox opened this issue Oct 18, 2020 · 15 comments
Labels
J2-unconfirmed Issue might be valid, but it’s not yet known.

Comments

@aidenthefox
Copy link

I started a single validator chain, it's running fine producing blocks and finalizing. Then i started a new node connecting to the validator, it sync's and keeps on synching. If I restart this node, it won't sync anymore. Is this expected on a chain with a single validator? I have not yet tried making it with 2 or more validators, I just want to know if syncing won't happen in this case if the 2nd non validating node stops and starts again.

@github-actions github-actions bot added the J2-unconfirmed Issue might be valid, but it’s not yet known. label Oct 18, 2020
@bkchr
Copy link
Member

bkchr commented Oct 18, 2020

Hey no that is not expected.

Please run the second node with -lsync=trace and post a log of it. Otherwise we can not help ;)

@aidenthefox

This comment has been minimized.

@aidenthefox
Copy link
Author

LOG.txt

@bkchr
Copy link
Member

bkchr commented Oct 19, 2020

This is not the output of running with -lsync=trace?

There isn't anything useful in these logs.

@aidenthefox
Copy link
Author

trace.log

@bkchr
Copy link
Member

bkchr commented Oct 19, 2020

@aidenthefox which version of Substrate are you using?

And could you please give a detailed (which command you have executed) write up on how to reproduce this?

@aidenthefox
Copy link
Author

v2.0.0

./substrate --chain raw.json --base-path /tmp/node02 --port 30334 --ws-port 9945 --rpc-port 9934 --telemetry-url 'wss://telemetry.polkadot.io/submit/ 0' --rpc-methods=Unsafe --name MyNode02 --bootnodes /ip4/45.79.90.146/tcp/30333/p2p/12D3KooWNQjZT9LNi5jnJUwageh89sQSm4xfzA3kmRxnzexRBAzW

@aidenthefox
Copy link
Author

i simply booted up a chain with a custom spec (just 1 validator) and used a new instance of a non validating node to sync to it.

also, the chain spec i modified this:

  "palletStaking": {
    "historyDepth": 84,
    "validatorCount": 2,
    "minimumValidatorCount": 1,
    "invulnerables": [],
    "forceEra": "ForceNone",
    "slashRewardFraction": 100000000,
    "canceledPayout": 0,
    "stakers": [
      [
        "5HQGEpUoGGwiBQU6uSunL1HKFQyD4QFaq77EkSRW8dq6ohgr",
        "5GZ3Ty9kqzDnwbH1QaZvKKfCgJsfaY1k24yA1rWqhP7wh82p",
        1000000000000000000000,
        "Validator"
      ]
    ]
  },

i'm not sure if it's a factor but i changed forceEra and removed the invulnerables

@bkchr
Copy link
Member

bkchr commented Oct 19, 2020

Can you please post the full chain spec, ty.

And could you also try to reproduce this on master?

@aidenthefox
Copy link
Author

this is the chain spec:

custom.json.txt

i'll try to reproduce this it on master later and give you feedback

@aidenthefox
Copy link
Author

using the master branch for the main node (validator) makes the v2.0.0 nodes (non validators) sync, so it seems the problem is using v2.0.0 in the main node. @bkchr

@aidenthefox
Copy link
Author

i tried upgrading to master branch the non validator node and it still won't sync. but when i upgraded the main node to master, the v2 node and the master node can now sync to the main node.

@bkchr
Copy link
Member

bkchr commented Oct 20, 2020

So this is fixed?

@aidenthefox
Copy link
Author

So this is fixed?

yes it seems fixed in master

@bkchr
Copy link
Member

bkchr commented Oct 20, 2020

Perfect, thank you for testing master. I will close this pr now.

@bkchr bkchr closed this as completed Oct 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
J2-unconfirmed Issue might be valid, but it’s not yet known.
Projects
None yet
Development

No branches or pull requests

2 participants