0

While downloading blockchain im getting this error

Fatal: Error starting protocol stack: write /root/.ethereum/geth/chaindata/230944.ldb: no space left on device

how this can be resolved? Im downloading it for learning purpose, so i can learn to develop ETH based websites and wallets and mining etc...

1

Sounds like you don't have space left on your machine, your HD is full. Running a full node with Geth takes space because you have to download the entire blockchain [~50GB]

Solution 1: Clean up your machine to get some space

Solution 2: Run Geth in light mode geth --syncmode "light". Light clients only download block headers which reduce considerably the chain data folder. [more info]

Solution 3: Connect to a third-party hosted node. If you don't want to run your own node locally, you can rely an hosted node such as INFURA

  • if i use this command geth --syncmode "light" then do i need to delete all files under chaindata folder? And start downloading block chain again? – shawn Feb 17 '18 at 11:20
  • Yes you can't combine full sync and light sync. You can remove the chain data folder using geth removedb – Greg Jeanmart Feb 17 '18 at 11:21
  • My previous command was, which ended up with ERROR : no space left on device geth --fast --cache 1024 --rpc --rpcaddr 127.0.0.1 --rpcport 8545 --rpccorsdomain * --rpcapi admin,db,eth,debug,miner,net,shh,txpool,personal,web3 Shall i use this command now to download blockchain with "light"? Is is correct command to execute? geth --syncmode "light" --cache 1024 --rpc --rpcaddr 127.0.0.1 --rpcport 8545 --rpccorsdomain * --rpcapi admin,db,eth,debug,miner,net,shh,txpool,personal,web3 – shawn Feb 17 '18 at 11:28
  • yeah that looks correct – Greg Jeanmart Feb 17 '18 at 11:30
  • thanks greg, one more last stupid question. How much time and disk space new command supposed to use? im super new to this stuff – shawn Feb 17 '18 at 11:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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