Skip to content

geth --dev --datadir stops with a fatal error #22792

@schmir

Description

@schmir

System information

Geth version: Version: 1.10.2-stable
OS & Version: Linux
Commit hash : 97d11b0

Expected behaviour

Running rm -rf foo; geth --dev --datadir foo starts a geth node.

Actual behaviour

geth dies:

% rm -rf foo; ./geth-linux-amd64-1.10.2-97d11b01/geth --dev --datadir foo
INFO [05-01|00:52:42.109] Starting Geth in ephemeral dev mode... 
INFO [05-01|00:52:42.115] Maximum peer count                       ETH=50 LES=0 total=50
INFO [05-01|00:52:42.116] Smartcard socket not found, disabling    err="stat /run/pcscd/pcscd.comm: no such file or directory"
INFO [05-01|00:52:42.117] Set global gas cap                       cap=25000000
INFO [05-01|00:52:45.142] Using developer account                  address=0x94269b1dc70DE4C92b56BaD01149C297557950D8
INFO [05-01|00:52:45.142] Allocated cache and file handles         database=/tmp/t/foo/geth/chaindata cache=512.00MiB handles=524288 readonly=true
Fatal: Could not open database: stat /tmp/t/foo/geth/chaindata: no such file or directory

This is a regression from 1.10.1.

Steps to reproduce the behaviour

Run rm -rf foo; geth --dev --datadir foo

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions