Re: [ansible-project] Synchronize module troubleshoot

2022-12-17 Thread John Petro
I would look at the ssh log on the client.  If it's just sitting there,
that tells me that your problem may be elsewhere, and not with the
synchronize module.  Also, make sure that rsync is installed on the client
as well, that is a requirement.  Although, I think if it weren't there,
that synchronize would complain about that.  I would also try something
like an ansible ping or something, using the same user, etc to try and
further narrow the scope of the problem down.

--John

On Sat, Dec 17, 2022 at 5:20 PM Indirajith V  wrote:

> Thank you John,
>
> The entire output is as follows. I don't get any error, it just waits
> forever without returning anything, I have to end it by ctrl+c.
>
> ```
>  ESTABLISH SSH CONNECTION FOR USER: ansibleuser
>  SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o
> ControlPersist=60s -o StrictHostKeyChecking=no -o
> KbdInteractiveAuthentication=no -o
> PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey
> -o PasswordAuthentication=no -o 'User="ansibleuser"' -o ConnectTimeout=10
> -o ControlPath=/home/user/.ansible/cp/be86fc6f7e a.b.c.d '/bin/sh -c
> '"'"'echo ~ansibleuser && sleep 0'"'"''
>  (0, b'/home/ansibleuser\n', b'OpenSSH_8.2p1 Ubuntu-4ubuntu0.3,
> OpenSSL 1.1.1f  31 Mar 2020\r\ndebug1: Reading configuration data
> /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: include
> /etc/ssh/ssh_config.d/*.conf matched no files\r\ndebug1:
> /etc/ssh/ssh_config line 21: Applying options for *\r\ndebug2:
> resolve_canonicalize: hostname a.b.c.d is address\r\ndebug1: auto-mux:
> Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2:
> mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards:
> request forwardings: 0 local, 0 remote\r\ndebug3:
> mux_client_request_session: entering\r\ndebug3: mux_client_request_alive:
> entering\r\ndebug3: mux_client_request_alive: done pid = 2164684\r\ndebug3:
> mux_client_request_session: session request sent\r\ndebug3:
> mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received
> exit status from master 0\r\n')
>  ESTABLISH SSH CONNECTION FOR USER: ansibleuser
>  SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o
> ControlPersist=60s -o StrictHostKeyChecking=no -o
> KbdInteractiveAuthentication=no -o
> PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey
> -o PasswordAuthentication=no -o 'User="ansibleuser"' -o ConnectTimeout=10
> -o ControlPath=/home/user/.ansible/cp/be86fc6f7e a.b.c.d '/bin/sh -c '"'"'(
> umask 77 && mkdir -p "` echo /home/ansibleuser/.ansible/tmp `"&& mkdir "`
> echo
> /home/ansibleuser/.ansible/tmp/ansible-tmp-1671315155.764345-2164717-127377077541884
> `" && echo ansible-tmp-1671315155.764345-2164717-127377077541884="` echo
> /home/ansibleuser/.ansible/tmp/ansible-tmp-1671315155.764345-2164717-127377077541884
> `" ) && sleep 0'"'"''
>  (0,
> b'ansible-tmp-1671315155.764345-2164717-127377077541884=/home/ansibleuser/.ansible/tmp/ansible-tmp-1671315155.764345-2164717-127377077541884\n',
> b'OpenSSH_8.2p1 Ubuntu-4ubuntu0.3, OpenSSL 1.1.1f  31 Mar 2020\r\ndebug1:
> Reading configuration data /etc/ssh/ssh_config\r\ndebug1:
> /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched
> no files\r\ndebug1: /etc/ssh/ssh_config line 21: Applying options for
> *\r\ndebug2: resolve_canonicalize: hostname a.b.c.d is address\r\ndebug1:
> auto-mux: Trying existing master\r\ndebug2: fd 3 setting
> O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version
> 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0
> remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3:
> mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive:
> done pid = 2164684\r\ndebug3: mux_client_request_session: session request
> sent\r\ndebug3: mux_client_read_packet: read header failed: Broken
> pipe\r\ndebug2: Received exit status from master 0\r\n')
> <137.44.6.56> Attempting python interpreter discovery
>  ESTABLISH SSH CONNECTION FOR USER: ansibleuser
>  SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o
> ControlPersist=60s -o StrictHostKeyChecking=no -o
> KbdInteractiveAuthentication=no -o
> PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey
> -o PasswordAuthentication=no -o 'User="ansibleuser"' -o ConnectTimeout=10
> -o ControlPath=/home/user/.ansible/cp/be86fc6f7e a.b.c.d '/bin/sh -c
> '"'"'echo PLATFORM; uname; echo FOUND; command -v
> '"'"'"'"'"'"'"'"'/usr/bin/python'"'"'"'"'"'"'"'"'; command -v
> '"'"'"'"'"'"'"'"'python3.9'"'"'"'"'"'"'"'"'; command -v
> '"'"'"'"'"'"'"'"'python3.8'"'"'"'"'"'"'"'"'; command -v
> '"'"'"'"'"'"'"'"'python3.7'"'"'"'"'"'"'"'"'; command -v
> '"'"'"'"'"'"'"'"'python3.6'"'"'"'"'"'"'"'"'; command -v
> '"'"'"'"'"'"'"'"'python3.5'"'"'"'"'"'"'"'"'; command -v
> '"'"'"'"'"'"'"'"'python2.7'"'"'"'"'"'"'"'"'; command -v
> '"'"'"'"'"'"'"'"'python2.6'"'"'"'"'"'"'"'"'; command -v
> '"'"'"'"'"'"'"'"'/usr/libexec/platform-python'"'"'"'"'"'"'"'"'; command -v
> '"'"'"'"'"'"'"

Re: [ansible-project] Synchronize module troubleshoot

2022-12-17 Thread Indirajith V
Thank you John,

The entire output is as follows. I don't get any error, it just waits
forever without returning anything, I have to end it by ctrl+c.

```
 ESTABLISH SSH CONNECTION FOR USER: ansibleuser
 SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s
