-
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
Copy is stuck, and leaves lots of running processes when Ctrl+C'd #16929
Comments
I just tried to copy the files into my - name: Copie des certificats SSL
copy: src="{{ item }}" dest=/etc/nginx/ssl/
with_items:
- domain.key
- domain.crt
And it stays stuck. So it's not the fault of the prompted variable. I suspect a "file rights" issue, but I can't be sure. Also, since the copy of the config.php file succeeds just a moment before, I don't understand what is going on. As a note: my ansible user only has sudo rights to execute the .ansible/xxx python scripts. That is all. Could this be the reason? |
Some more details: on the managed host, I see openssh sftp-server instances with the user 'ansible' that are left dangling:
There's one dangling for each try that I did.. |
I fixed my issue by forcing the use of scp instead of sftp in my ansible.cfg: [ssh_connection]
scp_if_ssh = true I still don't know the reason why sftp-server would fail in that case (whereas is seems to behave correctly for all the previous files...). |
@Gui13 does -every- transfer in sftp mode hang, or just some? |
This comment has been minimized.
This comment has been minimized.
Hi @jctanner, it only hangs on the certificates, not the previous transfers (some other configuration files). Sorry for the delay! |
We do agree that the Those processes are managed by SSH, and their timeout is dictated by the If you have further questions please stop by IRC or the mailing list:
|
ISSUE TYPE
COMPONENT NAME
core
ANSIBLE VERSION
CONFIGURATION
(but the problem exists without this line)
OS / ENVIRONMENT
Ubuntu 16.04 on my machine, the managed machine is a Debian 8
SUMMARY
When ansible tries to copy files from my machine to the host, it hangs and never returns.
I'm trying to put 2 files (domain.crt and domain.key) onto my managed machine.
My inventory:
STEPS TO REPRODUCE
Note thatNot a problem with prompted variable, see my comments below.{{ certdir }}
is a prompted variable, whereas the previous copy uses thefiles/config.php
in my role.EXPECTED RESULTS
Either the copy succeeds or it fails
ACTUAL RESULTS
The copy is stuck. I have to CTRL C to exit.
Also, as a side-effect, a session is left running on my machine:
I have to kill this "[mux]" process for any subsequent ansible command to succeed, otherwise it stays stuck at the SSH connection...
This is the step that is stuck:
After this, my machine is stuck and I have to exit with CTRL+C.
I have no idea how to fix this...
The text was updated successfully, but these errors were encountered: