-
Notifications
You must be signed in to change notification settings - Fork 906
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
v24.08rc2 - bitcoin-cli not a valid config option #7595
Comments
Example of my current config bitcoin-cli=/home/satoshi/bitcoin-27.3/bin/bitcoin-cli |
lightningd: Config file /home/user/.lightning/config line 8: bitcoin-cli=/home/satoshi/bitcoin-27.0/bin/bitcoin-cli: unknown option |
Can you post your logs? it is possible that some plugin like bcli.c is dying? |
When I go back to version 24.05 it works as normally. In this case the log shows nothing for 24.08rc2, I can re-attempt later in debug mode and post logs here. |
No other data in log file when attempted in debug `2024-08-21T16:12:35.311Z INFO lightningd: v24.08rc2 2024-08-21T16:12:35.311Z DEBUG lightningd: Opened log file /home/satoshi/.lightning/ln-log.txt 2024-08-21T16:12:35.326Z DEBUG plugin-manager: started(1446405) /home/satoshi/apps/peerswap/peerswap 2024-08-21T16:12:35.341Z DEBUG lightningd: io_break: check_plugins_manifests 2024-08-21T16:12:35.341Z DEBUG lightningd: io_loop_with_timers: plugins_init standard output shows |
v24.08rc2 is not accepting required config settings necessary to work with Bitcoin Core. |
When lightningd starts you should see a lot of
To me it seems lightningd is not finding the path to the builtin plugins in your setup. |
so what is the path to bcli then @Lagrang3 ? I never had to declare the path to that in the earlier versions. |
I am looking into the code, it seems that lightningd searches for the builtin plugins relative to his own path |
I found it corelightning-24.05/usr/libexec/c-lightning/plugins/bcli I'll test today when I get a chance with this path declared as a plugin in the config |
I am just using the signed binaries. I did not compile. |
Couldn't you symlink the binary to somewhere in your PATH? |
Declaring the path of the plugin does not work either, I get this |
And what would be the proper way to do that? This seems like a hack work around. Would users of core lightning be expected to do the same? |
I see I made an error by not including /bcli at the end of that path. I did so and now I get this lightningd: Could not run /usr/libexec/c-lightning/lightning_channeld: No such file or directory |
So Core Lightning now only works if it is installed system-wide rather than from a local filepath, and only works if it is the same for Bitcoin Core? |
I have been running this under a filepath of /home/satoshi/clightning/corelightning-v24.08rc3/ (an example) |
No. It's not that. My node's binaries are in a custom path. And you shouldn't have to hack your way around. |
Yes I just meant symlinking as a temporary workaround to get your node back up. |
Thanks everyone. If I need to do symlinking I can, although not ideal. @Lagrang3 I'm curious what you are doing differently than me. Are you using bitcoin core in a custom path also? I'm using both Bitcoin Core and Core Lightning in a custom path. I'm hopeful that this pre-release might also fix the payment issues I was having, why I was wanting to test this. |
yes. I have core lightning and bitcoin binaries in custom paths.
which is exactly what you get when you extract the release binaries. Then I have a script in a cron job that calls lightningd, eg
lightningd uses the path of the executable to figure out the path to the other binaries. |
I think we should add log messages to inform that builtin plugins are not loaded and also inform where are we trying to look for them. We don't have those as far as I can tell from testing now. |
Great idea |
I hit it locally with the release binaries:
Instead I had no issues with binaries compiled from source. |
Right. CLN has two modes, one is that it expects to be in the build directory (good for developers), the other in the --prefix directory it was configured with. I'm surprised that this used to work! But thanks for the report, I'll make it work! |
Commit a1fdeee "Makefile: clean up install path handling." broke the ability to configure with one path and then run in a different path. Turns out people actually do this! So, we have to use relative paths, compared to our existing binary. Fixes: ElementsProject#7595 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
I compiled and it returns the same error. Can we bring back the bitcoin-cli= config option to declare a custom path for bitcoin-cli? |
I made a softlink of /usr/local/bin/bitcoin-cli to the bitcoin-cli in my custom path. Yeah this still does not work I am trying to run v24.08rc3 that I compiled. |
The last issue "permission denied" is a different issue. I think it resulted from me installing with "sudo make install" while my umask was set to 027 instead of 022. I fixed the permissions with chmod. I am now running v24.08rc3. How easy would it be to bring back the bitcoin-cli= option in the lightning config file? This would eliminate the need of people to have to make symbolic links or compile with a custom path. |
Commit a1fdeee "Makefile: clean up install path handling." broke the ability to configure with one path and then run in a different path. Turns out people actually do this! So, we have to use relative paths, compared to our existing binary. And we can't use path_rel, because that requires that the path exist (thanks @Lagrang3!). Fixes: ElementsProject#7595 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Commit a1fdeee "Makefile: clean up install path handling." broke the ability to configure with one path and then run in a different path. Turns out people actually do this! So, we have to use relative paths, compared to our existing binary. And we can't use path_rel, because that requires that the path exist (thanks @Lagrang3!). Fixes: ElementsProject#7595 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Commit a1fdeee "Makefile: clean up install path handling." broke the ability to configure with one path and then run in a different path. Turns out people actually do this! So, we have to use relative paths, compared to our existing binary. And we can't use path_rel, because that requires that the path exist (thanks @Lagrang3!). Fixes: ElementsProject#7595 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Commit a1fdeee "Makefile: clean up install path handling." broke the ability to configure with one path and then run in a different path. Turns out people actually do this! So, we have to use relative paths, compared to our existing binary. And we can't use path_rel, because that requires that the path exist (thanks @Lagrang3!). Fixes: ElementsProject#7595 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
I'm trying to test v24.08rc2
When I attempt to start lightningd I get an error message saying that "bitcoin-cli" is an unknown configuration option. This is a valid config option in v24.05 though, my bitcoin-cli is in a specific filepath that needs declared. Was this config changed in 24.08rc2 to something else?
The text was updated successfully, but these errors were encountered: