-
Notifications
You must be signed in to change notification settings - Fork 407
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
Config: the default configuration file is ignored, and so is --conf
#1065
Comments
Firstly, are you sure you're using a recent version from this repository? Not forks made by other people as those tend to introduce incompatible changes. Also are you sure you're using a recent version? Are you sure you're launching it with correct Sorry if these seem like stupid questions but the code definitely worked last time I tested and also there weren't any changes. And the code looks correct to me so OS issues are more likely. |
I am more than positive that something is wrong with what I do and not with the code. Still I did follow instructions to the letter.
|
And to be clear, if I put the config in the command line like
They are used and it starts. Is just that it does not load from the toml config. |
It's normally set by the OS (see |
I had a similar issue on a laptop, this solved it |
I had a similar issue. Seems the binary can't start if you call --conf from a none "standard" (hard coded) directory. In my init script, i had to cd into the path of the config file, or else it would refuse to read the file. |
@thnkman what was the error message? Relative paths should work normally as any other. |
IIRC It was along the lines of "No such file or directory" |
Then you must've supplied a wrong path. |
I spent some time trying to troubleshoot this. Here are my findings: In my initscript, i have the following; When this line is executed, electrs will spit out a error: If i rename config.toml to electrs.toml: Then, if i add --skip-default-conf-files to the runuser line in my initscript, every thing is fine. This might be expected behavior, but it's a little counter intuitive, at least to me. |
It's expected but I think we could improve the error message somehow. Electrs tries to read configuration from default locations first and merge it together with other things. |
Have you read the documentation?
Yes.
How did you configure electrs?
Is running on a raspberrypi with latest Raspian OS. I built it from scratch.
Environment variables: none set
Arguments: none set
Debug output of configuration
Expected behavior
I would expect the configuration to be loaded, as expected from the docs: https://github.com/romanz/electrs/blob/master/doc/config.md#configuration-files-and-priorities
Actual behavior
It is clear that electrs is starting using default configuration, looking for files in
/home/pi/.bitcoin/
while my config states otherwise.The text was updated successfully, but these errors were encountered: