LNP-WG / lnp-node

Lightning network protocol daemon (suitable for generalized Lightning Network)
MIT License
145 stars 40 forks source link

Panic starting node 'Unable to open key file' #56

Closed grunch closed 2 years ago

grunch commented 2 years ago

Checklist

Classify the bug Put x in the boxes below:

Describe the problem After try to start node it panics.

To Reproduce Steps to reproduce the behavior:

lnpd -vvv
lnpd: lightning node management microservice
[2022-07-20T13:25:03Z DEBUG lnpd] MSG socket /home/grunch/.lnp_node/signet/msg
[2022-07-20T13:25:03Z DEBUG lnpd] CTL socket /home/grunch/.lnp_node/signet/ctl
[2022-07-20T13:25:03Z DEBUG lnpd] RPC socket 0.0.0.0:62962
[2022-07-20T13:25:03Z DEBUG lnpd] Starting runtime ...
thread 'main' panicked at 'Unable to open key file '/home/grunch/.lnp_node/signet/node.key';
please check that the file exists and the daemon has access rights to it', src/lnpd/daemons.rs:37:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
  1. Linux pop-os 5.17.15-76051715-generic #202206141358~1655919116~22.04~1db9e34 SMP PREEMPT Wed Jun 22 19 x86_64 x86_64 x86_64 GNU/Linux
  2. rustc 1.64.0-nightly (9a7b7d5e5 2022-07-19)

Expected behavior The node should start.

ghost commented 2 years ago

You might need to run $ lnpd init before starting the daemon. I think this should be noted in the README, as it seems to be only mentioned in the lnpd -h.

dr-orlovsky commented 2 years ago

Instructions fixed in https://github.com/LNP-WG/lnp-node/pull/54