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] Iroha fails if storage directory doesn't exist #3046

Closed
appetrosyan opened this issue Dec 30, 2022 · 0 comments
Closed

[BUG] Iroha fails if storage directory doesn't exist #3046

appetrosyan opened this issue Dec 30, 2022 · 0 comments
Labels
Bug Something isn't working iroha2-dev The re-implementation of a BFT hyperledger in RUST

Comments

@appetrosyan
Copy link
Contributor

OS and Environment

Arch

GIT commit hash

fbc7d34

Minimum working example / Steps to reproduce

IROHA2_CONFIG_PATH="<sample>/configs/peer/config.json" IROHA2_GENESIS_PATH="<sample>/configs/peer/genesis.json" cargo run -p iroha -- --submit-genesis

Actual result

2022-12-30T17:33:21.589120Z  INFO iroha_p2p::network: Starting network actor listen_addr=127.0.0.1:1337
Error: 
   0: Failed reading/writing "./storage/kura.lock" from disk
   1: No such file or directory (os error 2)

Expected result

Expect to succeed, instead.

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 to reproduce?

@appetrosyan

Notes

This is related to the fix of #3027. The implementation is slightly too eager. And needs fallback for the case if the directory doesn't exist.

@appetrosyan appetrosyan added Bug Something isn't working iroha2-dev The re-implementation of a BFT hyperledger in RUST labels Dec 30, 2022
appetrosyan added a commit to appetrosyan/iroha that referenced this issue Dec 30, 2022
…pty `./storage`

Signed-off-by: Aleksandr Petrosyan <a-p-petrosyan@yandex.ru>
appetrosyan added a commit to appetrosyan/iroha that referenced this issue Dec 30, 2022
…pty `./storage`

Signed-off-by: Aleksandr Petrosyan <a-p-petrosyan@yandex.ru>
appetrosyan added a commit to appetrosyan/iroha that referenced this issue Dec 31, 2022
…pty `./storage`

Signed-off-by: Aleksandr Petrosyan <a-p-petrosyan@yandex.ru>
appetrosyan added a commit to appetrosyan/iroha that referenced this issue Jan 26, 2023
…pty `./storage`

Signed-off-by: Aleksandr Petrosyan <a-p-petrosyan@yandex.ru>
appetrosyan added a commit to appetrosyan/iroha that referenced this issue Jan 27, 2023
…pty `./storage`

Signed-off-by: Aleksandr Petrosyan <a-p-petrosyan@yandex.ru>
appetrosyan added a commit to appetrosyan/iroha that referenced this issue Jan 27, 2023
…pty `./storage`

Signed-off-by: Aleksandr Petrosyan <a-p-petrosyan@yandex.ru>
appetrosyan added a commit to appetrosyan/iroha that referenced this issue Jan 30, 2023
…pty `./storage`

Signed-off-by: Aleksandr Petrosyan <a-p-petrosyan@yandex.ru>
appetrosyan added a commit to appetrosyan/iroha that referenced this issue Jan 30, 2023
…pty `./storage`

Signed-off-by: Aleksandr Petrosyan <a-p-petrosyan@yandex.ru>
appetrosyan added a commit to appetrosyan/iroha that referenced this issue Jan 30, 2023
…pty `./storage`

Signed-off-by: Aleksandr Petrosyan <a-p-petrosyan@yandex.ru>
appetrosyan added a commit to appetrosyan/iroha that referenced this issue Jan 30, 2023
…pty `./storage`

Signed-off-by: Aleksandr Petrosyan <a-p-petrosyan@yandex.ru>
appetrosyan added a commit to appetrosyan/iroha that referenced this issue Jan 30, 2023
…pty `./storage`

Signed-off-by: Aleksandr Petrosyan <a-p-petrosyan@yandex.ru>
appetrosyan added a commit to appetrosyan/iroha that referenced this issue Jan 30, 2023
…pty `./storage`

Signed-off-by: Aleksandr Petrosyan <a-p-petrosyan@yandex.ru>
appetrosyan added a commit that referenced this issue Feb 1, 2023
Signed-off-by: Aleksandr Petrosyan <a-p-petrosyan@yandex.ru>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in 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

1 participant