-o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey
-o PasswordAuthentication=no -o 'User="ansibleuser"' -o ConnectTimeout=10
-o ControlPath=/home/user/.ansible/cp/be86fc6f7e a.b.c.d '/bin/sh -c
'"'"'echo ~ansibleuser && sleep 0'"'"''
 (0, b'/home/ansibleuser\n', b'OpenSSH_8.2p1 Ubuntu-4ubuntu0.3,
OpenSSL 1.1.1f  31 Mar 2020\r\ndebug1: Reading configuration data
/etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: include
/etc/ssh/ssh_config.d/*.conf matched no files\r\ndebug1:
/etc/ssh/ssh_config line 21: Applying options for *\r\ndebug2:
resolve_canonicalize: hostname a.b.c.d is address\r\ndebug1: auto-mux:
Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2:
mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards:
request forwardings: 0 local, 0 remote\r\ndebug3:
mux_client_request_session: entering\r\ndebug3: mux_client_request_alive:
entering\r\ndebug3: mux_client_request_alive: done pid = 2164684\r\ndebug3:
mux_client_request_session: session request sent\r\ndebug3:
mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received
exit status from master 0\r\n')
 ESTABLISH SSH CONNECTION FOR USER: ansibleuser
 SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s
-o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey
-o PasswordAuthentication=no -o 'User="ansibleuser"' -o ConnectTimeout=10
-o ControlPath=/home/user/.ansible/cp/be86fc6f7e a.b.c.d '/bin/sh -c '"'"'(
umask 77 && mkdir -p "` echo /home/ansibleuser/.ansible/tmp `"&& mkdir "`
echo
/home/ansibleuser/.ansible/tmp/ansible-tmp-1671315155.764345-2164717-127377077541884
`" && echo ansible-tmp-1671315155.764345-2164717-127377077541884="` echo
/home/ansibleuser/.ansible/tmp/ansible-tmp-1671315155.764345-2164717-127377077541884
`" ) && sleep 0'"'"''
 (0,
b'ansible-tmp-1671315155.764345-2164717-127377077541884=/home/ansibleuser/.ansible/tmp/ansible-tmp-1671315155.764345-2164717-127377077541884\n',
b'OpenSSH_8.2p1 Ubuntu-4ubuntu0.3, OpenSSL 1.1.1f  31 Mar 2020\r\ndebug1:
Reading configuration data /etc/ssh/ssh_config\r\ndebug1:
/etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched
no files\r\ndebug1: /etc/ssh/ssh_config line 21: Applying options for
*\r\ndebug2: resolve_canonicalize: hostname a.b.c.d is address\r\ndebug1:
auto-mux: Trying existing master\r\ndebug2: fd 3 setting
O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version
4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0
remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3:
mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive:
done pid = 2164684\r\ndebug3: mux_client_request_session: session request
sent\r\ndebug3: mux_client_read_packet: read header failed: Broken
pipe\r\ndebug2: Received exit status from master 0\r\n')
<137.44.6.56> Attempting python interpreter discovery
 ESTABLISH SSH CONNECTION FOR USER: ansibleuser
 SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s
-o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey
-o PasswordAuthentication=no -o 'User="ansibleuser"' -o ConnectTimeout=10
-o ControlPath=/home/user/.ansible/cp/be86fc6f7e a.b.c.d '/bin/sh -c
'"'"'echo PLATFORM; uname; echo FOUND; command -v
'"'"'"'"'"'"'"'"'/usr/bin/python'"'"'"'"'"'"'"'"'; command -v
'"'"'"'"'"'"'"'"'python3.9'"'"'"'"'"'"'"'"'; command -v
'"'"'"'"'"'"'"'"'python3.8'"'"'"'"'"'"'"'"'; command -v
'"'"'"'"'"'"'"'"'python3.7'"'"'"'"'"'"'"'"'; command -v
'"'"'"'"'"'"'"'"'python3.6'"'"'"'"'"'"'"'"'; command -v
'"'"'"'"'"'"'"'"'python3.5'"'"'"'"'"'"'"'"'; command -v
'"'"'"'"'"'"'"'"'python2.7'"'"'"'"'"'"'"'"'; command -v
'"'"'"'"'"'"'"'"'python2.6'"'"'"'"'"'"'"'"'; command -v
'"'"'"'"'"'"'"'"'/usr/libexec/platform-python'"'"'"'"'"'"'"'"'; command -v
'"'"'"'"'"'"'"'"'/usr/bin/python3'"'"'"'"'"'"'"'"'; command -v
'"'"'"'"'"'"'"'"'python'"'"'"'"'"'"'"'"'; echo ENDFOUND && sleep 0'"'"''
 (0,
b'PLATFORM\nLinux\nFOUND\n/usr/bin/python3.8\n/usr/bin/python3\nENDFOUND\n',
b'OpenSSH_8.2p1 Ubuntu-4ubuntu0.3, OpenSSL 1.1.1f  31 Mar 2020\r\ndebug1:
Reading configuration data /etc/ssh/ssh_config\r\ndebug1:
/etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched
no files\r\ndebug1: /etc/ssh/ssh_config line 21: Applying options for
*\r\ndebug2: resolve_canonicalize: hostname a.b.c.d is address\r\ndebug1:
auto-mux: Trying existing master\r\ndebug2: fd 3 setting
O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version
4\r\ndebug3

Re: [ansible-project] Synchronize module troubleshoot

2022-12-17 Thread John Petro
If possible, can you post the entire output?  That looks like it's just the
ssh connect string, and I am not seeing any error there, which makes me
think the error is probably elsewhere in your output.

--John


On Sat, Dec 17, 2022 at 2:04 PM Indirajith V  wrote:

> Hi all,
>
> I am new to Ansible and trying to use synchronize module, but it just
> stuck in the middle and I can not figure out how to troubleshoot this. Can
> anyone help?
>
> <> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o
> StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o
> PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey
> -o PasswordAuthentication=no -o 'User="ansibleuser"' -o ConnectTimeout=10
> -o ControlPath=/home/abc/.ansible/cp/be86fc6f7e -tt xxx.xxx.xxx.xxx
> '/bin/sh -c '"'"'/usr/bin/python3
> /home/ansibleuser/.ansible/tmp/ansible-tmp-1671215842.4024777-2122152-168151047792095/AnsiballZ_synchronize.py
> && sleep 0'"'"'
>
> Thank you,
> Indirajith
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/ddf82aa8-5f79-40b1-9648-41f4a1ec10b9n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAPAjob_tZ2gf%3DKgS10wQw0NnAAb6aTgExjQe4MS7jVF-KpmODA%40mail.gmail.com.


[ansible-project] Synchronize module troubleshoot

2022-12-17 Thread Indirajith V
Hi all, 

I am new to Ansible and trying to use synchronize module, but it just stuck 
in the middle and I can not figure out how to troubleshoot this. Can anyone 
help?

<> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o 
StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o 
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey 
-o PasswordAuthentication=no -o 'User="ansibleuser"' -o ConnectTimeout=10 
-o ControlPath=/home/abc/.ansible/cp/be86fc6f7e -tt xxx.xxx.xxx.xxx 
'/bin/sh -c '"'"'/usr/bin/python3 
/home/ansibleuser/.ansible/tmp/ansible-tmp-1671215842.4024777-2122152-168151047792095/AnsiballZ_synchronize.py
 
&& sleep 0'"'"'

Thank you,
Indirajith

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/ddf82aa8-5f79-40b1-9648-41f4a1ec10b9n%40googlegroups.com.