Bitcoin Forum
April 27, 2024, 01:49:33 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin-qt just suddenly closes itself, crash type  (Read 127 times)
flame0562 (OP)
Newbie
*
Offline Offline

Activity: 18
Merit: 21


View Profile
December 01, 2022, 04:20:01 PM
Merited by ABCbits (1)
 #1

Hello everyone.
In case this was asked before I hope some of you can guide me.
So I am trying to set up a full node too, but on an older machine. But the laptop itself is not that bad. Intel CPU is 2.00 GHz x 8, 4 GB Ram.
I set it up with a 2TB HDD so that it can house the blockchain.

I am running the core client on Ubuntu 22.04.1 LTS, and I just don't know where to start in finding out why it just runs for a couple minutes, then suddenly vanishes/crashes.
This is with the GUI client. I have not yet tried out the CLI version only.
I tried to reduce in the settings the DBcache to 300 MB, but still seems to do this.
What is the process one can follow in an attempt to find out why the client just decides to close itself out of the blue?
Thanks a lot in advance.
1714225773
Hero Member
*
Offline Offline

Posts: 1714225773

View Profile Personal Message (Offline)

Ignore
1714225773
Reply with quote  #2

1714225773
Report to moderator
1714225773
Hero Member
*
Offline Offline

Posts: 1714225773

View Profile Personal Message (Offline)

Ignore
1714225773
Reply with quote  #2

1714225773
Report to moderator
There are several different types of Bitcoin clients. The most secure are full nodes like Bitcoin Core, but full nodes are more resource-heavy, and they must do a lengthy initial syncing process. As a result, lightweight clients with somewhat less security are commonly used.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
December 01, 2022, 04:24:19 PM
 #2

You can start by checking the ~/.bitcoin/debug.log file to see if there's anything that relates to the crash.

You could also search for if crash reports are disclosed to the system and check to see if there are any.

These would be the places I'd start checking before looking into the resource management parts (to see how much memory is actually being used for example). I don't know if dbcache can be set that low either.
flame0562 (OP)
Newbie
*
Offline Offline

Activity: 18
Merit: 21


View Profile
December 01, 2022, 04:47:46 PM
 #3

You can start by checking the ~/.bitcoin/debug.log file to see if there's anything that relates to the crash.

You could also search for if crash reports are disclosed to the system and check to see if there are any.

These would be the places I'd start checking before looking into the resource management parts (to see how much memory is actually being used for example). I don't know if dbcache can be set that low either.
Understood.
The debug file seems to filled with lines like this, all of them similar, nothing different until the end. Last 3 lines in that file:
2022-12-01T16:11:55Z UpdateTip: new best=00000000000000000b352f8a21cb1d82cf812a4d9e9c7a824a1b0ba7db674556 height=379750 version=0x00000003 log2_work=83.496117 tx=88597513 date='2015-10-20T13:35:08Z' progress=0.112985 cache=67.0MiB(175336txo)
2022-12-01T16:11:55Z UpdateTip: new best=00000000000000000d9621377fab43507e389851456d6bccb5198656f7e0003f height=379751 version=0x00000003 log2_work=83.496145 tx=88597514 date='2015-10-20T13:35:49Z' progress=0.112985 cache=67.0MiB(175337txo)
2022-12-01T16:11:56Z UpdateTip: new best=000000000000000005f9e1880678545ac43a5abeb736943e5f460b4aadd41b0e height=379752 version=0x00000003 log2_work=83.496172 tx=88600149 date='2015-10-20T14:16:58Z' progress=0.112989 cache=67.5MiB(180044txo)

About the crash reports, I am rather new to this. Where and how does one view crash reports on the linux system?  Cheesy
LoyceV
Legendary
*
Offline Offline

Activity: 3290
Merit: 16557


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
December 01, 2022, 05:04:45 PM
 #4

4 GB Ram.
2TB HDD
DBcache to 300 MB
This is a very bad combination for syncing the blockchain, it's going to be very slow and very demanding on your HDD.

About the crash reports, I am rather new to this. Where and how does one view crash reports on the linux system?  Cheesy
I prefer to start programs from a terminal. If it crashes, the output is shown there.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
flame0562 (OP)
Newbie
*
Offline Offline

Activity: 18
Merit: 21


View Profile
December 01, 2022, 05:42:17 PM
 #5

4 GB Ram.
2TB HDD
DBcache to 300 MB
This is a very bad combination for syncing the blockchain, it's going to be very slow and very demanding on your HDD.

