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

Deprecation warning during remote task #156

Open
kokujin opened this issue Dec 14, 2016 · 9 comments
Open

Deprecation warning during remote task #156

kokujin opened this issue Dec 14, 2016 · 9 comments
Labels

Comments

@kokujin
Copy link

kokujin commented Dec 14, 2016

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 pstadler added the bug label Dec 23, 2016
@pstadler
Copy link
Owner

Could you please provide a full stack trace?

@StijnRuts
Copy link

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
Copy link

DiederikvandenB commented Mar 7, 2017

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
Copy link
Owner

pstadler commented Mar 7, 2017

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
Copy link

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
Copy link

Ah right, I think this might be the issue:

➔ node --version     
v7.7.4

@benoitgoupilleau
Copy link

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
Copy link

chip commented Oct 5, 2017

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

@Ten-Taken
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants