flightplan icon indicating copy to clipboard operation
flightplan copied to clipboard

Deprecation warning during remote task

Open kokujin opened this issue 8 years ago • 9 comments

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

kokujin avatar Dec 14 '16 07:12 kokujin

Could you please provide a full stack trace?

pstadler avatar Dec 23 '16 10:12 pstadler

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" ./ [email protected]:/var/www
localhost > opening connection using: ssh -p22 -l user example.com rsync --server -vvlogDtpRze.LsfxC . "/var/www"  (10 args)
[email protected]'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

StijnRuts avatar Jan 30 '17 21:01 StijnRuts

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.```

DiederikvandenB avatar Mar 07 '17 14:03 DiederikvandenB

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.

pstadler avatar Mar 07 '17 15:03 pstadler

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.

bdjunayed avatar Mar 28 '17 16:03 bdjunayed

Ah right, I think this might be the issue:

➔ node --version     
v7.7.4

DiederikvandenB avatar Mar 29 '17 09:03 DiederikvandenB

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

benoitgoupilleau avatar Sep 15 '17 11:09 benoitgoupilleau

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

chip avatar Oct 05 '17 22:10 chip

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.

Ten-Taken avatar Nov 17 '17 09:11 Ten-Taken