Skip to content

Importing an already existing account results in infinite loop #11130

@chpiatt

Description

@chpiatt

Description

When attempting to import a validator account via prysm validator accounts import, if the account already exists in the wallet directory prysm gets caught in an infinite loop.

Has this worked before in a previous version?

Not sure

🔬 Minimal Reproduction

I'm calling validator accounts import and setting the --wallet-dir to a directory that may or may not have already imported the given wallet. In the case where the given wallet has already been imported prysm prints an error and then retries importing the wallet ad infinitum.

🔥 Error


Importing accounts, this may take a while...

Importing accounts... 100% [�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m] [0s:0s]�[0m

time="2022-07-28 20:13:48" level=fatal msg="Could not import accounts: could not write accounts: file already exists without proper 0600 permissions" prefix=accounts

Importing accounts, this may take a while...

Importing accounts... 100% [�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m�[32m=�[0m] [0s:0s]�[0m

time="2022-07-28 20:13:48" level=fatal msg="Could not import accounts: could not write accounts: file already exists without proper 0600 permissions" prefix=accounts

🌍 Your Environment

I'm using prysm via Docker with tag = HEAD-f9b3cd.

Managed by Kubernetes, with this image running as an initContainer

Metadata

Metadata

Assignees

Labels

uxCosmetic / User Experience related items

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions