Title: Bitcoin Core 0.13 freezes Ubuntu 16 Post by: Fenix_One on November 24, 2016, 10:02:09 AM Hello, so I have a new Dell laptop with Intel Pentium N3700, 4 GB RAM and 500 GB HDD with Ubuntu 16. I want to use it to store cryptocurrencies. So I downloaded Bitcoin Core 0.13 and it started synchronizing. When it got to the point that ~1 year 40 weeks were left to synchronize, computer just froze, keyboard didn't respond, mouse/ touchpad didn't respond too. I had to shut down computer with power button. I ran Bitcoin Core for several more times and every time it froze after 5 - 20 min. I tried Bitcoin Core 0.12 and result was the same.
However I managed to set up Dash Core (I am not trying to promote Dash here) and wallet for another coin and it downloaded both blockchains without problem. Should I try older version of Bitcoin Core? But would that be safe? I guess I can use Electrum or other wallet but I wanted to use the "real" thing. Title: Re: Bitcoin Core 0.13 freezes Ubuntu 16 Post by: achow101 on November 24, 2016, 04:21:56 PM 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? Title: Re: Bitcoin Core 0.13 freezes Ubuntu 16 Post by: rally on November 24, 2016, 04:36:18 PM Hello, so I have a new Dell laptop with Intel Pentium N3700, 4 GB RAM and 500 GB HDD with Ubuntu 16. I want to use it to store cryptocurrencies. So I downloaded Bitcoin Core 0.13 and it started synchronizing. When it got to the point that ~1 year 40 weeks were left to synchronize, computer just froze, keyboard didn't respond, mouse/ touchpad didn't respond too. I had to shut down computer with power button. I ran Bitcoin Core for several more times and every time it froze after 5 - 20 min. I tried Bitcoin Core 0.12 and result was the same. However I managed to set up Dash Core (I am not trying to promote Dash here) and wallet for another coin and it downloaded both blockchains without problem. Should I try older version of Bitcoin Core? But would that be safe? I guess I can use Electrum or other wallet but I wanted to use the "real" thing. I am now donwloading the blockchain of bitcoin core. At this moment i a only twee weeks behind. If i look at my harddisk i now use already 97.5 GB. I use the lastest version i think Bitcoin core 0.13.1. Is it possible perhaps that you don't have enough free space anymore on your harddisk. That's why i did buy an external harddisk to put the blockchain on it. I have been downloading now for a good two weeks (about 5 hours a day). Title: Re: Bitcoin Core 0.13 freezes Ubuntu 16 Post by: Fenix_One on November 25, 2016, 10:24:03 AM The Bitcoin blockchain is much larger and requires more processing power to process than most altcoins. 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 .How much free space do you have on that hard drive before you started Bitcoin Core? Can you please post the debug.log file? 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. Title: Re: Bitcoin Core 0.13 freezes Ubuntu 16 Post by: Fenix_One on November 25, 2016, 10:28:13 AM Hello, so I have a new Dell laptop with Intel Pentium N3700, 4 GB RAM and 500 GB HDD with Ubuntu 16. I want to use it to store cryptocurrencies. So I downloaded Bitcoin Core 0.13 and it started synchronizing. When it got to the point that ~1 year 40 weeks were left to synchronize, computer just froze, keyboard didn't respond, mouse/ touchpad didn't respond too. I had to shut down computer with power button. I ran Bitcoin Core for several more times and every time it froze after 5 - 20 min. I tried Bitcoin Core 0.12 and result was the same. However I managed to set up Dash Core (I am not trying to promote Dash here) and wallet for another coin and it downloaded both blockchains without problem. Should I try older version of Bitcoin Core? But would that be safe? I guess I can use Electrum or other wallet but I wanted to use the "real" thing. I am now donwloading the blockchain of bitcoin core. At this moment i a only twee weeks behind. If i look at my harddisk i now use already 97.5 GB. I use the lastest version i think Bitcoin core 0.13.1. Is it possible perhaps that you don't have enough free space anymore on your harddisk. That's why i did buy an external harddisk to put the blockchain on it. I have been downloading now for a good two weeks (about 5 hours a day). Now I think that freeze could have been due to overheating. But two weeks for downloading blockchain - that sounds like a lot. What kind of CPU and how much RAM do you have on your computer? Title: Re: Bitcoin Core 0.13 freezes Ubuntu 16 Post by: achow101 on November 25, 2016, 03:45:13 PM 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 . Bitcoin Core is also extremely hardware intensive. You seem to have fairly low end hardware so Bitcoin Core will probably not run as well as you want it to.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. Title: Re: Bitcoin Core 0.13 freezes Ubuntu 16 Post by: CoralPay on November 25, 2016, 08:47:18 PM You need good amount of HDD spaces. It's hardware intensive.
Title: Re: Bitcoin Core 0.13 freezes Ubuntu 16 Post by: Fenix_One on November 25, 2016, 11:32:42 PM 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.
Title: Re: Bitcoin Core 0.13 freezes Ubuntu 16 Post by: Fenix_One on November 25, 2016, 11:36:51 PM The Bitcoin blockchain is much larger and requires more processing power to process than most altcoins. When I try to view debug.log I get this: How much free space do you have on that hard drive before you started Bitcoin Core? Can you please post the debug.log file? 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? Title: Re: Bitcoin Core 0.13 freezes Ubuntu 16 Post by: achow101 on November 26, 2016, 01:25:35 AM When I try to view debug.log I get this: Edit anyway. Don't actually edit anything and don't save anything when you close the file.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? 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.Title: Re: Bitcoin Core 0.13 freezes Ubuntu 16 Post by: Zz on November 26, 2016, 11:27:52 AM 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 Title: Re: Bitcoin Core 0.13 freezes Ubuntu 16 Post by: Fenix_One on November 26, 2016, 04:50:46 PM When I try to view debug.log I get this: Edit anyway. Don't actually edit anything and don't save anything when you close the file.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? 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.Title: Re: Bitcoin Core 0.13 freezes Ubuntu 16 Post by: Fenix_One on November 26, 2016, 05:01:43 PM 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 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 Title: Re: Bitcoin Core 0.13 freezes Ubuntu 16 Post by: Fenix_One on November 26, 2016, 10:14:37 PM 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). Title: Re: Bitcoin Core 0.13 freezes Ubuntu 16 Post by: KingDice on November 27, 2016, 03:00:27 PM 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
Title: Re: Bitcoin Core 0.13 freezes Ubuntu 16 Post by: Fenix_One on November 27, 2016, 03:28:35 PM 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 Title: Re: Bitcoin Core 0.13 freezes Ubuntu 16 Post by: KingDice on November 27, 2016, 03:53:42 PM 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
Title: Re: Bitcoin Core 0.13 freezes Ubuntu 16 Post by: Fenix_One on November 27, 2016, 04:17:52 PM 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 Title: Re: Bitcoin Core 0.13 freezes Ubuntu 16 Post by: achow101 on November 27, 2016, 05:01:40 PM 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 Title: Re: Bitcoin Core 0.13 freezes Ubuntu 16 Post by: Fenix_One on November 27, 2016, 05:53:13 PM 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 : Code: dbcache=200 Maybe there are bad blocks on HDD? Computer is new so I thought that was unlikely. Title: Re: Bitcoin Core 0.13 freezes Ubuntu 16 Post by: achow101 on November 27, 2016, 06:42:44 PM I did this but it froze again after about 20 mins. 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. Maybe there are bad blocks on HDD? Computer is new so I thought that was unlikely. Try closing as many other open applications to free up as much RAM as possible Title: Re: Bitcoin Core 0.13 freezes Ubuntu 16 Post by: KingDice on November 27, 2016, 07:59:04 PM 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 Title: Re: Bitcoin Core 0.13 freezes Ubuntu 16 Post by: Fenix_One on November 27, 2016, 08:34:16 PM 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. Title: Re: Bitcoin Core 0.13 freezes Ubuntu 16 Post by: KingDice on November 27, 2016, 08:37:03 PM 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. Title: Re: Bitcoin Core 0.13 freezes Ubuntu 16 Post by: Fenix_One on November 27, 2016, 09:06:36 PM 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! Title: Re: Bitcoin Core 0.13 freezes Ubuntu 16 Post by: KingDice on November 27, 2016, 09:19:28 PM Okay great, dbcache just tells bitcoin t use only 500mb of cache. HTOP should show less load now, and cpus must be mostly free.
Title: Re: Bitcoin Core 0.13 freezes Ubuntu 16 Post by: Fenix_One on November 30, 2016, 09:41:15 AM Problem solved, thanks everyone!
|