iroha
iroha copied to clipboard
[BUG] Iroha Container Fails to Restart Due to Kura Blockstore Lock Issue
OS and Environment
MacOS M1, Docker Hub
GIT commit hash
1de71ba
Minimum working example / Steps to reproduce
docker compose up
docker restart swarm-irohad0-1
Actual result
The container fails to restart and exits with the following error log:
irohad0-1 | 2024-06-27T09:32:40.106708Z INFO irohad: Hyperledgerいろは2にようこそ!(translation) Welcome to Hyperledger Iroha! version="2.0.0-pre-rc.21" git_commit_sha="1de71ba" peer=ed0120A98BAFB0663CE08D75EBD506FEC38A84E576A7C9B0897693ED4B04FD9EF2D18D@@0.0.0.0:1337 chain=00000000-0000-0000-0000-000000000000 listening_on=0.0.0.0:8080
irohad0-1 | 2024-06-27T09:32:40.114527Z INFO init:start{listen_addr=WithOrigin { value: 0.0.0.0:1337, origin: Env { id: ParameterId(network.address), var: "P2P_ADDRESS" } } idle_timeout=60s}: iroha_p2p::network: Network bound to listener
irohad0-1 | thread 'main' panicked at core/src/kura.rs:417:18:
irohad0-1 | Kura must be able to lock the blockstore: Locked("/storage/kura.lock")
irohad0-1 | note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
irohad0-1 | 2024-06-27T09:32:40.145526Z INFO run{listen_addr=0.0.0.0:1337 public_key=ed0120A98BAFB0663CE08D75EBD506FEC38A84E576A7C9B0897693ED4B04FD9EF2D18D}: iroha_p2p::network: All handles to network actor are dropped. Shutting down...
irohad0-1 exited with code 101
Expected result
The container should restart successfully without errors.
Who can help to reproduce?
@AlexStroke
Notes
Other containers do not exhibit this issue. This problem might be related to the initialization process (init)