cosmos / relayer-archive

An example of a server side IBC relayer to be used for Game of Zones and beyond
56 stars 31 forks source link

Issue with the instructions in the Readme file? #95

Closed steevi closed 4 years ago

steevi commented 4 years ago

Hello!

I tried setting two chains using gaia, and then use the relayer to do IBC transactions. The commands/instructions were taken from the Readme.md from the master branch.

The two chains launched successfully, and I was able to query the balances of the two accounts by using the rly executable.

When I execute rly tx full-path demo-path, an error message channel capability not found was given as output.

[2020-04-16|16:28:55.502] ✔ [ibc0]@{7} - msg(0:create_client) hash(2FFD0936A8B2987F65FD4315548274882866E2C01B5A2ED2AAD6FAD9FFA74682)
I[2020-04-16|16:29:00.517] ✔ [ibc1]@{8} - msg(0:create_client) hash(5F17BC7D8B0FF0CC94386986BDF6B71A5030EE9D18A48663AB613E392A47C097)
I[2020-04-16|16:29:00.517] ★ Clients created: [ibc0]client(ibconeclient) and [ibc1]client(ibczeroclient)
I[2020-04-16|16:29:05.534] ✔ [ibc0]@{9} - msg(0:connection_open_init) hash(A20240500D73B01855E93629A4728935FAAE91BEC9CD8CAFA34210F71ECF7968)
I[2020-04-16|16:29:15.571] ✘ [ibc0]@{11} - msg(0:connection_open_init) err(connection: connection already exists)
I[2020-04-16|16:29:20.588] ✔ [ibc1]@{12} - msg(0:update_client,1:connection_open_try) hash(B86B7FE51B987B2F84FC2C33DE84D10E010B4FDBF3A716A911E31B01AA3692E9)
I[2020-04-16|16:29:30.593] ✔ [ibc0]@{14} - msg(0:update_client,1:connection_open_ack) hash(13145B9303FC95DEACADE6DA8A31A14E951F8241CA21708B128E4133E25A6A2D)
I[2020-04-16|16:29:40.626] ✔ [ibc1]@{16} - msg(0:update_client,1:connection_open_confirm) hash(601D77195F83B634D2D505EB16A9864D23B1E244EB47F0BC1DF68F35E07CC006)
I[2020-04-16|16:29:40.628] ★ Connection created: [ibc0]client{ibconeclient}conn{ibconeconnection} -> [ibc1]client{ibczeroclient}conn{ibczeroconnection}
I[2020-04-16|16:29:45.647] codespace for port(3) not found in map
I[2020-04-16|16:29:45.647] ✘ [ibc0]@{17} - msg(0:channel_open_init) err(port: )
I[2020-04-16|16:29:55.648] ✘ [ibc0]@{19} - msg(0:channel_open_init) err(channels: channel capability not found)
I[2020-04-16|16:30:05.675] ✘ [ibc0]@{21} - msg(0:channel_open_init) err(channels: channel capability not found)
I[2020-04-16|16:30:10.690] ✘ [ibc0]@{22} - msg(0:channel_open_init) err(channels: channel capability not found)
I[2020-04-16|16:30:20.731] ✘ [ibc0]@{24} - msg(0:channel_open_init) err(channels: channel capability not found)
I[2020-04-16|16:30:30.734] ✘ [ibc0]@{26} - msg(0:channel_open_init) err(channels: channel capability not found)
I[2020-04-16|16:30:40.762] ✘ [ibc0]@{28} - msg(0:channel_open_init) err(channels: channel capability not found)
I[2020-04-16|16:30:50.759] ✘ [ibc0]@{30} - msg(0:channel_open_init) err(channels: channel capability not found)
I[2020-04-16|16:31:00.785] ✘ [ibc0]@{32} - msg(0:channel_open_init) err(channels: channel capability not found)
I[2020-04-16|16:31:10.813] ✘ [ibc0]@{34} - msg(0:channel_open_init) err(channels: channel capability not found)

If I try to do an ibc transfer I get the following error.

$ rly tx transfer ibc0 ibc1 100n0token true $(rly keys show ibc1 testkey) -d
I[2020-04-16|16:32:58.676] - [ibc0] -> sending transaction:
[{"type":"ibc/transfer/MsgTransfer","value":{"source_port":"transfer","source_channel":"ibconexfer","dest_height":"55","amount":[{"denom":"transfer/ibczeroxfer/n0token","amount":"100"}],"sender":"cosmos19j5q2jk0w7e2al4n0dvrkq8th99ckkzf4z3zu0","receiver":"cosmos1efpetuadqethted77e2uytj4tgsn79378td5a7","source":true}}]
I[2020-04-16|16:32:58.676] ✘ [ibc0]@{0} - msg(0:transfer) err(sdk: unauthorized)
{"height":"0","txhash":"D82B327055FD9128784EAEA78FFDE24EF2BC7F30B5FA59DD70B86BA3733DA5DD","codespace":"sdk","code":4,"raw_log":"signature verification failed; verify correct account sequence and chain-id: unauthorized","gas_wanted":"200000","gas_used":"38995"}
Error: failed to send first transaction
Usage:
  rly transactions transfer [src-chain-id] [dst-chain-id] [amount] [is-source] [dst-chain-addr] [flags]

Aliases:
  transfer, xfer

Flags:
  -h, --help          help for transfer
  -p, --path string   specify the path to relay over

Global Flags:
      --config string   set config file (default "config.yaml")
  -d, --debug           debug output
      --home string     set home directory (default "/root/.relayer")

failed to send first transaction

Could this be some misconfiguration by my side? Thanks a lot!

steevi commented 4 years ago

The following output is created if debug mode is enabled for the command rly tx full-path demo-path

rly tx full-path demo-path -d
I[2020-04-16|21:22:15.297] - [ibc0] -> creating client for [ibc1]header-height{45} trust-period(336h0m0s) 
I[2020-04-16|21:22:15.818] - [ibc1] -> creating client for [ibc0]header-height{46} trust-period(336h0m0s) 
I[2020-04-16|21:22:17.682] ✔ [ibc0]@{48} - msg(0:create_client) hash(CF06EA471865F4790B3F01A0B5FEC4F2B4795C721C4FCEAEC9A25357A7C5E784) 
I[2020-04-16|21:22:18.401] ✔ [ibc1]@{48} - msg(0:create_client) hash(6A7D1DCF38D2AEF679812D4E5C94405411261D5E69C2049A86DC4DE7E84DF9C5) 
I[2020-04-16|21:22:18.401] ★ Clients created: [ibc0]client(ibconeclient) and [ibc1]client(ibczeroclient) 
I[2020-04-16|21:22:18.822] - [ibc0]@{0}conn(ibconeconnection)-{UNINITIALIZED} : [ibc1]@{0}conn(ibczeroconnection)-{UNINITIALIZED} 
I[2020-04-16|21:22:20.650] ✔ [ibc0]@{50} - msg(0:connection_open_init) hash(4FB049822990C443EF0EBDA79CD42BA2471B215FD992E3D952D5084DFD59A6A6) 
I[2020-04-16|21:22:28.996] - [ibc1]@{0}conn(ibczeroconnection)-{UNINITIALIZED} : [ibc0]@{54}conn(ibconeconnection)-{INIT} 
I[2020-04-16|21:22:30.021] ✔ [ibc1]@{56} - msg(0:update_client,1:connection_open_try) hash(D26BDAB423A6C42D88E8DB86C7742AC6D16619BCA8EFF0E0E44F5453EFF94D54) 
I[2020-04-16|21:22:39.019] - [ibc0]@{61}conn(ibconeconnection)-{INIT} : [ibc1]@{61}conn(ibczeroconnection)-{TRYOPEN} 
I[2020-04-16|21:22:40.878] ✔ [ibc0]@{64} - msg(0:update_client,1:connection_open_ack) hash(A783B98EB9958C4BB26879396AD878EF7C6B8A2B5790F7B1E3C6577B51639A6B) 
I[2020-04-16|21:22:48.776] - [ibc1]@{68}conn(ibczeroconnection)-{TRYOPEN} : [ibc0]@{68}conn(ibconeconnection)-{OPEN} 
I[2020-04-16|21:22:49.966] ✔ [ibc1]@{70} - msg(0:update_client,1:connection_open_confirm) hash(CA6E85A122AB45CD2CFA762A2005834A5AC71B736755F0C62599CB5DAC66A3EB) 
I[2020-04-16|21:22:49.967] - [ibc0]@{70}conn(ibconeconnection)-{OPEN} : [ibc1]@{70}conn(ibczeroconnection)-{OPEN} 
I[2020-04-16|21:22:49.968] ★ Connection created: [ibc0]client{ibconeclient}conn{ibconeconnection} -> [ibc1]client{ibczeroclient}conn{ibczeroconnection} 
I[2020-04-16|21:22:50.460] - [ibc0]@{0}chan(ibconexfer)-{UNINITIALIZED} : [ibc1]@{0}chan(ibczeroxfer)-{UNINITIALIZED} 
I[2020-04-16|21:22:52.649] - [ibc0] -> sending transaction:             
[{"type":"ibc/channel/MsgChannelOpenInit","value":{"port_id":"transfer","channel_id":"ibconexfer","channel":{"state":"INIT","ordering":"ORDERED","counterparty":{"port_id":"transfer","channel_id":"ibczeroxfer"},"connection_hops":["ibconeconnection"],"version":"1.0.0"},"signer":"cosmos1llw8sxr8yt3t7jd8yhcvnytkrxnzynwwpunaqz"}}]
I[2020-04-16|21:22:52.649] codespace for port(3) not found in map       
I[2020-04-16|21:22:52.649] ✘ [ibc0]@{72} - msg(0:channel_open_init) err(port: ) 
{"height":"72","txhash":"75C71371B141526821A0D29879933F1D710D292E228DF773D5CCD80212C4847D","codespace":"port","code":3,"raw_log":"failed to execute message; message index: 0: invalid version: 1.0.0, expected ics20-1: invalid port","gas_wanted":"200000","gas_used":"63564"}
I[2020-04-16|21:23:00.365] - [ibc0]@{0}chan(ibconexfer)-{UNINITIALIZED} : [ibc1]@{0}chan(ibczeroxfer)-{UNINITIALIZED} 
I[2020-04-16|21:23:02.253] - [ibc0] -> sending transaction:             
[{"type":"ibc/channel/MsgChannelOpenInit","value":{"port_id":"transfer","channel_id":"ibconexfer","channel":{"state":"INIT","ordering":"ORDERED","counterparty":{"port_id":"transfer","channel_id":"ibczeroxfer"},"connection_hops":["ibconeconnection"],"version":"1.0.0"},"signer":"cosmos1llw8sxr8yt3t7jd8yhcvnytkrxnzynwwpunaqz"}}]
I[2020-04-16|21:23:02.253] ✘ [ibc0]@{79} - msg(0:channel_open_init) err(channels: channel capability not found) 
{"height":"79","txhash":"97F77D92DF62DFD4100662937C51256290BDD0438C50575847FC19F2DA75F35A","codespace":"channels","code":7,"raw_log":"failed to execute message; message index: 0: module: ibc, name: 2/ports/transfer/channels/ibconexfer/key: capability name already taken: invalid channel capability","gas_wanted":"200000","gas_used":"51350"}
I[2020-04-16|21:23:10.471] - [ibc0]@{0}chan(ibconexfer)-{UNINITIALIZED} : [ibc1]@{0}chan(ibczeroxfer)-{UNINITIALIZED} 
I[2020-04-16|21:23:12.153] - [ibc0] -> sending transaction:             
[{"type":"ibc/channel/MsgChannelOpenInit","value":{"port_id":"transfer","channel_id":"ibconexfer","channel":{"state":"INIT","ordering":"ORDERED","counterparty":{"port_id":"transfer","channel_id":"ibczeroxfer"},"connection_hops":["ibconeconnection"],"version":"1.0.0"},"signer":"cosmos1llw8sxr8yt3t7jd8yhcvnytkrxnzynwwpunaqz"}}]
I[2020-04-16|21:23:12.153] ✘ [ibc0]@{86} - msg(0:channel_open_init) err(channels: channel capability not found) 
{"height":"86","txhash":"6A5ED09256618661D9D37741F001072991B46BC7721A5D2E1FF18171BAD53429","codespace":"channels","code":7,"raw_log":"failed to execute message; message index: 0: module: ibc, name: 2/ports/transfer/channels/ibconexfer/key: capability name already taken: invalid channel capability","gas_wanted":"200000","gas_used":"51350"}
I[2020-04-16|21:23:20.790] - [ibc0]@{0}chan(ibconexfer)-{UNINITIALIZED} : [ibc1]@{0}chan(ibczeroxfer)-{UNINITIALIZED} 
I[2020-04-16|21:23:21.918] - [ibc0] -> sending transaction:             
[{"type":"ibc/channel/MsgChannelOpenInit","value":{"port_id":"transfer","channel_id":"ibconexfer","channel":{"state":"INIT","ordering":"ORDERED","counterparty":{"port_id":"transfer","channel_id":"ibczeroxfer"},"connection_hops":["ibconeconnection"],"version":"1.0.0"},"signer":"cosmos1llw8sxr8yt3t7jd8yhcvnytkrxnzynwwpunaqz"}}]
I[2020-04-16|21:23:21.918] ✘ [ibc0]@{93} - msg(0:channel_open_init) err(channels: channel capability not found) 
{"height":"93","txhash":"8CEE7EB84C92B96EB3306AB34AE1F2BD57BFD907CBD03C4C9B538FD84FA91CFE","codespace":"channels","code":7,"raw_log":"failed to execute message; message index: 0: module: ibc, name: 2/ports/transfer/channels/ibconexfer/key: capability name already taken: invalid channel capability","gas_wanted":"200000","gas_used":"51350"}
cwgoes commented 4 years ago

You might have more success opening this issue on https://github.com/iqlusioninc/relayer.

steevi commented 4 years ago

Everything works from that fork.

Thanks a lot