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

ff start <stackname> results in error - 'Could not create the account: account already exists' #99

Closed
rakshita-kaulgud opened this issue Oct 1, 2021 · 2 comments

Comments

@rakshita-kaulgud
Copy link
Contributor

firefly % ff start trial --verbose
reading stack config... done
this will take a few seconds longer since this is the first time you're running this stack...
starting FireFly stack 'trial'... initializing blockchain node
/usr/local/bin/docker-compose down --volumes
trial Warning: No resource found to remove
Error: docker run --rm -v /Users/kaulgudramer/.firefly/stacks/trial/blockchain:/geth -v trial_geth:/data ethereum/client-go:release-1.9 --nousb account import --password /geth/password --keystore /data/keystore /geth/0/keyfile
Failed [1] INFO [10-01|19:15:54.069] Maximum peer count ETH=50 LES=0 total=50
INFO [10-01|19:15:54.069] Smartcard socket not found, disabling err="stat /run/pcscd/pcscd.comm: no such file or directory"
INFO [10-01|19:15:54.070] Set global gas cap cap=25000000
Fatal: Could not create the account: account already exists
Fatal: Could not create the account: account already exists

  • all changes rolled back
    Usage:
    ff start <stack_name> [flags]

Flags:
-h, --help help for start
-n, --no-pull Do not pull latest images when starting
-b, --no-rollback Do not automatically rollback changes if first time setup fails

Global Flags:
--ansi string control when to print ANSI control characters ("never"|"always"|"auto") (default "auto") (default "auto")
-v, --verbose verbose log output

Error: docker run --rm -v /Users/kaulgudramer/.firefly/stacks/trial/blockchain:/geth -v trial_geth:/data ethereum/client-go:release-1.9 --nousb account import --password /geth/password --keystore /data/keystore /geth/0/keyfile
Failed [1] INFO [10-01|19:15:54.069] Maximum peer count ETH=50 LES=0 total=50
INFO [10-01|19:15:54.069] Smartcard socket not found, disabling err="stat /run/pcscd/pcscd.comm: no such file or directory"
INFO [10-01|19:15:54.070] Set global gas cap cap=25000000
Fatal: Could not create the account: account already exists
Fatal: Could not create the account: account already exists

  • all changes rolled back
@nguyer
Copy link
Contributor

nguyer commented Oct 6, 2021

After some investigation, I believe this issue is a symptom of #106 and named volumes from a previously failed start not getting cleaned up correctly. Since fixing #106 I haven't seen this issue anymore. @rakshita-kaulgud can you please test with the latest CLI (v0.0.33) and report back if you're still seeing this?

@rakshita-kaulgud
Copy link
Contributor Author

@nguyer With the latest changes, this issue seems to be fixed on a machine with docker-compose v2.0.0.

@nguyer nguyer closed this as completed Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants