Skip to content

Databased crashes on start #576

Description

@h4sh3d

Start the node with empty .farcaster folder result in

[2022-07-19T13:54:41Z DEBUG databased] MSG RPC socket ipc://~/.farcaster/msg.rpc
[2022-07-19T13:54:41Z DEBUG databased] CTL RPC socket ipc://~/.farcaster/ctl.rpc
[2022-07-19T13:54:41Z DEBUG databased] Starting runtime ...
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Other(2)', src/databased/runtime.rs:48:43
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

I think the crash comes from lmdb::Environement::new()...open(&path)?; where path points to folder .farcaster, what happen if there is no file to open?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions