Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AngeloMetal opened this issue Jul 13, 2022 · 2 comments
Open

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

AngeloMetal opened this issue Jul 13, 2022 · 2 comments
Assignees

Comments

@AngeloMetal
Copy link

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
Copy link

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

@cdecker
Copy link
Contributor

cdecker commented Jul 28, 2022

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 cdecker self-assigned this Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants