Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[BUG] docker compose account_public_key is missing when generating kagami #3829

Closed
timofeevmd opened this issue Aug 21, 2023 · 1 comment
Closed
Assignees
Labels
Bug Something isn't working iroha2-dev The re-implementation of a BFT hyperledger in RUST QA-confirmed This bug is reproduced and needs a fix

Comments

@timofeevmd
Copy link
Contributor

timofeevmd commented Aug 21, 2023

OS and Environment

Dockerhub, linux Ubuntu 22.04.2 LTS

GIT commit hash

ee60fc8

Minimum working example / Steps to reproduce

cargo install --git https://github.com/hyperledger/iroha.git \
   --all-features \
   --rev 7e7c120e \
   --root ./cargo-install-root \
   kagami
./kagami  swarm  --peers 5 dir ./kagami_config_image --image hyperledger/iroha2:dev
docker compose -f ./kagami_config_image/docker-compose.yml up

Actual result

Error: Please add `account_public_key` to the configuration

Expected result

Iroha2 is working, 4 peers is working

Logs in JSON format

```bash mtimofeev@s5-tst-iroha2-iroha-tech:~/project/iroha/kagami_config/cargo-install-root/bin$ docker-compose -f ./kagami_config_image/docker-compose.yml up [+] Running 6/0 ✔ Network kagami_config_image_default Created 0.0s ✔ Container kagami_config_image-iroha4-1 Created 0.0s ✔ Container kagami_config_image-iroha1-1 Created 0.0s ✔ Container kagami_config_image-iroha2-1 Created 0.0s ✔ Container kagami_config_image-iroha0-1 Created 0.0s ✔ Container kagami_config_image-iroha3-1 Created 0.0s Attaching to kagami_config_image-iroha0-1, kagami_config_image-iroha1-1, kagami_config_image-iroha2-1, kagami_config_image-iroha3-1, kagami_config_image-iroha4-1 kagami_config_image-iroha0-1 | 2023-08-21T12:11:42.306395Z WARN iroha: The configuration parameter `DISABLE_PANIC_TERMINAL_COLORS` is deprecated. Set `TERMINAL_COLORS=false` instead. kagami_config_image-iroha0-1 | 2023-08-21T12:11:42.306419Z INFO iroha: Hyperledgerいろは2にようこそ!(translation) Welcome to Hyperledger Iroha! version=2.0.0-pre-rc.19 git_commit_sha="ee60fc8" kagami_config_image-iroha0-1 | 2023-08-21T12:11:42.308453Z INFO init:start{listen_addr=Host(SocketAddrHost { host: "iroha0", port: 1337 })}: iroha_p2p::network: Network bound to listener kagami_config_image-iroha0-1 | 2023-08-21T12:11:42.309875Z INFO init:kura_init: iroha_core::kura: Kura init complete block_count=0 kagami_config_image-iroha0-1 | 2023-08-21T12:11:42.310815Z WARN init: iroha: Telemetry not started kagami_config_image-iroha0-1 | 2023-08-21T12:11:42.310909Z INFO init: iroha_core::sumeragi: Sumeragi has finished loading blocks and setting up the WSV kagami_config_image-iroha0-1 | 2023-08-21T12:11:42.311119Z INFO iroha: Starting Iroha kagami_config_image-iroha1-1 | Error: Please add `account_public_key` to the configuration kagami_config_image-iroha1-1 | kagami_config_image-iroha1-1 | Location: kagami_config_image-iroha1-1 | /rustc/f7ca9df69549470541fbf542f87a03eb9ed024b6/library/core/src/convert/mod.rs:716:9 kagami_config_image-iroha1-1 | kagami_config_image-iroha3-1 | Error: Please add `account_public_key` to the configuration kagami_config_image-iroha3-1 | kagami_config_image-iroha3-1 | Location: kagami_config_image-iroha3-1 | /rustc/f7ca9df69549470541fbf542f87a03eb9ed024b6/library/core/src/convert/mod.rs:716:9 kagami_config_image-iroha3-1 | kagami_config_image-iroha2-1 | Error: Please add `account_public_key` to the configuration kagami_config_image-iroha2-1 | kagami_config_image-iroha2-1 | Location: kagami_config_image-iroha2-1 | /rustc/f7ca9df69549470541fbf542f87a03eb9ed024b6/library/core/src/convert/mod.rs:716:9 kagami_config_image-iroha2-1 | kagami_config_image-iroha4-1 | Error: Please add `account_public_key` to the configuration kagami_config_image-iroha4-1 | kagami_config_image-iroha4-1 | Location: kagami_config_image-iroha4-1 | /rustc/f7ca9df69549470541fbf542f87a03eb9ed024b6/library/core/src/convert/mod.rs:716:9 kagami_config_image-iroha4-1 | kagami_config_image-iroha0-1 | 2023-08-21T12:11:42.561039Z INFO consensus: iroha_core::sumeragi::main_loop: Initializing iroha using the genesis block. kagami_config_image-iroha0-1 | 2023-08-21T12:11:42.877841Z WARN consensus: iroha_core::block: Transaction validation failed reason=Validation failed caused_by=Some(InstructionFailed(InvalidParameter(Wasm("Migration failed\n\nCaused by:\n 0: WASM error: Module could not be instantiated\n 1: Module could not be instantiated\n 2: Linker failed to instantiate module\n 3: unknown import: `iroha::get_transaction_to_validate` has not been defined\n\nLocation:\n /rustc/f7ca9df69549470541fbf542f87a03eb9ed024b6/library/core/src/convert/mod.rs:716:9")))) kagami_config_image-iroha0-1 | 2023-08-21T12:11:42.877990Z WARN consensus: iroha_core::block: Transaction validation failed reason=Validation failed caused_by=Some(InstructionFailed(Find(PermissionToken("CanSetParameters")))) kagami_config_image-iroha0-1 | thread 'sumeragi thread' panicked at 'Genesis transaction set contains invalid transactions', core/src/sumeragi/main_loop.rs:295:9 kagami_config_image-iroha0-1 | note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace kagami_config_image-iroha0-1 | thread 'tokio-runtime-worker' panicked at 'Shouldn't return error as long as there is at least one SumeragiHandle: RecvError(())', core/src/sumeragi/mod.rs:85:14 kagami_config_image-iroha0-1 | thread 'tokio-runtime-worker' panicked at 'Shouldn't return error as long as there is at least one SumeragiHandle: RecvError(())', core/src/sumeragi/mod.rs:85:14 kagami_config_image-iroha2-1 exited with code 1 kagami_config_image-iroha1-1 exited with code 1 kagami_config_image-iroha3-1 exited with code 1 kagami_config_image-iroha4-1 exited with code 1 kagami_config_image-iroha0-1 | 2023-08-21T12:11:45.377058Z ERROR run{listen_addr=iroha0:1337 public_key=ed0120233D545E3672F9DB01F9DB1BB0C5225ED07478B03A3F931F1111C2144E9AF958}:run{conn_id=1}: iroha_p2p::peer::run: Failure during handshake. error=Failed IO operation kagami_config_image-iroha0-1 | 2023-08-21T12:11:45.377115Z ERROR run{listen_addr=iroha0:1337 public_key=ed0120233D545E3672F9DB01F9DB1BB0C5225ED07478B03A3F931F1111C2144E9AF958}:run{conn_id=2}: iroha_p2p::peer::run: Failure during handshake. error=Failed IO operation kagami_config_image-iroha0-1 | 2023-08-21T12:11:45.377196Z ERROR run{listen_addr=iroha0:1337 public_key=ed0120233D545E3672F9DB01F9DB1BB0C5225ED07478B03A3F931F1111C2144E9AF958}:run{conn_id=3}: iroha_p2p::peer::run: Failure during handshake. error=Failed IO operation
</details>


### Who can help to reproduce?

@timofeevmd

### Notes

_No response_
@timofeevmd timofeevmd added Bug Something isn't working iroha2-dev The re-implementation of a BFT hyperledger in RUST labels Aug 21, 2023
@mversic
Copy link
Contributor

mversic commented Sep 26, 2023

most likely a duplicate of #3712

@timofeevmd timofeevmd added the QA-confirmed This bug is reproduced and needs a fix label Oct 3, 2023
@github-project-automation github-project-automation bot moved this from Todo to Done in Iroha 2.0 Oct 3, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Bug Something isn't working iroha2-dev The re-implementation of a BFT hyperledger in RUST QA-confirmed This bug is reproduced and needs a fix
Projects
None yet
Development

No branches or pull requests

4 participants