plugins icon indicating copy to clipboard operation
plugins copied to clipboard

"message": "rebalance/rebalance.py is not executable

Open AngeloMetal opened this issue 3 years ago • 2 comments
trafficstars

Hello, I've cloned plugins with: git clone https://github.com/lightningd/plugins.git Installed requirements with: pip install -r rebalance/requirements.txt

Then, I run:

bitcoin@raspibolt:~/lightning/plugins $ lightning-cli plugin start rebalance/rebalance.py
{
   "code": -32602,
   "message": "rebalance/rebalance.py is not executable: No such file or directory"
}

Core Lightning v0.10.2

AngeloMetal avatar Jul 13 '22 10:07 AngeloMetal

Rebalance is run by adding the plugin path to the config or command line of lightningd and then run ./lightning-cli rebalance.

Coinomatron avatar Jul 15 '22 19:07 Coinomatron

You need to make the file executable: chmod +x rebalance/rebalance.py.

This is because lightningd will fork and execve the plugin entrypoint. The top of the plugin has a shebang that tells the OS to use the python3 interpreter to run the file.

cdecker avatar Jul 28 '22 15:07 cdecker