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

[BUG] Running single instanced iroha network is signaling RPC failed and not committing any commands #2857

Closed
baziorek opened this issue Oct 12, 2022 · 3 comments
Labels
1.x Bug Something isn't working iroha1 The legacy version of Iroha.

Comments

@baziorek
Copy link
Contributor

GIT commit hash

f39d22d

Minimum working example

  1. build iroha, according to instructions. Config from example with only database host changed into localhost in config.docker
  2. Run database:
docker run --rm --name iroha_postgres \
    -e POSTGRES_USER=postgres \
    -e POSTGRES_PASSWORD=mysecretpassword \
    --network=host \
    -d postgres \
    -c 'max_prepared_transactions=100' \
    -c 'port=5432'
  1. Run iroha from repository main path:
cd $(IROHA_REPOSITORY_ROOT)
/home/student/Desktop/iroha_code/baziorek/build-iroha-Desktop_Qt_6_3_2_GCC_64bit-Debug/bin/irohad \
   -config example/config.sample \
   -genesis_block example/genesis.block \
   -keypair_name example/node0 \
   -drop_state -overwrite_ledger
  1. After few seconds message like:
[2022-10-12 06:28:47.016924727][W][Irohad/Consensus/Network]: RPC failed: bddd58404d1315e0eb27902c5d7c8eb0602c16238f005773df406bc191308929

is appearing every few seconds.


I've checked with iroha:docker official image and result was the same:

cd $(IROHA_REPOSITORY_ROOT)

docker run --name irohad_develop \
    --network=host \
    -v "$(pwd)/example/:/opt/iroha_data" \
    -e KEY=node0 \
    hyperledger/iroha:develop -drop_state -overwrite_ledger
...
[2022-10-12 06:27:30.793802052][I][Init]: Irohad version: 1.6.0-rc.1-34-ge82726d2
...
[2022-10-12 06:28:47.016924727][W][Irohad/Consensus/Network]: RPC failed: bddd58404d1315e0eb27902c5d7c8eb0602c16238f005773df406bc191308929

But when I use iroha:1.5.0 docker image everything works:

docker run --name irohad_1.5.0 \
    --network=host \
    -v "$(pwd)/example/:/opt/iroha_data" \
    -e KEY=node0 \
    hyperledger/iroha:1.5.0 -drop_state -overwrite_ledger

Expected behaviour

No warnings like that, committing commands

Actual behaviour

Warnings like:

[2022-10-12 06:28:47.016924727][W][Irohad/Consensus/Network]: RPC failed: bddd58404d1315e0eb27902c5d7c8eb0602c16238f005773df406bc191308929

And commands hanging until timeout

Operating system

Ubuntu 22.04 and docker

LibC type and version

ldd (Ubuntu GLIBC 2.35-0ubuntu3.1) 2.35

Current environment

Source code build

Logs in JSON format

Log contents
Replace this text with a JSON log,
so it doesn't grow too large and has highlighting.

Who can help?

@iceseer

@baziorek baziorek added Bug Something isn't working iroha2-dev The re-implementation of a BFT hyperledger in RUST LTS 1.x and removed iroha2-dev The re-implementation of a BFT hyperledger in RUST labels Oct 12, 2022
@appetrosyan appetrosyan removed the LTS label Oct 12, 2022
@baziorek
Copy link
Contributor Author

Probably the bug was fixed by @iceseer fdb8e79 #2749

Because after rebasing #1776 with develop I don't see the problem.

@6r1d
Copy link
Contributor

6r1d commented Nov 5, 2022

@baziorek let's discuss it and try to replicate. If it doesn't repeat anymore, I think we can close this issue.

@baziorek
Copy link
Contributor Author

baziorek commented Nov 5, 2022

@baziorek let's discuss it and try to replicate. If it doesn't repeat anymore, I think we can close this issue.

Yes, it was fixed: #2749 so I think it can be closed

@appetrosyan appetrosyan moved this to Todo in Iroha 2.0 Dec 12, 2022
@github-project-automation github-project-automation bot moved this from Todo to Done in Iroha 2.0 Feb 10, 2023
@nxsaken nxsaken added the iroha1 The legacy version of Iroha. label Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.x Bug Something isn't working iroha1 The legacy version of Iroha.
Projects
None yet
Development

No branches or pull requests

4 participants