2

I am following this tutorial and while running below command.

geth --datadir ./datadir console 

It ran for 15 hours and then returned below error.

INFO [08-31|09:54:13.343] Imported new state entries
count=2111 elapsed=13.073ms processed=21254438 pending=5885 retry=6 duplicate=393098 unexpected=939711

CRIT [08-31|09:54:14.764] Failed to store last header's hash err="write /home/ubuntu/medium-article/datadir/datadir/geth/chaindata/388142.log: no space left on device"

From the error log its clear this is memory issue but When i check the free memory using df -h the output is given below.

Filesystem      Size  Used Avail Use% Mounted on
udev             32G  4.0K   32G   1% /dev
tmpfs           6.3G  932K  6.3G   1% /run
/dev/sda1        55G   52G     0 100% /
none            4.0K     0  4.0K   0% /sys/fs/cgroup
none            5.0M     0  5.0M   0% /run/lock
none             32G     0   32G   0% /run/shm
none            100M     0  100M   0% /run/user

Could you please give me some hint where i am going wrong?

2
  • Did you init the node with your genesis before running geth?
    – Tony Dang
    Aug 31, 2018 at 16:11
  • 1
    Your hard disk is full. Aug 31, 2018 at 22:45

1 Answer 1

1

Actually the problem was,Total memory i had is 128GB but the memory allocated to /dev/sda1 55G 52G 0 100% / was 55GB only. so error i was getting.

To solve this i allocated more memory around 100GB to /dev/sda1.

For that i had to reinstall OS.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.