Skip to content
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

Fix closed connection #1322

Merged
merged 3 commits into from
Oct 25, 2024
Merged

Fix closed connection #1322

merged 3 commits into from
Oct 25, 2024

Conversation

yrong
Copy link
Contributor

@yrong yrong commented Oct 24, 2024

Resolve failure in westend-sepolica testnet with relaychain connection closed after a long scan.

Oct 24 06:59:18 ip-172-31-41-212 start-asset-hub-parachain-relay.sh[2528854]: {"@timestamp":"2024-10-24T06:59:18.410647515Z","level":"info","message":"waiting for nonce 38 to be picked up by another relayer"}
Oct 24 06:59:18 ip-172-31-41-212 start-asset-hub-parachain-relay.sh[2528854]: {"@timestamp":"2024-10-24T06:59:18.590903044Z","level":"info","message":"nonce 38 is not picked up by any one, submit anyway"}
Oct 24 06:59:18 ip-172-31-41-212 start-asset-hub-parachain-relay.sh[2528854]: panic: runtime error: invalid memory address or nil pointer dereference
Oct 24 06:59:18 ip-172-31-41-212 start-asset-hub-parachain-relay.sh[2528854]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0xe7b1d0]
Oct 24 06:59:18 ip-172-31-41-212 start-asset-hub-parachain-relay.sh[2528854]: goroutine 79 [running]:
Oct 24 06:59:18 ip-172-31-41-212 start-asset-hub-parachain-relay.sh[2528854]: github.com/snowfork/snowbridge/relayer/relays/parachain.(*BeefyListener).generateProof(0xc0003b82d0, {0x1491900?, 0xc0003b8370?}, 0x0, 0xc000b61280)
Oct 24 06:59:18 ip-172-31-41-212 start-asset-hub-parachain-relay.sh[2528854]:         /home/ubuntu/projects/snowbridge-westend/relayer/relays/parachain/beefy-listener.go:239 +0x1b0
Oct 24 06:59:18 ip-172-31-41-212 start-asset-hub-parachain-relay.sh[2528854]: github.com/snowfork/snowbridge/relayer/relays/parachain.(*BeefyListener).waitAndSend(0xc0003b82d0, {0x1491900, 0xc0003b8370}, 0xc000721960, 0x0)
Oct 24 06:59:18 ip-172-31-41-212 start-asset-hub-parachain-relay.sh[2528854]:         /home/ubuntu/projects/snowbridge-westend/relayer/relays/parachain/beefy-listener.go:349 +0x22b
Oct 24 06:59:18 ip-172-31-41-212 start-asset-hub-parachain-relay.sh[2528854]: github.com/snowfork/snowbridge/relayer/relays/parachain.(*BeefyListener).doScan(0xc0003b82d0, {0x1491900, 0xc0003b8370}, 0x8c9f9797f5076c39?)
Oct 24 06:59:18 ip-172-31-41-212 start-asset-hub-parachain-relay.sh[2528854]:         /home/ubuntu/projects/snowbridge-westend/relayer/relays/parachain/beefy-listener.go:169 +0xfe
Oct 24 06:59:18 ip-172-31-41-212 start-asset-hub-parachain-relay.sh[2528854]: github.com/snowfork/snowbridge/relayer/relays/parachain.(*BeefyListener).Start.func1()
Oct 24 06:59:18 ip-172-31-41-212 start-asset-hub-parachain-relay.sh[2528854]:         /home/ubuntu/projects/snowbridge-westend/relayer/relays/parachain/beefy-listener.go:101 +0x119
Oct 24 06:59:18 ip-172-31-41-212 start-asset-hub-parachain-relay.sh[2528854]: golang.org/x/sync/errgroup.(*Group).Go.func1()
Oct 24 06:59:18 ip-172-31-41-212 start-asset-hub-parachain-relay.sh[2528854]:         /home/ubuntu/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:78 +0x56
Oct 24 06:59:18 ip-172-31-41-212 start-asset-hub-parachain-relay.sh[2528854]: created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 1
Oct 24 06:59:18 ip-172-31-41-212 start-asset-hub-parachain-relay.sh[2528854]:         /home/ubuntu/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:75 +0x96
Oct 24 06:59:18 ip-172-31-41-212 systemd[1]: snowbridge-asset-hub-parachain-relay.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Oct 24 06:59:18 ip-172-31-41-212 systemd[1]: snowbridge-asset-hub-parachain-relay.service: Failed with result 'exit-code'.

Tested that after the fix the parachain relayer worked as expected.

@yrong yrong merged commit 32a47d7 into main Oct 25, 2024
1 check passed
@yrong yrong deleted the ron/fix-connection-closed branch October 25, 2024 03:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants