Closed michaelfolkson closed 1 year ago
The complete clnrest dependency install command is pip install json5 flask flask_restx gunicorn pyln-client flask-socketio gevent gevent-websocket
. I can see flask flask_restx pyln-client flask-socketio
installed but you can try running it after installing remaining dependencies ie. json5 gunicorn gevent gevent-websocket
.
@ShahanaFarooqui: Thanks for this Shahana. Will see if this works. Was following these instructions where it wasn't clear that pip3 install -r plugins/clnrest/requirements.txt
was optional nor that it needed the dependencies you listed. Will open a PR making those docs a bit clearer if this fixes the issue.
@michaelfolkson Instructions for pip install -r plugins/clnrest/requirements.txt
are good to follow with future releases as these dependencies are already included in plugins/clnrest/requirements.txt
. But RC1 release's plugins/clnrest/requirements.txt
expects pyln-proto version 23.8 and fails.
For now, I have downgraded it to 23.5 ( with RC2) and will upgrade it to 23.8 after the final release, when pyln-proto is also available on pypi. So after RC2, explicit installation should not be required anymore.
Installed Shahana's dependencies and built again. Now just get the bitcoin-cli error.
bitcoin-cli exec failed: Bad file descriptor2023-08-08T10:12:41.183Z **BROKEN** plugin-bcli: bitcoin-cli exec failed: Bad file descriptor
2023-08-08T10:12:41.184Z INFO plugin-bcli: Killing plugin: exited before we sent init
The Bitcoin backend died.
I did a clean install on Ubuntu 22.04 LTS x64 and could not reproduce this; I did fix the bcli report, so we might have a clue why this fails to work.
I had to do some weird Python stuff to get the packages I needed to install, but that's life on Ubuntu AFAICT.
Thanks for looking into this Rusty. Still getting this on latest master though:
plugin-bcli: bitcoin-cli exec failed: Bad file descriptor
2023-08-14T08:18:37.860Z INFO plugin-bcli: Killing plugin: exited before we sent init
The Bitcoin backend died.
This is strange @michaelfolkson
Could you share your core lightning config file?
@vincenzopalazzo: Haven't set one up so nothing in there and doesn't exist in ~/.lightning/signet
Ok ok, maybe core lightning is looking in the wrong directory for bitcoin-cli? not sure about this
Or this can be a permission problem
I am running as root
on Digital Ocean. I'll try running as a different user and see if that makes any difference. I have Core Lightning running on a laptop fine so pretty sure I'm not doing anything dumb here....
I am running as root on Digital Ocean. I'll try running as a different user and see if that makes any difference. I have Core Lightning running on a laptop fine so pretty sure I'm not doing anything dumb here....
Yeah I think that the problem can be the permission or that core lightning is looking in another directory for bitcoin-cli
The problem isn't resolved by not running asroot
. I get the same error running both bitcoind and lightningd as an alternative user. I'll play around with configs, paths etc and see if that can resolve it.
Another test that you can do is running bitcoin-cli yourself and see what is the result
@michaelfolkson Did you managed to resolve the bitcoin-cli Bad file descriptor issue? I run into the same problem..
Nevermind, my problem was I had ".config" file instead of just "config"
Tried to install Core Lightning (master) on a fresh Ubuntu 22.04 LTS x64
pip3 install -r plugins/clnrest/requirements.txt
hit an error:
make
successfully completes but then when I try runninglightningd --network=signet
with a fully syncedbitcoind -signet
on the same server I get:I try to
pip3 install flask
but that hits theblinker
errrorI did try
which successfully installs blinker.
But...
gets an error:
Then:
gets an error:
Then
gets this error: