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

snapshot dir need to created for rocksdb backend #15053

Closed
yihuang opened this issue Feb 17, 2023 · 0 comments · Fixed by #15054
Closed

snapshot dir need to created for rocksdb backend #15053

yihuang opened this issue Feb 17, 2023 · 0 comments · Fixed by #15054
Labels

Comments

@yihuang
Copy link
Collaborator

yihuang commented Feb 17, 2023

Summary of Bug

the snapshot directory need to be created manually when using rocksdb backend, otherwise it panic with error message:

failed to initialize database: IO error: No such file or directory: While mkdir if missing: /Users/yihuang/src/cronos/data/cronos_777-1/node1/data/snapshots/metadata.db: No such file or directory

We have been cope with this issue in our chain code for a long time, good to update in upstream as well, since we officially support rocksdb backend.

Version

all versions I think

Steps to Reproduce

@github-actions github-actions bot added the needs-triage Issue that needs to be triaged label Feb 17, 2023
yihuang added a commit to yihuang/cosmos-sdk that referenced this issue Feb 17, 2023
@tac0turtle tac0turtle added C:Store and removed needs-triage Issue that needs to be triaged labels Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants