lightningd / plugins

Community curated plugins for core-lightning
BSD 3-Clause "New" or "Revised" License
266 stars 129 forks source link

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

Open AngeloMetal opened 2 years ago

AngeloMetal commented 2 years ago

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

Coinomatron commented 2 years ago

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

cdecker commented 2 years ago

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.