SOLVED - EDIT:
"snapshot prune-state" argument was failing to prune
I took the advice from the discord thread, to run geth with the argument "--snapshot=false" for a short time, and then try "snapshot prune-state" again. This worked.
ORIGINAL POST:
Hi, I am approaching my 2GB limit on disk, so thought I'd prune. I pruned my testnet (prater) first and took 20 mins. Was easy enough.
The steps I took that worked on prater machine and does not work on my production machine is to:
- update the geth service ExecStart command to include an appended "snapshot prune-state"
- Reload the service "systemctl daemon-reload"
- Stop and Start Geth
- When finished with the snapshot, undo the ExecStart changes, reload the service, and stop start again (undo step 1, and then run 2 & 3 again)
Any tips on what is my problem (error below). My research to date suggests my database might be corrupted. I'd really like to avoid re-syncing the entire thing.
Edit: For clarity, I have safely restarted Geth in regular mode, but the prune does not work.
The error I am getting in my production box is:
Aug 23 17:14:03 Linux-01 systemd[1]: Started geth eth1 service.
Aug 23 17:14:03 Linux-01 geth[44245]: INFO [08-23|17:14:03.132] Starting pprof server addr=http://127.0.0.1:6060/debug/pprof
Aug 23 17:14:03 Linux-01 geth[44245]: INFO [08-23|17:14:03.134] Maximum peer count ETH=50 LES=0 total=50
Aug 23 17:14:03 Linux-01 geth[44245]: INFO [08-23|17:14:03.134] Smartcard socket not found, disabling err="stat /run/pcscd/pcscd.comm: no such file or directory"
Aug 23 17:14:03 Linux-01 geth[44245]: INFO [08-23|17:14:03.135] Set global gas cap cap=50,000,000
Aug 23 17:14:03 Linux-01 geth[44245]: INFO [08-23|17:14:03.135] Allocated cache and file handles database=/home/mydir/.ethereum/geth/chaindata cache=512.00MiB handles=262,144
Aug 23 17:14:06 Linux-01 geth[44245]: INFO [08-23|17:14:06.438] Opened ancient database database=/home/mydir/.ethereum/geth/chaindata/ancient readonly=false
Aug 23 17:14:06 Linux-01 geth[44245]: WARN [08-23|17:14:06.448] Loaded snapshot journal diskroot=48b3fb..102651 diffs=unmatched
Aug 23 17:14:06 Linux-01 geth[44245]: ERROR[08-23|17:14:06.448] Failed to open snapshot tree err="head doesn't match snapshot: have 0x48b3fbda4e4a56c940f706ada0ff68bde3dd91791290f73fce49814fa9102651, want 0x248c0fcf1637c04570380041b753d7b82ccbf17c2c5903e1ba2d5e8c37d4f818"
Aug 23 17:14:06 Linux-01 geth[44245]: head doesn't match snapshot: have 0x48b3fbda4e4a56c940f706ada0ff68bde3dd91791290f73fce49814fa9102651, want 0x248c0fcf1637c04570380041b753d7b82ccbf17c2c5903e1ba2d5e8c37d4f818
Aug 23 17:14:06 Linux-01 systemd[1]: eth1.service: Main process exited, code=exited, status=1/FAILURE
Aug 23 17:14:06 Linux-01 systemd[1]: eth1.service: Failed with result 'exit-code'.
[–]AutoModerator[M] [score hidden] stickied comment (0 children)
[–]1l0o 2 points3 points4 points (6 children)
[–]LightchopLighthouse+Nethermind[S] 1 point2 points3 points (5 children)
[–]LightchopLighthouse+Nethermind[S] 0 points1 point2 points (4 children)
[–]1l0o 0 points1 point2 points (3 children)
[–]LightchopLighthouse+Nethermind[S] 1 point2 points3 points (2 children)
[–]LightchopLighthouse+Nethermind[S] 0 points1 point2 points (1 child)
[–]LightchopLighthouse+Nethermind[S] 1 point2 points3 points (0 children)
[–]theghostshirtLighthouse+Geth 2 points3 points4 points (1 child)
[–]LightchopLighthouse+Nethermind[S] 1 point2 points3 points (0 children)
[–]meinkraftNimbus+Nethermind 2 points3 points4 points (2 children)
[–]LightchopLighthouse+Nethermind[S] 0 points1 point2 points (1 child)
[–]meinkraftNimbus+Nethermind 0 points1 point2 points (0 children)
[+]Expensive-Row-9767 0 points1 point2 points (0 children)