Getting no space left on device while running geth --datadir ./datadir console
Clash Royale CLAN TAG#URR8PPP
Getting no space left on device while running geth --datadir ./datadir console
I am following this tutorial for setting up a private blockchain and while running below command.
geth --datadir ./datadir console
It ran for 15-20 hours and then returned below error.
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.
df -h
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?
1 Answer
1
write /home/ubuntu/medium-article/datadir/datadir/geth/chaindata/388142.log: no space left on device
There is no more disk space. These are the relevant lines from df -h
:
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 55G 52G 0 100% /
You will need a bigger hard drive.
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.