Closed fusion44 closed 1 year ago
Updated to this branch with the latest dev image & restarted.
API failed with the following error:
...
What is the ln_node
setting set to in your .env? This crash should only happen if it is set to none or is missing completely. One additional possibility is that it doesn't load correctly.
Can you check the logs if any of the following strings appear in the logs:
elif ln_node == "none":
logging.info(f"lightning was explicitly turned off")
elif ln_node == "":
logging.info(f"lightning is not set yet")
else:
logging.error(f"unknown lightning node: {ln_node}")
Just a note:
This happens when I was using a new image on an existing node, so I was trying to do a recovery.
.env
file has no value currently:
# lnd_grpc, cln_grpc, none
# Please refer to the documentation for the install procedure
# for each implementation.
ln_node=
Reason is it's still in setup:
https://github.com/rootzoll/raspiblitz/blob/v1.8/home.admin/config.scripts/blitz.web.api.sh#L127
@rootzoll should I treat ln_node=none
and ln_node=
the same? At the moment I treat ln_node=
as an error as it is undefined. It should not end in a crash though ...
Yes, when the value is not set it should default to ln_node=none
.
API failed with the following error:
_Originally posted by @cstenglein in https://github.com/fusion44/blitz_api/issues/149#issuecomment-1328610770_
code: https://github.com/fusion44/blitz_api/blob/5edb60ad8244e24a10241f1c06bc29f2456f6947/app/lightning/service.py#L29:L44