pstadler / flightplan

Run sequences of shell commands against local and remote hosts.
https://www.npmjs.com/package/flightplan
MIT License
1.82k stars 117 forks source link

Deprecation warning during remote task #156

Open kokujin opened 7 years ago

kokujin commented 7 years ago

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

pstadler commented 7 years ago

Could you please provide a full stack trace?

StijnRuts commented 7 years ago

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
DiederikvandenB commented 7 years ago

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.```
pstadler commented 7 years ago

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.

bdjunayed commented 7 years ago

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.

DiederikvandenB commented 7 years ago

Ah right, I think this might be the issue:

➔ node --version     
v7.7.4
benoitgoupilleau commented 6 years ago

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

chip commented 6 years ago

For the 'All configured authentication methods failed' error, See here: #41.

Ten-Taken commented 6 years ago

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.

55 @Serhioromano

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.