Pages:
Author

Topic: Bitcoin Core 0.13 freezes Ubuntu 16 (Read 1816 times)

member
Activity: 103
Merit: 10
November 30, 2016, 04:41:15 AM
#27
Problem solved, thanks everyone!
sr. member
Activity: 294
Merit: 250
November 27, 2016, 04:19:28 PM
#26
Okay great, dbcache just tells bitcoin t use only 500mb of cache. HTOP should show less load now, and cpus must be mostly free.
member
Activity: 103
Merit: 10
November 27, 2016, 04:06:36 PM
#25
Here is screen photo from latest freeze with HTOP data (sorry, bad quality):
http://imgur.com/a/TIBfq 

Looks like all 4 cores are almost fully used.

Okay but please add to the bitcoin.conf the settings i mentioned above,restart bitcoin, and it shall have no problem then.

ok, I have
dbcache=500
par=1

Now it adds new blocks slower of course, but hopefully it won't the freeze the computer anymore.
Can you tell what does dbcache=500 exactly do?


Thanks a lot!
sr. member
Activity: 294
Merit: 250
November 27, 2016, 03:37:03 PM
#24
Here is screen photo from latest freeze with HTOP data (sorry, bad quality):
http://imgur.com/a/TIBfq 

Looks like all 4 cores are almost fully used.

Okay but please add to the bitcoin.conf the settings i mentioned above,restart bitcoin, and it shall have no problem then.
member
Activity: 103
Merit: 10
November 27, 2016, 03:34:16 PM
#23
Here is screen photo from latest freeze with HTOP data (sorry, bad quality):
http://imgur.com/a/TIBfq 

Looks like all 4 cores are almost fully used.
sr. member
Activity: 294
Merit: 250
November 27, 2016, 02:59:04 PM
#22
Thanks for the info. I would recommend :

dbcache=500
par=1

Parameter  "par" tells bitcoin to limit the threads to 1, since HTOP indicates that all of the CPUs are being busy 100% with bitcoin having 4 threads. So if we limit it to 1, plus decrease RAM then it shall work. Please try it and let me know
staff
Activity: 3458
Merit: 6793
Just writing some code
November 27, 2016, 01:42:44 PM
#21
I did this but it froze again after about 20 mins.
Maybe there are bad blocks on HDD? Computer is new so I thought that was unlikely.
I think you are running out of RAM. Look at your CPU, RAM, and disk usage stats while you are running Bitcoin Core. I think that you will see your RAM usage go to 100% and then the computer freezes.

Try closing as many other open applications to free up as much RAM as possible
member
Activity: 103
Merit: 10
November 27, 2016, 12:53:13 PM
#20

Bitcoin Core just froze Ubuntu again, it had been running for about an hour, more often it happens after 15-20 minutes. I was able to download blockchain until 1 year 40 weeks were left, then this problem started.

I can't find bitcoin.conf, it should be in /home/username/.bitcoin/bitcoin.conf , but it is not there.

UPDATE:
This is Bitcoin-Qt.conf file from /home/username/.config/Bitcoin :
Bitcoin-Qt.conf is not related to this. That is an internal Qt thing. The bitcoin.conf file in ~/.bitcoin does not exist unless you create it. Make a new text file and save it as ~/.bitcoin/bitcoin.conf. Then add the following line:
Code:
dbcache=200
This should lower ram usage. The sync will go slowly, but it hopefully won't freeze your computer.
I did this but it froze again after about 20 mins.
Maybe there are bad blocks on HDD? Computer is new so I thought that was unlikely.
staff
Activity: 3458
Merit: 6793
Just writing some code
November 27, 2016, 12:01:40 PM
#19
Bitcoin Core just froze Ubuntu again, it had been running for about an hour, more often it happens after 15-20 minutes. I was able to download blockchain until 1 year 40 weeks were left, then this problem started.

I can't find bitcoin.conf, it should be in /home/username/.bitcoin/bitcoin.conf , but it is not there.

UPDATE:
This is Bitcoin-Qt.conf file from /home/username/.config/Bitcoin :
[/quote]
Bitcoin-Qt.conf is not related to this. That is an internal Qt thing. The bitcoin.conf file in ~/.bitcoin does not exist unless you create it. Make a new text file and save it as ~/.bitcoin/bitcoin.conf. Then add the following line:
Code:
dbcache=200
This should lower ram usage. The sync will go slowly, but it hopefully won't freeze your computer.
member
Activity: 103
Merit: 10
November 27, 2016, 11:17:52 AM
#18
Okay, no it doesn't mean that you only have 256 free. Memory and iotop seems fine, but is bitcoin running for few minutes before it crashes? Also share you bitcoin.conf(we want the "dbcache=" variable) file please. Also, print screen your HTOP or TOP -c command output
Bitcoin Core just froze Ubuntu again, it had been running for about an hour, more often it happens after 15-20 minutes. I was able to download blockchain until 1 year 40 weeks were left, then this problem started.

I can't find bitcoin.conf, it should be in /home/username/.bitcoin/bitcoin.conf , but it is not there.

UPDATE:
This is Bitcoin-Qt.conf file from /home/username/.config/Bitcoin :

[General]
addrProxy=127.0.0.1:9050
addrSeparateProxyTor=127.0.0.1:9050
bSpendZeroConfChange=true
fCoinControlFeatures=false
fFeeSectionMinimized=true
fHideTrayIcon=false
fListen=true
fMinimizeOnClose=false
fMinimizeToTray=false
fPayOnlyMinFee=false
fReset=false
fRestartRequired=false
fSendFreeTransactions=false
fUseProxy=false
fUseSeparateProxyTor=false
fUseUPnP=false
language=
nCustomFeeRadio=0
nDatabaseCache=300
nDisplayUnit=0
nFeeRadio=0
nRPCConsoleWindowPos=@Point(284 -4)
nRPCConsoleWindowSize=@Size(740 460)
nSettingsVersion=130100
nSmartFeeSliderPosition=0
nThreadsScriptVerif=0
nTransactionFee=0
nWindowPos=@Point(288 -4)
nWindowSize=@Size(850 550)
strDataDir=/home/l5/.bitcoin
strThirdPartyTxUrls=


This is HTOP:
http://imgur.com/a/WYHGX
sr. member
Activity: 294
Merit: 250
November 27, 2016, 10:53:42 AM
#17
Okay, no it doesn't mean that you only have 256 free. Memory and iotop seems fine, but is bitcoin running for few minutes before it crashes? Also share you bitcoin.conf(we want the "dbcache=" variable) file please. Also, print screen your HTOP or TOP -c command output
member
Activity: 103
Merit: 10
November 27, 2016, 10:28:35 AM
#16
4GB RAM? Sounds extremely low, please start bitcoin again and before it crashes run free -m , also install iotop and run it and make a screenshot. I don't think  that its HDD, mostly RAM, and maybe CPU. If you want to understand better about CPU and processes download HTOP which is easier to use for non-experienced users. I would say most probably its CPU+RAM and maybe you will need to give bitcoin process lower priority and disable memory cache  so that it doesn't crash the whole system
Thanks for the answer.
With free -m I get this:
                    total        used        free      shared  buff/cache   available
Mem:           3850        1799         275          93        1775        1679
Swap:          3995         188        3807

Does that mean almost all memory is used? Only 275 MB free.

"maybe you will need to give bitcoin process lower priority and disable memory cache  so that it doesn't crash the whole system"
How do I do that?

This is screenshot from iotop:
http://imgur.com/a/rn2TO
sr. member
Activity: 294
Merit: 250
November 27, 2016, 10:00:27 AM
#15
4GB RAM? Sounds extremely low, please start bitcoin again and before it crashes run free -m , also install iotop and run it and make a screenshot. I don't think  that its HDD, mostly RAM, and maybe CPU. If you want to understand better about CPU and processes download HTOP which is easier to use for non-experienced users. I would say most probably its CPU+RAM and maybe you will need to give bitcoin process lower priority and disable memory cache  so that it doesn't crash the whole system
member
Activity: 103
Merit: 10
November 26, 2016, 05:14:37 PM
#14
Now Bitcoin Core totally freezes Ubuntu after downloading 3-5 days' worth of data.
It is actually downloading blocks quite rapidly until it freezes.
CPU usage for bitcoin-qt while it is working is more than 300% most of the time according to "top" (Pentium N3700 has 4 cores).
member
Activity: 103
Merit: 10
November 26, 2016, 12:01:43 PM
#13
Thanks for the answer. Laptop is new, so there is essentially 500 GB free space, basically I don't have anything else on that laptop .
I figured out that maybe that freeze was due to overheating, because that freeze happened after laptop was already working on blockchain for several hours.
I will try to find debug.log file and post it.

How did you partition the disk?
How much do you separate? To / home directory
Switch to root account
You have tried the following commands.
Write the output on this subject.

fdisk -l /dev/sda

df -h

find / -name ".bitcoin" -type d


Thanks for trying to help.

This is the result of fdisk -l /dev/sda:

Disk /dev/sda: 465,8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: A7869A7B-98F5-4207-BCCF-11ADFC917D47

Device       Start       End   Sectors   Size Type
/dev/sda1     2048   1050623   1048576   512M EFI System
/dev/sda2  1050624   2050047    999424   488M Linux filesystem
/dev/sda3  2050048 976771071 974721024 464,8G Linux filesystem


df -h:

Filesystem                   Size  Used Avail Use% Mounted on
udev                         1,9G     0  1,9G   0% /dev
tmpfs                        386M  6,3M  379M   2% /run
/dev/mapper/ubuntu--vg-root  454G   69G  363G  16% /
tmpfs                        1,9G  224K  1,9G   1% /dev/shm
tmpfs                        5,0M  4,0K  5,0M   1% /run/lock
tmpfs                        1,9G     0  1,9G   0% /sys/fs/cgroup
/dev/sda2                    473M  115M  334M  26% /boot
/dev/sda1                    511M  3,6M  508M   1% /boot/efi
tmpfs                        386M   56K  385M   1% /run/user/1000


find / -name ".bitcoin" -type d
results in
find: ‘/run/user/1000/gvfs’: Permission denied

member
Activity: 103
Merit: 10
November 26, 2016, 11:50:46 AM
#12
When I try to view debug.log I get this:
There was a problem opening the file “/home/l5/.bitcoin/debug.log”. The file you opened has some invalid characters. If you continue editing this file you could corrupt this document.
You can also choose another character encoding and try again.

Retry Edit anyway Cancel

What should I do?
Edit anyway. Don't actually edit anything and don't save anything when you close the file.

And there is lot of text - should I just copy/paste it here?
Yes. If it is too much for here, copy and paste it into a new paste on http://pastebin.com/ and post the link. If it is still too much for that, just paste as much as you can from the bottom of the file.
Here is debug.log: https://paste.ee/p/hu1JF
Zz
legendary
Activity: 1820
Merit: 1077
November 26, 2016, 06:27:52 AM
#11
Thanks for the answer. Laptop is new, so there is essentially 500 GB free space, basically I don't have anything else on that laptop .
I figured out that maybe that freeze was due to overheating, because that freeze happened after laptop was already working on blockchain for several hours.
I will try to find debug.log file and post it.

How did you partition the disk?
How much do you separate? To / home directory
Switch to root account
You have tried the following commands.
Write the output on this subject.

fdisk -l /dev/sda

df -h

find / -name ".bitcoin" -type d

staff
Activity: 3458
Merit: 6793
Just writing some code
November 25, 2016, 08:25:35 PM
#10
When I try to view debug.log I get this:
There was a problem opening the file “/home/l5/.bitcoin/debug.log”. The file you opened has some invalid characters. If you continue editing this file you could corrupt this document.
You can also choose another character encoding and try again.

Retry Edit anyway Cancel

What should I do?
Edit anyway. Don't actually edit anything and don't save anything when you close the file.

And there is lot of text - should I just copy/paste it here?
Yes. If it is too much for here, copy and paste it into a new paste on http://pastebin.com/ and post the link. If it is still too much for that, just paste as much as you can from the bottom of the file.
member
Activity: 103
Merit: 10
November 25, 2016, 06:36:51 PM
#9
The Bitcoin blockchain is much larger and requires more processing power to process than most altcoins.

How much free space do you have on that hard drive before you started Bitcoin Core?

Can you please post the debug.log file?
When I try to view debug.log I get this:
There was a problem opening the file “/home/l5/.bitcoin/debug.log”. The file you opened has some invalid characters. If you continue editing this file you could corrupt this document.
You can also choose another character encoding and try again.

Retry Edit anyway Cancel

What should I do?

And there is lot of text - should I just copy/paste it here?
member
Activity: 103
Merit: 10
November 25, 2016, 06:32:42 PM
#8
It looks like the problem is not due to overheating after all because now it occurs after relatively short period of time and laptop doesn't feel that hot.
Pages:
Jump to: