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

Using geth with the flags --dev and --datadir leads to an error since v1.10.2 #22720

Closed
invocamanman opened this issue Apr 22, 2021 · 3 comments · Fixed by #22738
Closed

Using geth with the flags --dev and --datadir leads to an error since v1.10.2 #22720

invocamanman opened this issue Apr 22, 2021 · 3 comments · Fixed by #22738
Assignees
Labels

Comments

@invocamanman
Copy link

System information

Geth version: v1.10.2
OS & Version: Linux

Expected behavior

Should be able to specify a --datadir <dir> in the --dev mode without any problem when dir is empty

Actual behavior

Since v1.10.2 the --datadir <dir> option with the --dev flag leads to an error if the dir is empty
docker run -it ethereum/client-go:v1.10.1 --dev --datadir /geth works OK

docker run -it ethereum/client-go:v1.10.2 --dev --datadir /geth leads to an error ( see in backtrace)

Steps to reproduce the behaviour

docker run -it ethereum/client-go:v1.10.2 --dev --datadir /geth

Backtrace

INFO [04-22|09:40:19.822] Starting Geth in ephemeral dev mode... 
INFO [04-22|09:40:19.823] Maximum peer count                       ETH=50 LES=0 total=50
INFO [04-22|09:40:19.823] Smartcard socket not found, disabling    err="stat /run/pcscd/pcscd.comm: no such file or directory"
INFO [04-22|09:40:19.824] Set global gas cap                       cap=25000000
INFO [04-22|09:40:21.627] Using developer account                  address=0x3D6225fe29Fa7ec246e2A9Dd56E68f8342dA89db
INFO [04-22|09:40:21.627] Allocated cache and file handles         database=/geth/geth/chaindata cache=512.00MiB handles=524288 readonly=true
Fatal: Could not open database: stat /geth/geth/chaindata: no such file or directory
@MariusVanDerWijden
Copy link
Member

MariusVanDerWijden commented Apr 22, 2021

Probably something in this commit 0c70b83

Will take a look later

@sahni-tanya
Copy link

After creating the chaindata directory manually, getting an error log :

Fatal: Could not open database: file does not exist

@MariusVanDerWijden MariusVanDerWijden self-assigned this Apr 26, 2021
@MariusVanDerWijden
Copy link
Member

MariusVanDerWijden commented Apr 26, 2021

Yeah, could confirm that this is the commit that broke it via a git-bisect.

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

Successfully merging a pull request may close this issue.

3 participants