-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[5.x] Deploy doesn't continue the first time #1192
Comments
I think it asking you password, but without prompt. Can you try to type your password? |
Really strange. I can't reproduce it. |
I think this might be related to issues with #1187 only being swallowed. |
Still having a hard time debugging this, it seems to stall on the first try, but killing it and restarting, seems to do the trick. I don't have ssh-agent running so perhaps it doesn't work when asking the passphrase? |
It should work with passphrase as well. Tested by myself many times. Please, debug with this: host(...)
->addSshFlag('-vvvv') |
It seems to hang for a while and then ask for a passphrase in the background. After that it fails. (Running again doesn't ask for passphrase and runs correctly) Log from |
This is without that flag, but with First time, hangs here
Right after again:
|
So it looks the 2nd attempt uses the multiplex from the first attempt correctly. Only the first attempt itself can't. |
This works correctly? Also check it with ssh agent is running. |
Entering the key works indeed. When I disable multiplexing, it asks the passphrase for each command though (so like 8 times for prepare).
Will try with ssh-agent in a few minutes (can't try now because it works soon after) |
With ssh-agent, same issue only it doesn't ask for passphrase. |
It should not ask passphrase with ssh agent. That's agent for. =) |
With ssh-agent it still stalls; https://gist.github.com/barryvdh/98d18405a19802f50e65921cd83e451f |
Please, check master branch. I think i fixed it 😄 7c312bf |
Do you happen to have a .phar? (Might be cool to have automatic/nightly phars?) |
Same issue when running from source :( |
FYI, same behavior with the final 5.0.0 |
Can't reproduce. Can you give me remote access to your machine to debug? |
Not easily. I'll see if I can reproduce on different systems. Currently using Centos 6.6 |
I'm having the same issue. When using -vv or -vvv flags, tasks run at a reasonable pace. Have tried this with both the latest phar as well as composer. |
@harisenbon can i try to debug it through teamviewerr? |
@antonmedv how about a zoom call? I can give you access with that and we can walk through it. |
I increased the sleep(1) to sleep(10), which gives me the time to enter the passphrase. What is happening is this:
When the popup comes for the passphrase, this takes more then 1 second, so the order becomes this:
Next time, it still used the multiplex from the first try. |
Okay, what do you think of #1220 I used the first check after the multiplexing command. If it's still not running, keep trying for 60 secs, the throw an exception. This seems to work for me. When you don't pay attention, it will show a more clear error after 60 secs, but otherwise it will continue after max 1 sec after the password |
Merged. Thanks for solution. |
Description
When starting deployment, it asks for my passprase but does not seem to continue. When doing
-vvv
it continues to deploy:lock within 1 second.Not sure how to debug this properly, because -vvv does work..
The text was updated successfully, but these errors were encountered: