blockchain – What to look for in Bitcoin-core logfile when something bad happens

[ad_1]

I have seen a suggestion to read the log …

That is a good suggestion.

Normally it wouldn’t be needed. The program should explain to the user when it is unable to do something. However if you have been deleting, renaming or moving it’s data files, you are undermining it’s foundations in a way that the program designers won’t have anticipated – in these circumstances, a logfile is a good place to look to try to understand what the problem is.

For any program, not just bitcoin core, you can check for program options to increase the amount of information logged – for example there might be a debug option – often a -d or -debug command-line flag.

… but honestly I’m not sure what I’m looking for.

You are looking for anything that looks like a major error rather than routine activity. Mostly indicated by words like “error”, “failed”, “unable”, “denied” and so on.

You are also looking for messages relating the the action you took just before the unwanted behaviour occurred. In your example, you clicked “Open wallet” so you are looking for messages that contain the word “wallet” or “file” or “open”. In Bitcoin core you know the wallet is stored in a file named “wallet.dat” so that is a good thing to look for.

Most likely these messages are near the end of the log file, so that might be a good place to start looking.

If you find lines in the log file that look interesting, also look at nearby lines to get a sense of what the program is trying to do and what might be happening. If you post an extract of the log to a Q&A website like this, include maybe ten or so lines either side of the ones that caught your attention. Don’t include too much as no-one wants to read hundreds of lines. Don’t post too little.

[ad_2]

Source link

Leave a Comment