-
Notifications
You must be signed in to change notification settings - Fork 988
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
Importing an already existing account results in infinite loop #11130
Comments
cc @james-prysm interesting bug here! |
Interesting I'll look into this asap, there seems to be an issue with permissions from the description in the logs but will try to reproduce locally. |
Hi @chpiatt i tested locally ( Mac Os) on the latest version and believe that this is a permission issue as stated in the logs "file already exists without proper 0600 permissions" you will need rw access on the files when accessing which is what I believe is causing this error. |
I think maybe it makes more sense to exit cleanly if the file permissions don't allow to overwrite the existing accounts instead of looping indefinitely, but I'll leave that up to you guys. In the meantime, if anyone else is trying to import accounts via an initContainer on Kubernetes and running into a similar issue with the default file permissions, a simple workaround that is now working for me is just adding another initContainer before prysm runs that sets the permissions explicitly:
|
will add to my backlog for this case as an item to possibly improve ux. will close this issue for the time being and get it added to the docs as a possible common issue/solution. |
docs look to be added, tagging with a lower priority to address UX in the future |
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
🌍 Your Environment
I'm using prysm via Docker with tag = HEAD-f9b3cd.
Managed by Kubernetes, with this image running as an initContainer
The text was updated successfully, but these errors were encountered: