Unable to get validator set on latest relayer image
Closed this issue · 1 comments
Describe the bug
I recently upgraded my relayer image to latest and now when starting up the relayer using the same configs, I receive this error:
{"level":"info","timestamp":"2024-11-30T16:49:27.610Z","logger":"awm-relayer","caller":"evm/destination_client.go:105","msg":"Initialized destination client","blockchainID":"Nsv3bi5iGAskNUZURQ3bxdd2kvWXsD6YPCvB5GqcKPK9yTZzy","evmChainID":"555555","nonce":1}
{"level":"info","timestamp":"2024-11-30T16:49:27.618Z","logger":"awm-relayer","caller":"main/main.go:118","msg":"Initializing source clients"}
{"level":"info","timestamp":"2024-11-30T16:49:27.619Z","logger":"awm-relayer","caller":"main/main.go:133","msg":"Initializing app request network"}
{"level":"error","timestamp":"2024-11-30T16:49:27.666Z","logger":"p2p-network","caller":"validators/canonical_validator_client.go:52","msg":"Failed to get the canonical subnet validator set","subnetID":"2jGy2bNDbjXwDvwJUbZkQ1KRUsrmKCFXd2wuSVNtSpAddL84vU","error":"failed to decode client response: couldn't unmarshal an argument. Ensure arguments are valid and properly formatted. See documentation for example calls"}
{"level":"error","timestamp":"2024-11-30T16:49:27.667Z","logger":"awm-relayer","caller":"relayer/network_utils.go:63","msg":"Failed to connect to canonical validators","subnetID":"2jGy2bNDbjXwDvwJUbZkQ1KRUsrmKCFXd2wuSVNtSpAddL84vU","error":"failed to decode client response: couldn't unmarshal an argument. Ensure arguments are valid and properly formatted. See documentation for example calls"}
{"level":"fatal","timestamp":"2024-11-30T16:49:27.667Z","logger":"awm-relayer","caller":"main/main.go:180","msg":"Failed to initialize connections and check stake","error":"failed to connect to non-primary network peers: failed to decode client response: couldn't unmarshal an argument. Ensure arguments are valid and properly formatted. See documentation for example calls"}
panic: failed to connect to non-primary network peers: failed to decode client response: couldn't unmarshal an argument. Ensure arguments are valid and properly formatted. See documentation for example calls
To Reproduce
awm-relayer --config-file /config/relayer-config.json
{
"info-api": {
"base-url": "http://172.16.0.7:9650"
},
"p-chain-api": {
"base-url": "http://172.16.0.7:9650"
},
"source-blockchains": [
{
"subnet-id": "2jGy2bNDbjXwDvwJUbZkQ1KRUsrmKCFXd2wuSVNtSpAddL84vU",
"blockchain-id": "Nsv3bi5iGAskNUZURQ3bxdd2kvWXsD6YPCvB5GqcKPK9yTZzy",
"vm": "evm",
"rpc-endpoint": {
"base-url": "http://172.16.0.7:9650/ext/bc/Nsv3bi5iGAskNUZURQ3bxdd2kvWXsD6YPCvB5GqcKPK9yTZzy/rpc"
},
"ws-endpoint": {
"base-url": "ws://172.16.0.7:9650/ext/bc/Nsv3bi5iGAskNUZURQ3bxdd2kvWXsD6YPCvB5GqcKPK9yTZzy/ws"
},
"message-contracts": {
"0x253b2784c75e510dD0fF1da844684a1aC0aa5fcf": {
"message-format": "teleporter",
"settings": {
"reward-address": "0xc0ffee254729296a45a3885639AC7E10F9d54979"
}
}
}
}
],
"destination-blockchains": [
{
"subnet-id": "2jGy2bNDbjXwDvwJUbZkQ1KRUsrmKCFXd2wuSVNtSpAddL84vU",
"blockchain-id": "Nsv3bi5iGAskNUZURQ3bxdd2kvWXsD6YPCvB5GqcKPK9yTZzy",
"vm": "evm",
"rpc-endpoint": {
"base-url": "http://172.16.0.7:9650/ext/bc/Nsv3bi5iGAskNUZURQ3bxdd2kvWXsD6YPCvB5GqcKPK9yTZzy/rpc"
},
"account-private-key": "<>"
}
],
"redis-url": "redis://redis:6379"
}
Expected behavior
The relayer to start successfully.
Logs
Shown above.
Operating System
Linux / arm64
Additional context
I am running 3 nodes locally validating a single subnet (pre etna upgrade). When I run the same config against a previous image, it works. I am assuming I need to update my config or setup in some way for the new upgrade? I'm also currently running avalanchego v1.11
Hi @tedim52 , the image avaplatform/awm-relayer:latest
was erroneously updated with a prerelease that's only compatible with nodes running the Avalanchego Fuji prerelease. avaplatform/awm-relayer:latest
has been reverted to the previous full release, v1.4.0
(technically it points to v1.4.1
, which is identical to v1.4.0
with the exception of a workaround to the recent repo renaming). Please let me know if you have any questions. Apologies for any inconvenience.
If you'd like to experiment with the Fuji Etna prerelease, it's available at avaplatform/icm-relayer:v2.0.0-fuji.