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: Error while creating Hermes relayer client between Earth and Mars chains (in IBC Tutorial) #4391

Open
Srutip04 opened this issue Oct 17, 2024 · 2 comments
Labels
type:bug Something isn't working

Comments

@Srutip04
Copy link

Srutip04 commented Oct 17, 2024

Title: Error while creating Hermes relayer client between Earth and Mars chains

Description:

I am trying to configure a Hermes relayer between two chains, Earth and Mars, using the Ignite CLI. During the configuration process, I encountered an error while attempting to create a client. Below are the details of the issue:

Steps to Reproduce:

  1. Run the following command to configure the Hermes relayer:

    ignite relayer hermes configure "earth" "http://localhost:26657" "http://localhost:9090" "mars" "http://localhost:26659" "http://localhost:9092" --chain-a-faucet "http://0.0.0.0:4500" --chain-b-faucet "http://0.0.0.0:4501" --chain-a-port-id "blog" --chain-b-port-id "blog" --channel-version "blog-1"
  2. Confirm the reuse of the existing configuration file.

  3. Observe the following error message after the configuration:

    ✘ Error while running command /tmp/hermes3270493899 --config=/root/.ignite/relayer/hermes/earth_mars --json create client --host-chain=earth --reference-chain=mars: exit status 1
    
image

Expected Behavior:

I expected the command to successfully create a client between the Earth and Mars chains.

Actual Behavior:

The command fails with an error indicating that it exited with status 1.

Environment:

image

Additional Information:

  • I have already checked the following:
    • Both chains (Earth and Mars) are running and accessible.
    • The RPC and gRPC addresses provided in the command are correct.
    • I have sufficient balance in both relayer wallets.
@Srutip04 Srutip04 added the type:bug Something isn't working label Oct 17, 2024
@chen4903
Copy link

chen4903 commented Nov 11, 2024

I have the same problem. These are my logs:

Hermes earth <-> mars config already exist at /Users/levi/.ignite/relayer/hermes/earth_mars. Do you want to reuse this config file: y
Hermes config created at /Users/levi/.ignite/relayer/hermes/earth_mars
Chain earth relayer wallet: cosmos18vjc7lncuf2qe9ed6785g5dmyx0a5fywre2nx9
New balance from faucet: 100000stake,5token
? Chain mars doesn't have a default Hermes key. Type your mnemonic to continue or type enter to generate a new one: (optional) 
New mnemonic generated: leisure public rug short wire inherit doctor thought license believe radio grocery pride field observe narrow kit host three age emerge female true fire
Chain mars key created
Chain mars relayer wallet: cosmos19xdsskuetmplf5atejh0y6rthxvd5wrh2qy8pl
New balance from faucet: 100000stake,5token
✘ Error while running command /var/folders/c4/p5jlhrr966gg3dn3lz6wkknr0000gn/T/hermes1093786263 --config=/Users/levi/.ignite/relayer/hermes/earth_mars --json create client --reference-chain=mars --host-chain=earth: exit status 1

@Srutip04 We can fix it by this:

Hermes earth <-> mars config already exist at /Users/levi/.ignite/relayer/hermes/earth_mars. Do you want to reuse this config file: N

Now it is working:

✗ Hermes earth <-> mars config already exist at /Users/levi/.ignite/relayer/hermes/earth_mars. Do you want to reuse this config file: 
Hermes config created at /Users/levi/.ignite/relayer/hermes/earth_mars
Chain earth relayer wallet: cosmos18vjc7lncuf2qe9ed6785g5dmyx0a5fywre2nx9
New balance from faucet: 200000stake,10token
Chain mars relayer wallet: cosmos19xdsskuetmplf5atejh0y6rthxvd5wrh2qy8pl
New balance from faucet: 200000stake,10token
Client '07-tendermint-0' created (earth -> mars)
Client 07-tendermint-0' created (mars -> earth)
Connection 'earth (connection-0) <-> mars (connection-0)' created
Channel 'earth (channel-0) <-> mars (channel-0)' created

btw, I don't know the core reason of it, maybe someone could provide some ideas?

@chen4903
Copy link

Oh no, when I delete the cache rm -rf ~/.ignite/relayer and retry, it is fail:

aefaefaefeaf _ 1.1
Hermes config created at /Users/levi/.ignite/relayer/hermes/earth_mars
The Hermes configuration file at path '/Users/levi/.ignite/relayer/hermes/earth_mars' is invalid, reason: parse error: invalid CosmosSdk config: invalid trust threshold: 0/0 for key `chains` at line 60 column 1
Please see the example configuration for detailed information about the supported configuration options: https://github.com/informalsystems/hermes/blob/master/config.toml
✘ Error while running command /var/folders/c4/p5jlhrr966gg3dn3lz6wkknr0000gn/T/hermes252080209 --config=/Users/levi/.ignite/relayer/hermes/earth_mars --json keys list --chain=earth: exit status 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
Status: To Discuss
Development

No branches or pull requests

2 participants