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

[bug] Unable to parse settings.json #66

Open
kn0wmad opened this issue Apr 26, 2022 · 11 comments
Open

[bug] Unable to parse settings.json #66

kn0wmad opened this issue Apr 26, 2022 · 11 comments
Assignees
Labels
Bug Something isn't working Needs Triage Not enough information to determine priority

Comments

@kn0wmad
Copy link
Contributor

kn0wmad commented Apr 26, 2022

2022-04-25T15:52:54.203097Z Apr 25 16:52:54.202 ERROR embassy::manager: service just started. not issuing crash notification
2022-04-25T15:52:54.203540Z Apr 25 16:52:54.203 ERROR embassy::manager: service crashed: 1: Error updating blockchain info: error: timeout on transient error: Could not connect to the server 127.0.0.1:8332
2022-04-25T15:52:54.203540Z Make sure the bitcoind server is running and that you are connecting to the correct RPC port.
2022-04-25T15:52:54.203540Z Error: Failed loading settings file:
2022-04-25T15:52:54.203540Z - Unable to parse settings file /root/.bitcoin/settings.json

EDIT by @ProofOfKeags: Solution here is to disable its use since it is solely for Bitcoin Core GUI functionality.

@kn0wmad kn0wmad added Bug Something isn't working Needs Triage Not enough information to determine priority Needs Scoping Requirements are not fully defined labels Apr 26, 2022
@chrisguida
Copy link
Contributor

What symptoms are you seeing, other than the error message?

@kn0wmad
Copy link
Contributor Author

kn0wmad commented May 2, 2022

None of the Bitcoin stack works without Bitcoin. Most specifically he is trying to use LND

@chrisguida
Copy link
Contributor

What is LND doing, specifically?

@ProofOfKeags
Copy link
Contributor

This has nothing to do with LND. This is an issue where the settings.json file was corrupted for some reason. I suspect there was a SIGKILL issued during a write which caused this. The fix was very straight forward, but I don't know how it happened in the first place or whether the solution we employed for the fix is always safe/good.

@chrisguida
Copy link
Contributor

chrisguida commented May 2, 2022

I'm trying to determine what is breaking here. Sometimes an error message is benign.

@ProofOfKeags
Copy link
Contributor

I'm trying to determine what is breaking here. Sometimes an error message is benign.

I addressed this last week with @kn0wmad out of band. But to catch you up. If the settings.json file is not parseable, bitcoind will not start up. That is the last log message before it crashes in a loop. Everything you expect to break downstream of that breaks the way you would expect.

@chrisguida
Copy link
Contributor

Do you know what settings.json is for? I've actually never noticed it before. It appears to be blank on my system:

# cat settings.json 
{
   }

@chrisguida
Copy link
Contributor

Thanks. Do you know why it would become unparseable? Perhaps we should simply disable it, we're not using it anyway.

@ProofOfKeags
Copy link
Contributor

Thanks. Do you know why it would become unparseable?

My guess is that it was killed in the middle of an overwrite and truncated or something

Perhaps we should simply disable it, we're not using it anyway.

I completely support this. It seems to only be for the GUI which we don't/can't make use of.

@kn0wmad
Copy link
Contributor Author

kn0wmad commented May 4, 2022

Have been unable to try the fix as the user now has hardware issues that are being debugged. I suppose this ticket can stay open if disabling the file in question sounds like the solution

@ProofOfKeags ProofOfKeags removed the Needs Scoping Requirements are not fully defined label May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Needs Triage Not enough information to determine priority
Projects
Status: No status
Development

No branches or pull requests

3 participants