github-actions[bot] on remove-stale-bootnodes
params: remove unresponsive boo… (compare)
github-actions[bot] on remove-stale-bootnodes
params: remove unresponsive boo… (compare)
github-actions[bot] on remove-stale-bootnodes
params: remove unresponsive boo… (compare)
github-actions[bot] on remove-stale-bootnodes
params: remove unresponsive boo… (compare)
github-actions[bot] on remove-stale-bootnodes
params: remove unresponsive boo… (compare)
Hi Guys
Anyone know how to fix this issue with geth, looks like some kinda data coruption.
gerard@eth1:/var/log$ sudo geth --syncmode full --cache 4096 --datadir /var/lib/goethereum --datadir.ancient /var/lib/goethereum/geth/chaindata/ancient
INFO [10-28|18:15:43.538] Starting Geth on Ethereum mainnet...
INFO [10-28|18:15:43.539] Maximum peer count ETH=50 LES=0 total=50
INFO [10-28|18:15:43.539] Smartcard socket not found, disabling err="stat /run/pcscd/pcscd.comm: no such file or directory"
WARN [10-28|18:15:43.539] Sanitizing cache to Go's GC limits provided=4096 updated=2621
INFO [10-28|18:15:43.540] Set global gas cap cap=50,000,000
INFO [10-28|18:15:43.540] Allocated trie memory caches clean=393.00MiB dirty=655.00MiB
INFO [10-28|18:15:43.540] Allocated cache and file handles database=/var/lib/goethereum/geth/chaindata cache=1.28GiB handles=524,288
INFO [10-28|18:15:44.445] Opened ancient database database=/var/lib/goethereum/geth/chaindata/ancient readonly=false
Fatal: Failed to register the Ethereum service: ancient chain segments already extracted, please set --datadir.ancient to the correct path
The original problem was this:
Oct 28 12:09:55 eth1 systemd[1]: Started Go Ethereum Client.
Oct 28 12:09:55 eth1 geth[2295579]: Fatal: Failed to register the Ethereum service: gap (#13190610) in the chain between ancients and leveldb
Oct 28 12:09:55 eth1 systemd[1]: geth.service: Main process exited, code=exited, status=1/FAILURE
Oct 28 12:09:55 eth1 systemd[1]: geth.service: Failed with result 'exit-code'.
Oct 28 12:10:01 eth1 systemd[1]: geth.service: Scheduled restart job, restart counter is at 238476.
Oct 28 12:10:01 eth1 systemd[1]: Stopped Go Ethereum Client.
Oct 28 12:10:01 eth1 systemd[1]: Started Go Ethereum Client.
But I saw on another forum where someone used removedb to delete the ancients folder.
How do I rebouild the ancient folder?
Here is the correct difrectory:
gerard@eth1:/var/log$ sudo ls -ltr /var/lib/goethereum/geth/
total 3364
-rw------- 1 goeth goeth 64 Aug 31 19:20 nodekey
drwx------ 2 goeth goeth 4096 Sep 3 10:55 fastcache.tmp.800695313
drwx------ 2 goeth goeth 4096 Sep 6 13:54 fastcache.tmp.454913736
-rw-r--r-- 1 goeth goeth 0 Sep 6 14:48 LOCK
drwx------ 2 root root 4096 Sep 6 14:55 triecache
drwx------ 2 goeth goeth 4096 Sep 7 09:24 fastcache.tmp.998734509
drwx------ 2 goeth goeth 4096 Sep 12 18:19 fastcache.tmp.385252203
drwxr-xr-x 2 goeth goeth 4096 Oct 4 15:36 ethash
-rw-r--r-- 1 goeth goeth 0 Oct 9 01:56 transactions.rlp
drwxr-xr-x 2 goeth goeth 4096 Oct 9 01:58 nodes
drwxr-xr-x 3 goeth goeth 3407872 Oct 28 18:18 chaindata
gerard@eth1:/var/log$
Couldnt really see anything in the help:
gerard@eth1:/var/log$ sudo geth --help | egrep 'data|db'
db Low level database operations
export-preimages Export the preimage database into an RLP stream
import-preimages Import the preimage database from an RLP stream
removedb Remove blockchain and state databases
--datadir value Data directory for the databases and keystore (default: "/root/.ethereum")
--datadir.ancient value Data directory for ancient chain segments (default = inside chaindata)
--datadir.minfreedisk value Minimum free disk space in MB, once reached triggers auto shut down (default = --cache.gc converted to MB, 0 = disabled)
--keystore value Directory for the keystore (default = inside the datadir)
--light.nopruning Disable ancient light chain data pruning
--ethash.cachedir value Directory to store the ethash verification caches (default = inside the datadir)
--cache.database value Percentage of cache memory allowance to use for database io (default: 50)
--cache.noprefetch Disable heuristic state prefetch during block import (less CPU and disk IO, mor
I am running into a very strange problem with my rapsberry pi 4b geth node. I am getting this error message
Fatal: Failed to register the Ethereum service: ancient chain segments already extracted, please set --datadir.ancient to the correct path
Read me about it here https://github.com/ethereum/go-ethereum/issues/22200#issuecomment-1003777785
Hello
I've run a geth node server with this command:
geth --syncmode snap --allow-insecure-unlock --keystore ~/.ethereum/keystore --rinkeby --http --http.api web3,eth,debug,personal,net --http.corsdomain "*"
then I try to connect to it via its console:
geth attach ipc:.ethereum/rinkeby/geth.ipc
My main problem is in sycning and getting balance.
Any time I enter the following command I get 0 for balance which is not correct:
web3.fromWei(web3.eth.getBalance(eth.accounts[0]), 'ether').toString(10)
Any help will be appreciated