-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
ERROR! Timeout (12s) waiting for privilege escalation prompt: #14426
Comments
Exactly the same problem for me 😟. Ansible version : 2.0.0.2 |
I have same problem with: |
Same. Running into this during the very beginning at Setup Phase. |
Just as a note, I switched the connection over to paramiko and the issue went away and the playbook ran fine. Seems to be an issue with the default OpenSSH implementation. So for those who are having this issue, try using |
dupe of #14020 |
The error message is not the same as #14020 and the circumstances I describe here are a lot more broad. But if you say they are the same, I won't argue. |
it is not exactly the same as this is on 'ssh' and the other using 'local' connection but i believe they are related to the rewritten 'prompt detection', still, will reopen this. |
Could someone please post an excerpt of a playbook where the problem occurs (I understand it occurs unpredictably; I'm not asking for a way to reproduce it, just some context), as well as output of a failing run with |
I have the same problem with:
Sometime it worked, but the most was FAILED. |
@nghnam Could you please paste output of a failing run with ANSIBLE_DEBUG=1 set in the environment? |
Hey folks, similar error here on |
Here's a debug log of This is with Ansible 2.0.1.0-1ppa Not sure if this report should go at #14426 or #13278, but since this error doesn't seem to be related to with_items at all (it happens with any simple playbook and even with |
@oliver in your case it seems a mismatch on expected output, |
@bcoca Good catch (and a good argument against using i18n on a server)! |
I believe the issues is on the 'su' prompt handling side (though it works for me in my tests). |
Still having the same issue (2.0.1.0), msg is FAILED! => {"failed": true, "msg": "Timeout (12s) waiting for privilege escalation prompt: "}My play book Configuration
ESTABLISH SSH CONNECTION FOR USER: ubuntu If i use sudo:yes , every thing working fine. |
Running into this while running the setup phase against a freshly started Ubuntu 14.04 EC2 server. When I run a second time the automation against the same server it works fine. It happens all the time when I first run an Ansible automation against a fresh server Ansible version : 2.0.1.0 I run the following command:
please see the following gist for the output: https://gist.github.com/Lowess/77442cf0533629e80b55faa7d6d91eb0 |
The "12 sec timeout" is the It's not a fix, but setting the |
@somechris I just tried your setting and it worked! For some reason the Thanks again! |
I suspect the timeout just didn't work as intended in v1. |
@amenonsen In that case all make sense to me now. Thanks for the precision. |
Same issue.
Workaround described here has helped
Symptoms were exactly the same (here is the syslog from centos hosts)
|
@szhem awesome, that fixed it for me!
|
Is there an equivalent command on ubnutu 14.04? Happening to us as well |
I needed to remove the |
|
I can confirm that rolling back to ansible1.9 resolves all of my weird SSH connection issues. I don't know what is wrong with ansible2.x but I will not be upgrading any time soon since this seems to continue to persist. I've seen comments that this is not an ansible bug, and I firmly disagree. The only variable I've changed is an ansible upgrade. I manage over 70 servers with no issues with ansible1.9, ansible 2.0 fails with every instance I have. This is an ansible bug. Not ssh, or any other layer. |
CI slaves are slow so by setting a higher value we can avoid the following error: Timeout (12s) waiting for privilege escalation prompt: Now we wait for 32 sec... More info here: ansible/ansible#14426 Signed-off-by: Sébastien Han <seb@redhat.com>
Just had this problem for me it was happening 4-5 times in a row. Ansible 2.3, Ubuntu 16.04.1. |
Also have this same issue with 2.3.0.0 and 2.4.1.0 with pipelining. Due to a mis-configuration on our end, pipelining had been disabled by accident for a while now (not sure how long, I suspect pre-2.0 switch), but enabling it again resulted in the privilege escalation prompt timeout mentioned here. I use simply I've tried switching to paramiko, but that crashed & burned completely in my test setup and increasing the timeouts also didn't work, it failed both in my test-setup as on our production environment. |
Setup:
Randomly get this error when testing a playbook, last time it was during a file action (the folder already existed). The two VMs have the same user "vagrant" and the Solaris box has no root password. I used --ask-become-pass and pressed ENTER. Still, the error happened... |
In my case, it was a real problem (not a bug) on my server where DNS would not resolve. sudo apparently uses DNS to resolve the hostname of the machine, and if this fails, it will timeout. I fixed it by correcting the DNS entry in my /etc/resolv.conf. |
Having this problem often in GCE with Ansible 2.5 from git as well. So far using paramiko seems to be a viable workaround. |
I had to |
Hi, i have the same trouble with deploying to ubuntu 16.04 with ansible 2.4.2.0, the --paramiko option solve the problem, but in same case dont read my ~/.ssh/config, so instead of --paramiko option I solve disabling the option pipelining (by default is False) in the ansible.cfg add:
|
I experienced the same issue when trying to run a playbook on a LXD Ubuntu 16.04 container. I could ssh into the container just fine, but it would take a long time to I added the hostname to
I'm using |
my issue was resolved by changing the hosts file from
to
where ip is the ip address of the machine. |
Why is this closed? |
Probably because it isn't possible to ask every user if the solution(s) work. Incidentally there are probably multiple different causes of the error. The person made a judgment call to close the issue. |
I agree, I am having the same issue, I have given the user sudoers root.... I have forced change of users. Nothing works and reasonable error to investigate. Maybe better exception handling is required here? My playbook looks like this:
All other hosts work but the hosts: backup. -vvv Shows
Sever is in AWS.
|
i just have this problem,this accur become user and model copy . however when i use root direct run playbook that's ok.
|
My issue was firewall related. For me this is resolved. |
For me, it was because of the bad internet connection. |
I'm getting this issue as well:
Which gives the error:
The playbook has lots of other tasks which get done without issues. Just this one with the different "become" options, fails. |
My 3 cents:
|
Issue Type: Bug Report
Ansible Version: Ansible 2.0.0.2
Boto Version: 2.38.0
Python Version: 2.7.5
Environment: RHEL 7.2
Summary:
I am seeing the following error, at random times, on one really long playbook:
FAILED! => {"failed": true, "msg": "ERROR! Timeout (12s) waiting for privilege escalation prompt: "}
Running the same playbook under Ansible 1.9.4 I never saw this problem. It started happening when I upgraded to Ansible 2.0 RC1. Now we see it maybe one time out of three so I'm 90% sure it's related to Ansible 2.0.
It generally happens about 10 minutes into the play and rarely happens at the same task. The task itself doesn't matter -- it could be in a loop, not a loop, file copy, lineinefile, etc.
Failure means starting over so it would be really really nice to know what's going on. Can I at least increase that 12 sec timeout somehow?
I tried enabling SSH pipelining, thinking it would speed things up and skip over the issue, but it made no difference. It also didn't reduce the time of the playbook either, so I don't think it's actually working. I tried debug -vvvv and I didn't see anything obvious. How to tell if pipelining is active?
The text was updated successfully, but these errors were encountered: