I run a full node bitcoin core in a raspberry-pi-like device, the synchronization stop and server gone away after a short time running #10664

issue jobsfan openend this issue on June 24, 2017
  1. jobsfan commented at 2:49 am on June 24, 2017: none

    Hi dear! I run a full node bitcoin core in a raspberry-pi-like device, the synchronization stop and server gone away after a short time running.

    I have a device called cubie board, it is similar to raspberry-pi, a small computer model. with 2G RAM and 8G ROM, and I mount a 350G hard disk as the main folder for bitcoin-core, I download the arm version and run in it.

    the first time, I run the software for the synchronization, when the datachain reach around 40G, the server stop for unknown reason. I type ./bitcoind -daemon and start the server again. however it stop, I run the “top” in the termination and watch, the progress of bitcoind just show for a while, and then disappear.

    I delete all the data inside the ~./bitcoin folder, and start over. this time, the phenomenon happened again when the datachain size reach around 65G.

    I don’t know why this happened, And I don’t know whether this happened in others computer. I cannot find the answer on the internet, like goole or baidu [a web search engine in China], most of the results I searched via the goole or baidu are how to make money with bitcoin or how to do a wish vestment with bitcoin, very few tech answer about my problem.

    So. it is very appreciated if someone can help me with it!!

  2. TheBlueMatt commented at 3:45 am on June 24, 2017: member
    Bitcoin Core tends to be pretty good at finding hardware issues, which tends to be a common issue on these types of devices - what does the end of the debug.log file in your bitcoin folder look like?
  3. jobsfan commented at 7:41 am on June 24, 2017: none

    Hi TheBlueMatt, thank you for your reply!

    I download the debug.log, and paste the last two lines as follow:

    2017-06-24 03:34:33 Pre-allocating up to position 0xc00000 in rev00451.dat 2017-06-24 03:34:44 Error: Out of memory. Terminating.

    It means 2G memery is not enough to run the arm version bitcoin-core full node? Is there anyway to change the configuration file to fixed this problem?

  4. MarcoFalke commented at 7:45 am on June 24, 2017: member

    You might want to reduce the memory usage: https://gist.github.com/laanwj/efe29c7661ce9b6620a7

    On Sat, Jun 24, 2017 at 9:42 AM, jobsfan notifications@github.com wrote:

    2017-06-24 03:34:33 Pre-allocating up to position 0xc00000 in rev00451.dat 2017-06-24 03:34:44 Error: Out of memory. Terminating.

    — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bitcoin/bitcoin/issues/10664#issuecomment-310822786, or mute the thread https://github.com/notifications/unsubscribe-auth/AGGmv7_vUlWmBMbz3G3hJDoFEy41wo97ks5sHL3RgaJpZM4OEMsY .

  5. MarcoFalke added the label Resource usage on Jun 24, 2017
  6. MarcoFalke added the label Questions and Help on Jun 24, 2017
  7. jobsfan commented at 7:57 am on June 24, 2017: none
    Hello MarcoFalke, should I reduce the dbcache size in config file? Ok, I will write the -dbcache=100 into the bitcoin.conf and then report back. Thank you for your efforts!
  8. laanwj commented at 9:50 am on June 24, 2017: member
    Seems it has been answered. For next time: these kind of questions are more suited to the bitcoin stack exchange, https://bitcoin.stackexchange.com/.
  9. laanwj closed this on Jun 24, 2017

  10. jobsfan commented at 1:28 pm on June 26, 2017: none

    Hi MarcoFalke, I come and report back, in these two days, I try different dbcache size in my little device, from 100, 50,30, to 10. I don’t think it make sense I have 2G ram, and I just can use 10M of it. And it still unstable even I set dbcache to 10, it run for a while and then quit with error Out of memory. Terminating in the debug.log, what I can do now is to set it to 5? 3? 1?

    Thank you anyway! However I am so confused and don’t know what to do.

  11. TheBlueMatt commented at 2:06 pm on June 26, 2017: member
    Did you also try reducing your connection count and some of the other tips in that document? 0.15 should be much better about dbcache usage, so might help when its available.
  12. jobsfan commented at 2:15 pm on June 26, 2017: none
    Hi TheBlueMatt, thanks for your reply! I tried to run with “./bitcoind -daemon –dbcache=30 –maxconnections=8”, hope it is a stable one. The connection count you mean is maxconnection? Thanks again for your efforts
  13. sdaftuar commented at 2:49 pm on June 26, 2017: member
    Since 0.14.0, unused memory allocated to the mempool (default: 300MB) is shared with the utxo cache, so if you’re trying to reduce memory usage you should also try limiting the mempool, with the -maxmempool command line argument.
  14. laanwj commented at 4:02 pm on June 26, 2017: member
  15. jobsfan commented at 11:03 pm on June 27, 2017: none

    I have tried many params in these days, like “./bitcoind -daemon –dbcache=20 –maxconnections=3 –timeout=10000 –par=2 –maxmempool=100”

    All the same, it runs for a little while, and then quit with “out of memory” error. I wana cry!

  16. TheBlueMatt commented at 11:16 pm on June 27, 2017: member
    Are you running something else on this device? Running out with 2GB of memory seems very strange, lots of people run nodes on hosts with much, much less memory. Otherwise your best bet may be to wait for 0.15.
  17. jobsfan commented at 3:49 am on June 28, 2017: none

    Hi TheBlueMatt, I am so sure that no other services run on this device. It is a brand-new ubuntu 16.04 server I just built it for bitcoin-core. I install the system, set the network and ssl for connection from a terminator. Then the arm version bitcoin core.

    My device is cubieboard truck, it is a raspberry-pi-like device, with 2G RAM, and 8G ROM, I mount a 320G hard disk as the blockchain folder in /opt/bitcoin, and set a soft link to /opt/bitcoin/data from ~./bitcoin folder.

    By the way, the 320G hard disk is a combination hard disk, I take the hard disk from a PC, and fixed it into a hard-disk-box. and, a hand-made hard disk!

  18. laanwj commented at 6:25 am on June 28, 2017: member
    Maybe add a swap file / partition?
  19. TheBlueMatt commented at 2:27 pm on June 28, 2017: member
    Can you give the output of “ps auH” or so?
  20. jobsfan commented at 2:31 pm on June 28, 2017: none
    Hi Lannwj and TheBlueMatt, I have create a swap partition of 2G, and it has been running for a long while. And I will keep watching, Hope this time is works good.
  21. jobsfan commented at 12:00 pm on June 29, 2017: none
    Hi Lannwj and TheBlueMatt, till now, it runs for almost a whole day, I guess my problem has been fixed! Thank your so much for all your efforts and time!
  22. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-26 12:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me