Open khazaddum opened 3 months ago
Thanks for the report. Can you show exactly what you are using in the cache_dir
field of the config ?
We maybe need to use https://doc.rust-lang.org/std/fs/fn.canonicalize.html on top of the provided path or similar.
The line in the config is
cache_dir = "/home/rav/.zebra"
I can't reproduce it. Here is what i tried.
created a link with:
mkdir testing
ln -s /media/alfredo/stuff/chain/zebra /home/alfredo/zebra/issue8617/testing/
config:
cache_dir = "/home/alfredo/zebra/issue8617/testing/zebra"
zebrad starts normally:
$ ./target/debug/zebrad -c myconf.toml start
...
2024-06-17T20:35:06.804374Z INFO zebra_state::service::finalized_state::disk_db: Opened Zebra state cache at /home/alfredo/zebra/issue8617/testing/zebra/state/v25/mainnet
...
Can you describe more your process? I might be doing something wrong or different. Thanks again for your help.
I double checked and realized there was a typo in my symlink, so Zebra was trying to start with a non-existing folder. I think that's what caused the crash.
We should make Zebra fail with a better error so it makes it easier to troubleshoot these sorts of crashes
When using a
cache_dir
that is a symlink to a storage drive, Zebra crashed. When using the actual path to the storage drive, Zebra runs normally.Error
Metadata