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] Error "Please add account_public_key to the configuration" when trying to build docker compose generated Docker image #3605

Closed
Tracked by #2373
timofeevmd opened this issue Jun 13, 2023 · 2 comments
Assignees
Labels
Bug Something isn't working iroha2-dev The re-implementation of a BFT hyperledger in RUST

Comments

@timofeevmd
Copy link
Contributor

timofeevmd commented Jun 13, 2023

OS and Environment

MacOS 13.3

GIT commit hash

2f371c9

Minimum working example / Steps to reproduce

Build kagami from root dir

cargo run --bin kagami -- swarm  --peers 5 --outdir ./kagami_config_image --image hyperledger/iroha2:dev

Docker compose up

docker-compose -f ./kagami_config_image/docker-compose.yml up -d

The same problem observing when using the option --no-default-configuration

cargo run --bin kagami -- swarm  --peers 5 --outdir ./kagami_config_no_def_conf --no-default-configuration --image hyperledger/iroha2:dev

Actual result

michaeltimofeev@Michaels-MacBook-Pro kagami_config_image % docker-compose -f docker-compose.yml up -d
[+] Running 5/5Container kagami_config_image-iroha3-1  Started                                                                                                                                                                                       0.9s
 ⠿ Container kagami_config_image-iroha2-1  Started                                                                                                                                                                                       0.9s
 ⠿ Container kagami_config_image-iroha1-1  Started                                                                                                                                                                                       0.7s
 ⠿ Container kagami_config_image-iroha4-1  Started                                                                                                                                                                                       0.7s
 ⠿ Container kagami_config_image-iroha0-1  Started                                                                                                                                                                                       0.8s
michaeltimofeev@Michaels-MacBook-Pro kagami_config_image % docker ps -a
CONTAINER ID   IMAGE                    COMMAND                  CREATED         STATUS                     PORTS                                                                    NAMES
554f4b33cbaf   hyperledger/iroha2:dev   "/bin/sh -c iroha"       4 seconds ago   Exited (1) 3 seconds ago                                                                            kagami_config_image-iroha3-1
d3eccaa6d8b5   hyperledger/iroha2:dev   "/bin/sh -c iroha"       4 seconds ago   Exited (1) 3 seconds ago                                                                            kagami_config_image-iroha4-1
6092f6b598cc   hyperledger/iroha2:dev   "/bin/sh -c iroha"       4 seconds ago   Exited (1) 3 seconds ago                                                                            kagami_config_image-iroha1-1
5abfa821d782   hyperledger/iroha2:dev   "iroha --submit-gene…"   4 seconds ago   Up 3 seconds               0.0.0.0:1337->1337/tcp, 0.0.0.0:8080->8080/tcp, 0.0.0.0:8180->8180/tcp   kagami_config_image-iroha0-1
a92ddacc7dc6   hyperledger/iroha2:dev   "/bin/sh -c iroha"       4 seconds ago   Exited (1) 3 seconds ago                                                                            kagami_config_image-iroha2-1
michaeltimofeev@Michaels-MacBook-Pro kagami_config_image % docker logs 554f4b33cbaf
Error: Please add `account_public_key` to the configuration.

Location:
    /rustc/b569c9dc57ee22b6ff94563af856909763dfa24b/library/core/src/convert/mod.rs:726:9

Expected result

build successfully

Logs in JSON format

unfortunately i have nothing to add here

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 Jun 13, 2023
@0x009922
Copy link
Contributor

Actually, I think it might be a bug of hyperledger/iroha2:dev. AFAIK it wasn't updated for a while.

@0x009922
Copy link
Contributor

0x009922 commented Aug 7, 2023

@timofeevmd, if it only fails with the image from Dockerhub, I think we can unlink it from #2373.

# 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
Projects
None yet
Development

No branches or pull requests

2 participants