You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then I ran CreateConsumerMessage via $PROVIDER_BINARY tx provider create-consumer <path_to_json> --from= validator --gas auto --fees 5000stake --chain-id provider-chain (where validator is the account name of my only validator of the provider). This step works fine and gives the consumer chain a consumer ID of 0.
Next I opt in with my validator (this is before the spawn time ends): $PROVIDER_BINARY tx provider opt-in 0 --from validator --gas auto --fees 5000stake. This sets the state to CONSUMER_PHASE_INITIALIZED if checking it with $PROVIDER_BINARY query provider consumer-chain 0.
Next I waited until the spawn time passes, then I export the ccvconsumer data via: $PROVIDER_BINARY query provider consumer-genesis -o json > ccvconsumer.json. That one looks like this:
grpc_laddr = "tcp://127.0.0.1:9092" and in app.toml address = "localhost:9091"
Provider:
rpc_laddr = "tcp://0.0.0.0:26657"
p2p_laddr = "tcp://0.0.0.0:26656"
proxy_app = "tcp://127.0.0.1:26658"
node = "tcp://localhost:26657"
grpc_laddr = "tcp://0.0.0.0:9090" and in app.toml address = "localhost:9090"
I add a persistent peer via persistent_peers = "[email protected]:26656" in config.toml of the consumer. Note: I've tried @0:0:0:0:26656 and@localhost:26656 but every time I get the same error (see logs below)
Then i run the consumer (provider is already running). And I always get the following logs:
9:15PM INF No addresses to dial. Falling back to seeds module=pex
9:15PM ERR Can't add peer's address to addrbook err="Cannot add non-routable address bb31ae15e86a7a1d4f70f1269a7fcfa5f3000b4d@[127:0:0:1]:26656" module=p2p
9:15PM INF Saving AddrBook to file book=.../.interchain-security-c/config/addrbook.json module=p2p size=0
9:15PM INF starting gRPC server... address=localhost:9091 module=grpc-server
9:15PM ERR Error dialing peer err="incompatible: peer is on a different network. Got provider-chain, expected zone_chain" module=p2p
So to me it looks like something in the configuration went wrong, since the consumer chain seems to search for its own nodes rather then from the provider...But I'm not sure if this is the right interpretation...
Do you have any ideas where the problem might be? Am I missing something in the configuration?
Any ideas are very welcome...This quite a hard one to debug..
Note: concerning the relayer, when i try to create a channel via hermes create connection --a-chain zone_chain --a-client 07-tendermint-0 --b-client 07-tendermint-0 and both chains are running, I get the output:
INFO ThreadId(01) using default configuration from '....hermes/config.toml'
2024-11-30T02:07:21.276323Z INFO ThreadId(01) running Hermes v1.10.4+542e14f
2024-11-30T02:07:21.558650Z WARN ThreadId(01) Failed to fetch version specs for chain 'zone_chain': ABCI query returned an error: AbciQuery { code: Err(26), log: "interchain-security-c is not ready; please wait for first block: invalid height", info: "", index: 0, key: [], value: [], proof: None, height: block::Height(0), codespace: "sdk" }
2024-11-30T02:07:21.561202Z WARN ThreadId(01) Will fall back on using the node version: 0.38.15
ERROR failed while querying client '07-tendermint-0' on chain 'zone_chain' with error: error decoding protobuf: error converting message type into domain type: the client state was not found
So with this config I can run hermes, but I get a bunch of errors (which is logical since I can't create the channels properly...)
INFO ThreadId(01) running Hermes v1.10.4+542e14f
2024-11-30T01:33:14.056758Z INFO ThreadId(01) telemetry: telemetry disabled
2024-11-30T01:33:14.056804Z INFO ThreadId(01) rest: REST server disabled
2024-11-30T01:33:14.953483Z INFO ThreadId(01) health_check{chain=provider-chain}: chain is healthy
2024-11-30T01:33:15.327112Z WARN ThreadId(01) health_check{chain=zone_chain}: Failed to fetch version specs for chain 'zone_chain': ABCI query returned an error: AbciQuery { code: Err(26), log: "interchain-security-c is not ready; please wait for first block: invalid height", info: "", index: 0, key: [], value: [], proof: None, height: block::Height(0), codespace: "sdk" }
2024-11-30T01:33:15.327587Z WARN ThreadId(01) health_check{chain=zone_chain}: Will fall back on using the node version: 0.38.15
2024-11-30T01:33:15.698096Z WARN ThreadId(16) health_check{chain=zone_chain}: health check failed for chain 'zone_chain'
2024-11-30T01:33:15.698120Z WARN ThreadId(16) health_check{chain=zone_chain}: reason: node at http://127.0.0.1:26658/ running chain zone_chain not caught up
2024-11-30T01:33:15.698131Z WARN ThreadId(16) health_check{chain=zone_chain}: some Hermes features may not work in this mode!
2024-11-30T01:33:15.698156Z WARN ThreadId(01) health_check{chain=zone_chain}: chain is not healthy: node at http://127.0.0.1:26658/ running chain zone_chain not caught up
2024-11-30T01:33:15.698222Z INFO ThreadId(01) scan.chain{chain=provider-chain}: scanning chain...
2024-11-30T01:33:15.698292Z INFO ThreadId(01) scan.chain{chain=provider-chain}: chain uses an allow list (without wildcards), skipping scan for fast startup
2024-11-30T01:33:15.698300Z INFO ThreadId(01) scan.chain{chain=provider-chain}: allowed ports/channels: transfer/channel-3108
2024-11-30T01:33:15.698309Z INFO ThreadId(01) scan.chain{chain=provider-chain}: querying allowed channels...
2024-11-30T01:33:15.698327Z INFO ThreadId(01) scan.chain{chain=provider-chain}:scan.channel{port=transfer channel=channel-3108}: querying channel...
2024-11-30T01:33:15.699209Z ERROR ThreadId(01) scan.chain{chain=provider-chain}: failed to scan channel, reason: channel 'transfer/channel-3108' on chain 'provider-chain' is uninitialized channel=channel-3108
2024-11-30T01:33:15.699249Z INFO ThreadId(01) scan.chain{chain=zone_chain}: scanning chain...
2024-11-30T01:33:15.699301Z INFO ThreadId(01) scan.chain{chain=zone_chain}: chain uses an allow list (without wildcards), skipping scan for fast startup
2024-11-30T01:33:15.699309Z INFO ThreadId(01) scan.chain{chain=zone_chain}: allowed ports/channels: transfer/channel-0
2024-11-30T01:33:15.699316Z INFO ThreadId(01) scan.chain{chain=zone_chain}: querying allowed channels...
2024-11-30T01:33:15.699324Z INFO ThreadId(01) scan.chain{chain=zone_chain}:scan.channel{port=transfer channel=channel-0}: querying channel...
2024-11-30T01:33:15.699830Z ERROR ThreadId(01) scan.chain{chain=zone_chain}: failed to scan channel, reason: channel 'transfer/channel-0' on chain 'zone_chain' is uninitialized channel=channel-0
2024-11-30T01:33:15.699852Z INFO ThreadId(01) scanned chains:
2024-11-30T01:33:15.699857Z INFO ThreadId(01) # Chain: provider-chain
# Chain: zone_chain
2024-11-30T01:33:15.699969Z INFO ThreadId(01) spawn:chain{chain=provider-chain}: spawning Wallet worker: wallet::provider-chain
2024-11-30T01:33:15.700019Z INFO ThreadId(01) spawn:chain{chain=zone_chain}: spawning Wallet worker: wallet::zone_chain
2024-11-30T01:33:15.700157Z ERROR ThreadId(18) spawn:chain{chain=zone_chain}:wallet{chain=zone_chain}: task aborting after encountering fatal error: failed to get key in use by the relayer: signature key not found: consumer-key: cannot find key file at '.../.hermes/keys/zone_chain/keyring-test/consumer-key.json'
Any ideas how to get unstuck here would be greatly appreciated.
The text was updated successfully, but these errors were encountered:
Hi,
I'm running a provider locally and I'm trying to add a consumer to the provider and run it locally as well.
Note: I have 1 validator on the provider and I want them to validate the consumer (i.e. the consumer should not have its own validators)
Steps that I have done:
$CONSUMER_BINARY init zone_hub --chain-id zone_chain
chain_id
spawn_time
,genesis_hash
andbinary
, e.g:$PROVIDER_BINARY tx provider create-consumer <path_to_json> --from= validator --gas auto --fees 5000stake --chain-id provider-chain
(wherevalidator
is the account name of my only validator of the provider). This step works fine and gives the consumer chain a consumer ID of0
.$PROVIDER_BINARY tx provider opt-in 0 --from validator --gas auto --fees 5000stake
. This sets the state toCONSUMER_PHASE_INITIALIZED
if checking it with$PROVIDER_BINARY query provider consumer-chain 0
.$PROVIDER_BINARY query provider consumer-genesis -o json > ccvconsumer.json
. That one looks like this:ccvconsumer
part of the consumer'sgenesis.json
file.rpc_laddr = "tcp://127.0.0.1:26667"
-
p2p_laddr = "tcp://0.0.0.0:26666"
proxy_app = "tcp://127.0.0.1:26668"
-
node = "tcp://localhost:26660"
grpc_laddr = "tcp://127.0.0.1:9092"
and in app.tomladdress = "localhost:9091"
Provider:
rpc_laddr = "tcp://0.0.0.0:26657"
p2p_laddr = "tcp://0.0.0.0:26656"
proxy_app = "tcp://127.0.0.1:26658"
node = "tcp://localhost:26657"
grpc_laddr = "tcp://0.0.0.0:9090"
and in app.tomladdress = "localhost:9090"
persistent_peers = "[email protected]:26656"
in config.toml of the consumer. Note: I've tried@0:0:0:0:26656
and@localhost:26656
but every time I get the same error (see logs below)Then i run the consumer (provider is already running). And I always get the following logs:
So to me it looks like something in the configuration went wrong, since the consumer chain seems to search for its own nodes rather then from the provider...But I'm not sure if this is the right interpretation...
Do you have any ideas where the problem might be? Am I missing something in the configuration?
Any ideas are very welcome...This quite a hard one to debug..
Note: concerning the relayer, when i try to create a channel via
hermes create connection --a-chain zone_chain --a-client 07-tendermint-0 --b-client 07-tendermint-0
and both chains are running, I get the output:The config.toml of hermes looks like this:
So with this config I can run hermes, but I get a bunch of errors (which is logical since I can't create the channels properly...)
Any ideas how to get unstuck here would be greatly appreciated.
The text was updated successfully, but these errors were encountered: