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

Copying data stuck 0% with "maximum authentication attempts exceeded for root" error #316

Open
bmalynovytch opened this issue Aug 20, 2024 · 0 comments

Comments

@bmalynovytch
Copy link

bmalynovytch commented Aug 20, 2024

Describe the bug
Start a mixed cluster copy using "local" strategy, pods pop fine but copy is stuck at 0%.
Logs in source pod show the following error:

maximum authentication attempts exceeded for root

To Reproduce
Steps to reproduce the behavior:

  1. Run pv-migrate --compress --source=data-wordpress-mariadb-0 --dest=data-wordpress-mariadb-0 --source-context=xxx-old --dest-context=xxx-new --source-namespace=migration-test --dest-namespace=migration-test --ignore-mounted --strategies=local
  2. See error

Expected behavior
Copy should go through.

Console output
Not relevant.

Version
Not relevant.

Additional context
⚠️ The major thing to add to reproduce is using an SSH agent and/or multiple keys configured in ~/.ssh/config, which is my case.
Daily, I use different SSH keys for different group of server, as well as agents (declared using SSH_AUTH_SOCK env var).
At the time of the failing tests, I had a running agent with 2 keys loaded, which were probably offered first to the source pod, which refused them as they were unknown.
Unsetting the SSH_AUTH_SOCK env variable allowed the copy to run smoothly.

To fix the issue, I think their could be 2 approaches:

  • ignore existing SSH agents and keys to prevent client from using them when starting connections
  • use the keys and agent when available

Last but not least, this tool is great, thanks a lot ! 👏

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

1 participant