Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

freezer migration problems (false positive?) #24724

Closed
holiman opened this issue Apr 20, 2022 · 2 comments
Closed

freezer migration problems (false positive?) #24724

holiman opened this issue Apr 20, 2022 · 2 comments
Assignees
Labels

Comments

@holiman
Copy link
Contributor

holiman commented Apr 20, 2022

Geth says my sepolia data needs migration (which it shouldn't need, since sepolia isn't even that old)

[user@work go-ethereum]$ geth --sepolia db freezer-migrate
INFO [04-20|15:06:35.823] Maximum peer count                       ETH=50 LES=0 total=50
INFO [04-20|15:06:35.823] Smartcard socket not found, disabling    err="stat /run/pcscd/pcscd.comm: no such file or directory"
INFO [04-20|15:06:35.823] Set global gas cap                       cap=50,000,000
INFO [04-20|15:06:35.823] Allocated cache and file handles         database=/home/user/.ethereum/sepolia/geth/chaindata cache=512.00MiB handles=262,144
INFO [04-20|15:06:35.863] Opened ancient database                  database=/home/user/.ethereum/sepolia/geth/chaindata/ancient readonly=false
INFO [04-20|15:06:35.876] Starting migration                       ancients=6237 firstLegacy=0
INFO [04-20|15:06:35.930] Replacing old table files with migrated ones elapsed=4.357ms
INFO [04-20|15:06:35.975] Migration finished                       duration=99.743848ms

And even after migration, it still complains:

[user@work go-ethereum]$ geth --sepolia 
INFO [04-20|15:06:48.694] Starting Geth on Sepolia testnet... 
INFO [04-20|15:06:48.696] Maximum peer count                       ETH=50 LES=0 total=50
INFO [04-20|15:06:48.696] Smartcard socket not found, disabling    err="stat /run/pcscd/pcscd.comm: no such file or directory"
INFO [04-20|15:06:48.701] Set global gas cap                       cap=50,000,000
INFO [04-20|15:06:48.702] Allocated trie memory caches             clean=154.00MiB dirty=256.00MiB
INFO [04-20|15:06:48.702] Allocated cache and file handles         database=/home/user/.ethereum/sepolia/geth/chaindata cache=512.00MiB handles=262,144
INFO [04-20|15:06:48.767] Opened ancient database                  database=/home/user/.ethereum/sepolia/geth/chaindata/ancient readonly=false
INFO [04-20|15:06:48.769] Persisted trie from memory database      nodes=19 size=2.93KiB time="45.466µs" gcnodes=0 gcsize=0.00B gctime=0s livenodes=1 livesize=0.00B
INFO [04-20|15:06:48.770] Initialised chain configuration          config="{ChainID: 11155111 Homestead: 0 DAO: <nil> DAOSupport: true EIP150: 0 EIP155: 0 EIP158: 0 Byzantium: 0 Constantinople: 0 Petersburg: 0 Istanbul: 0, Muir Glacier: 0, Berlin: 0, London: 0, Arrow Glacier: <nil>, MergeFork: <nil>, Terminal TD: <nil>, Engine: ethash}"
INFO [04-20|15:06:48.770] Disk storage enabled for ethash caches   dir=/home/user/.ethereum/sepolia/geth/ethash count=3
INFO [04-20|15:06:48.770] Disk storage enabled for ethash DAGs     dir=/home/user/.ethash                       count=2
INFO [04-20|15:06:48.771] Initialising Ethereum protocol           network=11,155,111 dbversion=8
INFO [04-20|15:06:48.780] Loaded most recent local header          number=96236 hash=58552a..1986fb td=50,974,186,125,694 age=5mo1w6d
INFO [04-20|15:06:48.785] Loaded most recent local full block      number=96236 hash=58552a..1986fb td=50,974,186,125,694 age=5mo1w6d
INFO [04-20|15:06:48.785] Loaded most recent local fast block      number=96236 hash=58552a..1986fb td=50,974,186,125,694 age=5mo1w6d
INFO [04-20|15:06:48.785] Loaded last fast-sync pivot marker       number=96168
INFO [04-20|15:06:48.789] Loaded local transaction journal         transactions=0 dropped=0
INFO [04-20|15:06:48.789] Regenerated local transaction journal    transactions=0 accounts=0
WARN [04-20|15:06:48.789] Switch sync mode from snap sync to full sync 
INFO [04-20|15:06:48.790] Gasprice oracle is ignoring threshold set threshold=2
WARN [04-20|15:06:48.813] Database has receipts with a legacy format. Please run `geth db freezer-migrate`. 

And over and over again...

@s1na
Copy link
Contributor

s1na commented Apr 21, 2022

Hm that's strange. I just tried syncing sepolia but don't get that on startup. Any ideas how I can repro it?

@holiman
Copy link
Contributor Author

holiman commented May 11, 2022

Nope, no idea. If it works for you, it's probably something wonky with my sepolia datadir

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants
@holiman @s1na and others