About the crash reports, I am rather new to this. Where and how does one view crash reports on the linux system?  Cheesy
I prefer to start programs from a terminal. If it crashes, the output is shown there.
Well I did start it from the terminal via the terminal, in a way. I can run the GUI only buy using the "bitcoin-qt" command, which keeps the terminal open at the same time too.
But when the thing crashes, everything vanishes at the same time, terminal window and bitcoin GUI. So there was nothing left for me to see.

What do you recommend as PC specs to do the task of just simply being a bitcoin node? I thought that laptop would be enough, I didn't think it would be so bad.  Huh
LoyceV
Legendary
*
Offline Offline

Activity: 3290
Merit: 16557


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
December 01, 2022, 05:47:04 PM
 #6

But when the thing crashes, everything vanishes at the same time, terminal window and bitcoin GUI. So there was nothing left for me to see.
That's weird, I can't tell why that happens.

Quote
What do you recommend as PC specs to do the task of just simply being a bitcoin node? I thought that laptop would be enough, I didn't think it would be so bad.  Huh
In my experience, 8 GB RAM makes syncing the blockchain much smoother. That's enough to be able to fit dbcache in RAM, which largely reduces disk activity. It can work with 4 GB, but it's going to take a while.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
flame0562 (OP)
Newbie
*
Offline Offline

Activity: 18
Merit: 21


View Profile
December 01, 2022, 06:39:51 PM
 #7

But when the thing crashes, everything vanishes at the same time, terminal window and bitcoin GUI. So there was nothing left for me to see.
That's weird, I can't tell why that happens.

Quote
What do you recommend as PC specs to do the task of just simply being a bitcoin node? I thought that laptop would be enough, I didn't think it would be so bad.  Huh
In my experience, 8 GB RAM makes syncing the blockchain much smoother. That's enough to be able to fit dbcache in RAM, which largely reduces disk activity. It can work with 4 GB, but it's going to take a while.
Thanks for the input so far.
I am surprised my laptop cannot handle it and keeps crash closing the client. The minimum requirements listed here were met by it: https://bitcoin.org/en/bitcoin-core/features/requirements
Laptop specs:
Ram 4 GB (and has additional 8GB swap on a SSD inside it)
CPU: Intel® Core™ i7-2630QM CPU @ 2.00GHz × 8
OS name: Ubuntu 22.04.1 LTS

Here is some additional info that I am now starting to wonder if affects how this plays out:
The client I ended up installing was bitcoin-24.0-x86_64-linux-gnu.tar.gz, I got from here: https://binarywatch.org/
Now I didn't see this posted yet on https://bitcoincore.org
I am now in doubt if what I got is not a stable release. Would it have been wiser to just go for bitcoin core version 23? Maybe I should remove it and install this version...

Here is another thing:
The home folder of this linux install is set up on a HDD, while the rest of the directories are on an SSD. Still, I hope this is fine for the program.
When I ran the "whereis" command on "bitcoin-qt", it seems the client is located in the "/usr/local/bin/bitcoin-qt" directory. I wanted to use the HDD just for storage, seems to work.

Hope this helps, any ideas what I could try out?
NotATether
Legendary
*
Offline Offline

Activity: 1582
Merit: 6688


bitcoincleanup.com / bitmixlist.org


View Profile WWW
December 01, 2022, 07:15:03 PM
Merited by flame0562 (1)
 #8

i7-2630QM? What's the temperature of your CPU, can you install lm-sensors and give us some readings?

But your issue sounds like an OS problem not a hardware problem. Does Core close immediately or after a few seconds. Does it also crash when you run it in testnet, signet, and regtest?

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
flame0562 (OP)
Newbie
*
Offline Offline

Activity: 18
Merit: 21


View Profile
December 01, 2022, 07:29:22 PM
 #9

i7-2630QM? What's the temperature of your CPU, can you install lm-sensors and give us some readings?

But your issue sounds like an OS problem not a hardware problem. Does Core close immediately or after a few seconds. Does it also crash when you run it in testnet, signet, and regtest?
I tried running the software as simply "bitcoind" to see on the terminal how it does. Nothing out of the ordinary, the PC did not seem to struggle. Just the process being suddenly gone.
Alright, I installed lm-sensors, but also got no idea how to use it. Currently looking up details about its usage for logging.
About Core behavior:
It just run as usual, doing its tasks, then Boom. Suddenly all its windows vanish, taking with it even the terminal window in which it was running.
flame0562 (OP)
Newbie
*
Offline Offline

Activity: 18
Merit: 21


View Profile
December 01, 2022, 07:38:10 PM
 #10

Here is some snapshots of the system as it runs via the "sensors" command.

coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +52.0°C  (high = +86.0°C, crit = +100.0°C)
Core 0:        +52.0°C  (high = +86.0°C, crit = +100.0°C)
Core 1:        +46.0°C  (high = +86.0°C, crit = +100.0°C)
Core 2:        +45.0°C  (high = +86.0°C, crit = +100.0°C)
Core 3:        +43.0°C  (high = +86.0°C, crit = +100.0°C)

acpitz-acpi-0
Adapter: ACPI interface
temp1:        +50.0°C  (crit = +98.0°C)
temp2:        +50.0°C  (crit = +98.0°C)

I hope it helps.
NotATether
Legendary
*
Offline Offline

Activity: 1582
Merit: 6688


bitcoincleanup.com / bitmixlist.org


View Profile WWW
December 01, 2022, 08:44:42 PM
Last edit: December 01, 2022, 08:59:45 PM by NotATether
Merited by xandry (4)
 #11

Here is some snapshots of the system as it runs via the "sensors" command.

coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +52.0°C  (high = +86.0°C, crit = +100.0°C)
Core 0:        +52.0°C  (high = +86.0°C, crit = +100.0°C)
Core 1:        +46.0°C  (high = +86.0°C, crit = +100.0°C)
Core 2:        +45.0°C  (high = +86.0°C, crit = +100.0°C)
Core 3:        +43.0°C  (high = +86.0°C, crit = +100.0°C)

acpitz-acpi-0
Adapter: ACPI interface
temp1:        +50.0°C  (crit = +98.0°C)
temp2:        +50.0°C  (crit = +98.0°C)

I hope it helps.

Your CPU seems to be fine. Lets check if bitcoind is throwing a fatal C++ exception.

Go to github.com/bitcoin/bitcoin, and go to the Releases page. We are going to download the source code for Bitcoin 24.0 and compile it, then have it run under a debugger.

Under "Bitcoin Core 24.0" download the one that ends with "x86_64-linux-gnu.tar.gz", Extract it to any download folder.

Now, open a terminal and run:

Code:
sudo apt-get install -y build-essential libtool autotools-dev automake pkg-config bsdmainutils python3 libevent-dev libboost-dev libsqlite3-dev libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools qtwayland5

This will install the compiler and other dependencies needed to build Bitcoin Core.

Next, go to the root folder of the bitcoin core source code and run:

Code:
./contrib/install_db4.sh $(pwd)
export BDB_PREFIX=$(pwd)/db4     # This is supposed to be the db4 folder in the current die. If you get mysterious compile errors related to Berkeley DB, you probably forgot to run this command.
./autogen.sh
./configure BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" BDB_CFLAGS="-I${BDB_PREFIX}/include" CXXFLAGS="-O0 -g" CFLAGS="-O0 -g"
make

OK, now we have built Bitcoin Core 24 from source. Now we are ready to debug it. You can open the debugger with this command:

Code:
gdb src/bitcoind

(If that says command not found, you need to install gdb using "sudo apt-get install gdb")

This will open up a debugger.

Now all you have to do is run:

Code:
run -nodaemon

This will start Bitcoind and pass it the -nodaemon option, so it doesn't fork and escape from the debugger.

At this point, just monitor the debugger. If Core crashes or mysteriously disappears again, its going to show up on the debugger. Just copy and paste the entire output here so we can inspect it.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
LoyceV
Legendary
*
Offline Offline

Activity: 3290
Merit: 16557


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
December 01, 2022, 08:49:07 PM
Merited by xandry (4), ABCbits (2), flame0562 (1)
 #12

The client I ended up installing was bitcoin-24.0-x86_64-linux-gnu.tar.gz, I got from here: https://binarywatch.org/
I would never use any other site than the original to download Bitcoin related software.

Quote
Would it have been wiser to just go for bitcoin core version 23?
Try Smiley

Quote
The home folder of this linux install is set up on a HDD, while the rest of the directories are on an SSD.
Since you have an SSD, you can use it to (significantly) improve performance. Something like this, but adjusted for your system:
Code:
mv ~/.bitcoin/chainstate /pathtoSSD/
ln -s /pathtoSSD/chainstate/ ~/.bitcoin/chainstate

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
flame0562 (OP)
Newbie
*
Offline Offline

Activity: 18
Merit: 21


View Profile
December 02, 2022, 08:51:25 PM
 #13

I ended up messing up something on the laptop with the packages and had to reinstall the OS.
But turns out that version 23 of bitcoin core runs without problems. I guess there was something in the code maybe of version 24. *shrug*
Also yeah, moving the chainstate directory to an SSD makes things significantly faster.  Cheesy

Thanks everyone for your inputs.
Also sorry NotATether, I guess there won't be crash reports we can learn from. :/
Still very much appreciated.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!