plugins icon indicating copy to clipboard operation
plugins copied to clipboard

"Killing plugin: exited before replying to getmanifest"

Open Sjors opened this issue 2 years ago • 9 comments

I tried with both the currencyrate and summary plugin. The error message could be more informative...

2021-07-29T20:30:27.590Z DEBUG   plugin-manager: started(1697210) /home/lightning/src/plugins/currencyrate/currencyrate.py
2021-07-29T20:30:27.769Z INFO    plugin-currencyrate.py: Killing plugin: exited before replying to getmanifest

I configured it via plugin=... in config. I also tried the symlink approach, which results in the same error.

I've done pip3 install -r requirements.txt in the /src/plugins/currencyrate which did install a few things.

I'm using Python 3.8.4 via Pyenv, c-lightning v0.10.1rc1 on Ubuntu.

I can call it directly without error:

 ~/.lightning/plugins/currencyrate.py

Hi, it looks like you're trying to run a plugin from the
command line.
... 

Sjors avatar Jul 29 '21 20:07 Sjors

If you are using BTCPay or another docker based setup, you need to install the requirements inside the docker container.

nymkappa avatar Oct 09 '21 07:10 nymkappa

I use neither, just Ubuntu.

Sjors avatar Oct 20 '21 12:10 Sjors

I had this exact error and found the following solution (looking to help novices, I understand Sjors is only looking for better error messages):

I initially copied my summary.py executable (with no other support files) to the dir where all the other original/bloat plugins existed. this dir being /usr/local/c-lightning/plugins on my local machine.

when i ran "lightning-cli plugin start /usr/local/c-lightning/plugins/summary.py" I recieved exactly the same error message as Sjors.

Solution

run the summary.py executable in the same directory where the executable's support files are held "lightning-cli plugin start /path-to-github-clone/summary/dir/summary.py"

the reason this works is because summary.py requires support files to operate, namely the module summary_avail.py you might notice that if you try to run the summary.py executable (with a command like ./summary.py) in a directory where it's support files are not present, you will trip a ModuleNotFoundError.

not really relevent here, but the below command is also required to run any plugin. pip3 install -r requirements.txt in the github/summary.py directory

Again, this is not for Sjors, who just wants more helpful error messages, but for others who may need help.

paulkania avatar Nov 20 '21 03:11 paulkania

Again, this is not for Sjors, who just wants more helpful error messages, but for others who may need help.

No, I also needed help.

Though I ended up using the incantations here: https://medium.com/blockstream/c-lightning-plugins-01-the-summary-plugin-64db922ef7fa (plus the pip3 install -r requirements.txt step)

Sjors avatar Nov 22 '21 11:11 Sjors

Again, this is not for Sjors, who just wants more helpful error messages, but for others who may need help.

No, I also needed help.

Though I ended up using the incantations here: https://medium.com/blockstream/c-lightning-plugins-01-the-summary-plugin-64db922ef7fa (plus the pip3 install -r requirements.txt step)

where you able to fix the error msg? i'm getting the exact same error message when trying to run from the command line via lightning-cli plugin start command.

hdlslm avatar Mar 19 '22 15:03 hdlslm

Great, after upgrading Ubuntu to 22.04 I'm back at:

lightning-cli plugin start /home/lightning/.lightning/plugins/summary/summary.py
{
   "code": -3,
   "message": "/home/lightning/.lightning/plugins/summary/summary.py: exited before replying to getmanifest"
}

Sjors avatar Apr 30 '22 15:04 Sjors

I'm experiencing the exact same problem on Ubuntu 22.04 and CLN v0.11.0.1.

danielgranhao avatar May 12 '22 09:05 danielgranhao

It seems the issue was a missing dependency from pyln-proto and/or pyln-bolt7. Installing both fixed this.

danielgranhao avatar May 12 '22 10:05 danielgranhao

I am running to the similar error message with the backup plugin:

lightning-cli start /home/bitcoin/cl-plugins-available/plugins/backup/backup.py
{
   "code": -3,
   "message": "/home/bitcoin/cl-plugins-available/plugins/backup/backup.py: exited before replying to getmanifest"
}

Dependencies are installed with poetry (including pyln-proto and pyln-bolt7)

the poetry run ./backup-cli init worked:

Found an existing database at /home/bitcoin/.lightning/signet/lightningd.sqlite3, initializing the backup with a snapshot
Successfully written initial snapshot to file:///home/bitcoin/slightningd.sqlite3.backup
Initialized backup backend file:///home/bitcoin/slightningd.sqlite3.backup, you can now start Core-Lightning

all files are available in the same directory and made executable:

ls -la /home/bitcoin/cl-plugins-available/plugins/backup/
total 176
drwxr-xr-x  4 bitcoin bitcoin  4096 Feb 18 10:24 .
drwxr-xr-x 39 bitcoin bitcoin  4096 Feb 18 10:34 ..
-rwxr-xr-x  1 bitcoin bitcoin  4619 Feb 18 10:24 backend.py
-rwxr-xr-x  1 bitcoin bitcoin  1127 Feb 18 10:24 backends.py
-rwxr-xr-x  1 bitcoin bitcoin  3252 Feb 10 09:48 backup-cli
-rwxr-xr-x  1 bitcoin bitcoin  4701 Feb 18 10:24 backup.py
-rwxr-xr-x  1 bitcoin bitcoin  7965 Feb 18 10:24 filebackend.py
-rwxr-xr-x  1 bitcoin bitcoin 77275 Feb 18 10:24 poetry.lock
-rwxr-xr-x  1 bitcoin bitcoin  2256 Feb 18 10:24 protocol.py
drwxr-xr-x  2 bitcoin bitcoin  4096 Feb 18 10:31 __pycache__
-rwxr-xr-x  1 bitcoin bitcoin   591 Feb 18 10:24 pyproject.toml
-rwxr-xr-x  1 bitcoin bitcoin  2913 Feb 10 09:48 README.md
-rwxr-xr-x  1 bitcoin bitcoin  5721 Feb 10 09:48 remote.md
-rwxr-xr-x  1 bitcoin bitcoin  4919 Feb 18 10:24 server.py
-rwxr-xr-x  1 bitcoin bitcoin  8534 Feb 18 10:24 socketbackend.py
-rwxr-xr-x  1 bitcoin bitcoin 12095 Feb 18 10:24 test_backup.py
drwxr-xr-x  2 bitcoin bitcoin  4096 Feb 10 09:48 tests

Trying to fix here: https://github.com/rootzoll/raspiblitz/pull/3684

it is due to issues with tqdm and only on aarch64:

raspberrypi systemd[1]: Started c-lightning daemon on mainnet.
raspberrypi sh[2263926]: Traceback (most recent call last):
raspberrypi sh[2263926]:   File "/home/bitcoin/cl-plugins-available/plugins/backup/backup.py", line 10, in <module>
raspberrypi sh[2263926]:     from backend import Change
raspberrypi sh[2263926]:   File "/home/bitcoin/cl-plugins-available/plugins/backup/backend.py", line 7, in <module>
raspberrypi sh[2263926]:     from tqdm import tqdm
raspberrypi sh[2263926]: ModuleNotFoundError: No module named 'tqdm'

Edit: can confirm that this was caused by a pip / poetry dependency problem. Details of a messy fix without reinstall: https://github.com/rootzoll/raspiblitz/issues/3675#issuecomment-1436067195

openoms avatar Feb 18 '23 11:02 openoms