Open kokujin opened 7 years ago
Could you please provide a full stack trace?
I am having the same issue. I don't get a stacktrace for the DeprecationWarning, but here is the output of the command I am running.
Of note is the error Error connecting. All configured authentication methods failed.
for the remote command, but rsync was able to successfully transfer the files.
$ fly production -d
✈ Running default:production
✈ Executing local task
localhost Run build
localhost Copy files to remote hosts
localhost $ find "build" -type f
localhost ● ok
localhost $ rsync --files-from /tmp/b3f1caa8c73fcf1dec776f6cd10b2742 -azvv --rsh="ssh -p22" ./ user@example.com:/var/www
localhost > opening connection using: ssh -p22 -l user example.com rsync --server -vvlogDtpRze.LsfxC . "/var/www" (10 args)
user@example.com's password:
localhost > building file list ... done
localhost > delta-transmission enabled
localhost > build/
localhost > build/.htaccess
localhost > build/index.html
...
localhost > total: matches=0 hash_hits=0 false_alarms=0 data=887944
localhost > sent 611,562 bytes received 1,237 bytes 72,094.00 bytes/sec
localhost > total size is 887,944 speedup is 1.45
localhost ● ok
✈ Local task finished after 7.97 s
✈ Connecting to 'example.com'
(node:20307) DeprecationWarning: Calling an asynchronous function without callback is deprecated.
● Error connecting to 'example.com': All configured authentication methods failed
I have the same issue:
✈ Local task finished after 1.07 min
✈ Flightplan finished after 1.07 min
(node:55299) DeprecationWarning: Calling an asynchronous function without callback is deprecated.```
Unfortunately, I don't see where this is coming from. Could you provide more context? node --version
certainly helps, plus a little test flightplan.js
on how to reproduce this would be good.
same issue from server msg: localhost ● ok ✈ Local task finished after 23 s ✈ Flightplan finished after 23 s (node:21945) DeprecationWarning: Calling an asynchronous function without callback is deprecated.
Ah right, I think this might be the issue:
➔ node --version
v7.7.4
I have the same problem: localhost ● ok ✈ Local task finished after 1.44 s ✈ Connecting to '...' (node:14168) [DEP0013] DeprecationWarning: Calling an asynchronous function without callback is deprecated. ● Error connecting to '...': All configured authentication methods failed
node --version v8.1.3
For the 'All configured authentication methods failed' error, See here: #41.
Ran into this issue on node v8.8.1
@chip My SSH keys are valid, this user can connect to remote with an alias, so #41 doesn't seem to apply.
Serhioromano's solution solved this for me. You need to add a privateKey property to the object literal in the server params.
privateKey: '/home/user/.ssh/id_rsa',
Not sure why this is. Maybe there is a variation in how distros use SSH_AUTH_SOCK. For reference, local is Manjaro, remote is Arch.
Is there an explanation for this warning I get when I execute a remote task? "DeprecationWarning: Calling an asynchronous function without callback is deprecated."
Thanks