Closed paulmist closed 4 years ago
Hi already tried to read this related issue https://github.com/welaika/wordmove/issues/510 ?
BTW I think that it's a https://github.com/welaika/photocopier 's fault.
I'd be ok to try to update its dependencies, just want to be sure that you already followed past troubleshooting paths. :)
Let me know
As per https://github.com/welaika/wordmove/issues/510#issuecomment-474616209 the issue appeared to be related to macOs no longer keeping my SSH key persistent after a reboot.
Thanks a lot for sharing your solution :)
@pioneerskies Tried wordmove and I'm also hitting this and not on mac. Tried the fix metioned by @paulmist but I still get this error when trying to do a pull against a google cloud instance (the mysqldump step is failing) so I think it might be an issue with photocopier as you mentioned.
rsync steps seems to run fine.
Traceback (most recent call last):
32: from /usr/local/bundle/bin/wordmove:23:in `<main>'
31: from /usr/local/bundle/bin/wordmove:23:in `load'
30: from /usr/local/bundle/gems/wordmove-5.0.2/exe/wordmove:6:in `<top (required)>'
29: from /usr/local/bundle/gems/thor-0.20.3/lib/thor/base.rb:466:in `start'
28: from /usr/local/bundle/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
27: from /usr/local/bundle/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
26: from /usr/local/bundle/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
25: from /usr/local/bundle/gems/wordmove-5.0.2/lib/wordmove/cli.rb:91:in `pull'
24: from /usr/local/bundle/gems/wordmove-5.0.2/lib/wordmove/cli.rb:39:in `handle_options'
23: from /usr/local/bundle/gems/wordmove-5.0.2/lib/wordmove/cli.rb:39:in `each'
22: from /usr/local/bundle/gems/wordmove-5.0.2/lib/wordmove/cli.rb:40:in `block in handle_options'
21: from /usr/local/bundle/gems/wordmove-5.0.2/lib/wordmove/cli.rb:92:in `block in pull'
20: from /usr/local/bundle/gems/wordmove-5.0.2/lib/wordmove/deployer/ssh.rb:48:in `pull_db'
19: from /usr/local/bundle/gems/wordmove-5.0.2/lib/wordmove/deployer/ssh/default_sql_adapter.rb:28:in `adapt_remote_db!'
18: from /usr/local/bundle/gems/wordmove-5.0.2/lib/wordmove/deployer/ssh.rb:79:in `download_remote_db'
17: from /usr/local/bundle/gems/wordmove-5.0.2/lib/wordmove/deployer/ssh.rb:66:in `remote_run'
16: from /usr/local/bundle/gems/photocopier-1.3.2/lib/photocopier/ssh.rb:42:in `exec!'
15: from /usr/local/bundle/gems/photocopier-1.3.2/lib/photocopier/ssh.rb:69:in `session'
14: from /usr/local/bundle/gems/net-ssh-4.2.0/lib/net/ssh.rb:241:in `start'
13: from /usr/local/bundle/gems/net-ssh-4.2.0/lib/net/ssh/authentication/session.rb:66:in `authenticate'
12: from /usr/local/bundle/gems/net-ssh-4.2.0/lib/net/ssh/authentication/session.rb:66:in `each'
11: from /usr/local/bundle/gems/net-ssh-4.2.0/lib/net/ssh/authentication/session.rb:80:in `block in authenticate'
10: from /usr/local/bundle/gems/net-ssh-4.2.0/lib/net/ssh/authentication/methods/publickey.rb:19:in `authenticate'
9: from /usr/local/bundle/gems/net-ssh-4.2.0/lib/net/ssh/authentication/key_manager.rb:119:in `each_identity'
8: from /usr/local/bundle/gems/net-ssh-4.2.0/lib/net/ssh/authentication/key_manager.rb:119:in `each'
7: from /usr/local/bundle/gems/net-ssh-4.2.0/lib/net/ssh/authentication/key_manager.rb:122:in `block in each_identity'
6: from /usr/local/bundle/gems/net-ssh-4.2.0/lib/net/ssh/authentication/methods/publickey.rb:20:in `block in authenticate'
5: from /usr/local/bundle/gems/net-ssh-4.2.0/lib/net/ssh/authentication/methods/publickey.rb:62:in `authenticate_with'
4: from /usr/local/bundle/gems/net-ssh-4.2.0/lib/net/ssh/authentication/key_manager.rb:142:in `sign'
3: from /usr/local/bundle/gems/net-ssh-4.2.0/lib/net/ssh/key_factory.rb:43:in `load_private_key'
2: from /usr/local/bundle/gems/net-ssh-4.2.0/lib/net/ssh/key_factory.rb:52:in `load_data_private_key'
1: from /usr/local/bundle/gems/net-ssh-4.2.0/lib/net/ssh/key_factory.rb:112:in `classify_key'
/usr/local/bundle/gems/net-ssh-4.2.0/lib/net/ssh/authentication/ed25519_loader.rb:19:in `raiseUnlessLoaded': OpenSSH keys only supported if ED25519 is available (NotImplementedError)
Ok, got it working. I used the docker image welaika/wordmove
To get it working against an ssh host with ed25519 key, I had to add launch the ssh-agent: eval `ssh-agent -s
and add ~/.ssh/config with:
Host *
AddKeysToAgent yes
@gormv if you modified the image in order to eval ssh-agent -s
, you may be interested in discuss about that into the image's github repo.
Thanks for sharing
Ok, got it working. I used the docker image welaika/wordmove
To get it working against an ssh host with ed25519 key, I had to add launch the ssh-agent:
eval `ssh-agent -s
and add ~/.ssh/config with:Host * AddKeysToAgent yes
This worked for me. Thanks!
OS: macOs Catalina 10.15.4 Ruby: 2.6.3p62 Wordmove: 5.0.2 Using RVM
I've got a new install on a new mac - hitting the following problem when trying to push a database.
Have tried installing the mentioned gems rbnacl (5.0), rbnacl-libsodium, bcrypt_pbkdf.
No change.