# AIX  "module\_stderr": "Shared connection to \<servername\> closed.\\r\\n",

**URL:** <https://forum.ansible.com/t/aix-module-stderr-shared-connection-to-servername-closed-r-n/30941>\
**Category:** Ansible Project\
**Created:** [August 2, 2019, 4:43pm UTC](https://forum.ansible.com/t/aix-module-stderr-shared-connection-to-servername-closed-r-n/30941 "2019-08-02T16:43:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Diego\_Cappri](https://avatars.discourse-cdn.com/v4/letter/d/b5ac83/32.png) [@Diego\_Cappri](https://forum.ansible.com/u/Diego_Cappri)\
**Post date:** [August 2, 2019, 4:43pm UTC](https://forum.ansible.com/t/aix-module-stderr-shared-connection-to-servername-closed-r-n/30941/1 "2019-08-02T16:43:25Z")

</div>

Hi,  
this is the error I have. Not sure what’s going on. Any help will be appreciated.

Thanks!

fatal: []: FAILED! =\> {  
“ansible\_facts”: {  
“discovered\_interpreter\_python”: “/usr/bin/python”  
},  
“changed”: false,  
“module\_stderr”: “Shared connection to closed.\r\n”,  
“module\_stdout”: “Exception in thread Thread-7:\r\nTraceback (most recent call last):\r\n File "/opt/freeware/lib/python2.7/threading.py", line 801, in \_\_bootstrap\_inner\r\n self.run()\r\n File "/opt/freeware/lib/python2.7/threading.py", line 754, in run\r\n self.\_\_target(\*self.\_\_args, \*\*self.\_\_kwargs)\r\n File "/tmp/ansible\_aix\_flrtvc\_payload\_y4DWOp/ **main**.py", line 99, in logged\_wrapper\r\n res = func(\*args)\r\n File "/tmp/ansible\_aix\_flrtvc\_payload\_y4DWOp/ **main**.py", line 787, in run\_downloader\r\n lpps\_lvl = parse\_lpps\_info(machine, out)\r\n File "/tmp/ansible\_aix\_flrtvc\_payload\_y4DWOp/ **main**.py", line 99, in logged\_wrapper\r\n res = func(\*args)\r\n File "/tmp/ansible\_aix\_flrtvc\_payload\_y4DWOp/ **main**.py", line 453, in parse\_lpps\_info\r\n lpps\_lvl[mylist[1]][‘int’] = list(map(int, mylist[2].split(‘.’)))\r\nValueError: invalid literal for int() with base 10: ‘2waixX11’\r\n\r\nTraceback (most recent call last):\r\n File "/home/ansible/.ansible/tmp/ansible-tmp-1564759687.86-113456516839632/AnsiballZ\_aix\_flrtvc.py", line 114, in \r\n \_ansiballz\_main()\r\n File "/home/ansible/.ansible/tmp/ansible-tmp-1564759687.86-113456516839632/AnsiballZ\_aix\_flrtvc.py", line 106, in \_ansiballz\_main\r\n invoke\_module(zipped\_mod, temp\_path, ANSIBALLZ\_PARAMS)\r\n File "/home/ansible/.ansible/tmp/ansible-tmp-1564759687.86-113456516839632/AnsiballZ\_aix\_flrtvc.py", line 49, in invoke\_module\r\n imp.load\_module(‘ **main** ’, mod, module, MOD\_DESC)\r\n File "/tmp/ansible\_aix\_flrtvc\_payload\_y4DWOp/ **main**.py", line 1252, in \r\nKeyError: ‘4.2.check’\r\n”,  
“msg”: “MODULE FAILURE\nSee stdout/stderr for the exact error”,  
“rc”: 1  
}

Diego.

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [August 2, 2019, 4:47pm UTC](https://forum.ansible.com/t/aix-module-stderr-shared-connection-to-servername-closed-r-n/30941/2 "2019-08-02T16:47:53Z")

</div>

You should add -vvvv to ansible-playbook to get more detail output.

---

<div class="post-metadata">

**Author:** ![Diego\_Cappri](https://avatars.discourse-cdn.com/v4/letter/d/b5ac83/32.png) [@Diego\_Cappri](https://forum.ansible.com/u/Diego_Cappri)\
**Post date:** [August 2, 2019, 5:32pm UTC](https://forum.ansible.com/t/aix-module-stderr-shared-connection-to-servername-closed-r-n/30941/3 "2019-08-02T17:32:56Z")

</div>

here’s the output with -vvvv:

PLAY [FLRTVC on AIX playbook] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
META: ran handlers  
\<_servername_\> ESTABLISH SSH CONNECTION FOR USER: ansible  
\<_servername_\> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=30m -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ‘User=“ansible”’ -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/6b3107941f _servername_ ‘/bin/sh -c ‘"’“‘echo ~ansible && sleep 0’”’“‘’  
\<_servername_\> (0, ‘/home/ansible\n’, ‘OpenSSH\_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 58: Applying options for _\r\ndebug1: auto-mux: Trying existing master\r\ndebug1: Control socket “/root/.ansible/cp/6b3107941f” does not exist\r\ndebug2: resolving “servername” port 22\r\ndebug2: ssh\_connect\_direct: needpriv 0\r\ndebug1: Connecting to servername [9.16.6.175] port 22.\r\ndebug2: fd 3 setting O\_NONBLOCK\r\ndebug1: fd 3 clearing O\_NONBLOCK\r\ndebug1: Connection established.\r\ndebug3: timeout: 9998 ms remain after connect\r\ndebug1: permanently\_set\_uid: 0/0\r\ndebug1: identity file /root/.ssh/id\_rsa type 1\r\ndebug1: key\_load\_public: No such file or directory\r\ndebug1: identity file /root/.ssh/id\_rsa-cert type -1\r\ndebug1: key\_load\_public: No such file or directory\r\ndebug1: identity file /root/.ssh/id\_dsa type -1\r\ndebug1: key\_load\_public: No such file or directory\r\ndebug1: identity file /root/.ssh/id\_dsa-cert type -1\r\ndebug1: key\_load\_public: No such file or directory\r\ndebug1: identity file /root/.ssh/id\_ecdsa type -1\r\ndebug1: key\_load\_public: No such file or directory\r\ndebug1: identity file /root/.ssh/id\_ecdsa-cert type -1\r\ndebug1: key\_load\_public: No such file or directory\r\ndebug1: identity file /root/.ssh/id\_ed25519 type -1\r\ndebug1: key\_load\_public: No such file or directory\r\ndebug1: identity file /root/.ssh/id\_ed25519-cert type -1\r\ndebug1: Enabling compatibility mode for protocol 2.0\r\ndebug1: Local version string SSH-2.0-OpenSSH\_7.4\r\ndebug1: Remote protocol version 2.0, remote software version OpenSSH\_7.5\r\ndebug1: match: OpenSSH\_7.5 pat OpenSSH_ compat 0x04000000\r\ndebug2: fd 3 setting O\_NONBLOCK\r\ndebug1: Authenticating to _servername_:22 as 'ansible'\r\ndebug3: hostkeys\_foreach: reading file “/root/.ssh/known\_hosts”\r\ndebug3: record\_hostkey: found key type ECDSA in file /root/.ssh/known\_hosts:4\r\ndebug3: load\_hostkeys: loaded 1 keys from _servername_\r\ndebug3: order\_hostkeyalgs: prefer hostkeyalgs: [ecdsa-sha2-nistp256-cert-v01@openssh.com](mailto:ecdsa-sha2-nistp256-cert-v01@openssh.com),[ecdsa-sha2-nistp384-cert-v01@openssh.com](mailto:ecdsa-sha2-nistp384-cert-v01@openssh.com),[ecdsa-sha2-nistp521-cert-v01@openssh.com](mailto:ecdsa-sha2-nistp521-cert-v01@openssh.com),ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521\r\ndebug3: send packet: type 20\r\ndebug1: SSH2\_MSG\_KEXINIT sent\r\ndebug3: receive packet: type 20\r\ndebug1: SSH2\_MSG\_KEXINIT received\r\ndebug2: local client KEXINIT proposal\r\ndebug2: KEX algorithms: curve25519-sha256,[curve25519-sha256@libssh.org](mailto:curve25519-sha256@libssh.org),ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1,ext-info-c\r\ndebug2: host key algorithms: [ecdsa-sha2-nistp256-cert-v01@openssh.com](mailto:ecdsa-sha2-nistp256-cert-v01@openssh.com),[ecdsa-sha2-nistp384-cert-v01@openssh.com](mailto:ecdsa-sha2-nistp384-cert-v01@openssh.com),[ecdsa-sha2-nistp521-cert-v01@openssh.com](mailto:ecdsa-sha2-nistp521-cert-v01@openssh.com),ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[ssh-ed25519-cert-v01@openssh.com](mailto:ssh-ed25519-cert-v01@openssh.com),[ssh-rsa-cert-v01@openssh.com](mailto:ssh-rsa-cert-v01@openssh.com),[ssh-dss-cert-v01@openssh.com](mailto:ssh-dss-cert-v01@openssh.com),ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ssh-dss\r\ndebug2: ciphers ctos: [chacha20-poly1305@openssh.com](mailto:chacha20-poly1305@openssh.com),aes128-ctr,aes192-ctr,aes256-ctr,[aes128-gcm@openssh.com](mailto:aes128-gcm@openssh.com),[aes256-gcm@openssh.com](mailto:aes256-gcm@openssh.com),aes128-cbc,aes192-cbc,aes256-cbc\r\ndebug2: ciphers stoc: [chacha20-poly1305@openssh.com](mailto:chacha20-poly1305@openssh.com),aes128-ctr,aes192-ctr,aes256-ctr,[aes128-gcm@openssh.com](mailto:aes128-gcm@openssh.com),[aes256-gcm@openssh.com](mailto:aes256-gcm@openssh.com),aes128-cbc,aes192-cbc,aes256-cbc\r\ndebug2: MACs ctos: [umac-64-etm@openssh.com](mailto:umac-64-etm@openssh.com),[umac-128-etm@openssh.com](mailto:umac-128-etm@openssh.com),[hmac-sha2-256-etm@openssh.com](mailto:hmac-sha2-256-etm@openssh.com),[hmac-sha2-512-etm@openssh.com](mailto:hmac-sha2-512-etm@openssh.com),[hmac-sha1-etm@openssh.com](mailto:hmac-sha1-etm@openssh.com),[umac-64@openssh.com](mailto:umac-64@openssh.com),[umac-128@openssh.com](mailto:umac-128@openssh.com),hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: MACs stoc: [umac-64-etm@openssh.com](mailto:umac-64-etm@openssh.com),[umac-128-etm@openssh.com](mailto:umac-128-etm@openssh.com),[hmac-sha2-256-etm@openssh.com](mailto:hmac-sha2-256-etm@openssh.com),[hmac-sha2-512-etm@openssh.com](mailto:hmac-sha2-512-etm@openssh.com),[hmac-sha1-etm@openssh.com](mailto:hmac-sha1-etm@openssh.com),[umac-64@openssh.com](mailto:umac-64@openssh.com),[umac-128@openssh.com](mailto:umac-128@openssh.com),hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: compression ctos: [zlib@openssh.com](mailto:zlib@openssh.com),zlib,none\r\ndebug2: compression stoc: [zlib@openssh.com](mailto:zlib@openssh.com),zlib,none\r\ndebug2: languages ctos: \r\ndebug2: languages stoc: \r\ndebug2: first\_kex\_follows 0 \r\ndebug2: reserved 0 \r\ndebug2: peer server KEXINIT proposal\r\ndebug2: KEX algorithms: curve25519-sha256,[curve25519-sha256@libssh.org](mailto:curve25519-sha256@libssh.org),ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1\r\ndebug2: host key algorithms: ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519\r\ndebug2: ciphers ctos: aes128-ctr,aes192-ctr,aes256-ctr\r\ndebug2: ciphers stoc: aes128-ctr,aes192-ctr,aes256-ctr\r\ndebug2: MACs ctos: [umac-64-etm@openssh.com](mailto:umac-64-etm@openssh.com),[umac-128-etm@openssh.com](mailto:umac-128-etm@openssh.com),[hmac-sha2-256-etm@openssh.com](mailto:hmac-sha2-256-etm@openssh.com),[hmac-sha2-512-etm@openssh.com](mailto:hmac-sha2-512-etm@openssh.com),[hmac-sha1-etm@openssh.com](mailto:hmac-sha1-etm@openssh.com),[umac-64@openssh.com](mailto:umac-64@openssh.com),[umac-128@openssh.com](mailto:umac-128@openssh.com),hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: MACs stoc: [umac-64-etm@openssh.com](mailto:umac-64-etm@openssh.com),[umac-128-etm@openssh.com](mailto:umac-128-etm@openssh.com),[hmac-sha2-256-etm@openssh.com](mailto:hmac-sha2-256-etm@openssh.com),[hmac-sha2-512-etm@openssh.com](mailto:hmac-sha2-512-etm@openssh.com),[hmac-sha1-etm@openssh.com](mailto:hmac-sha1-etm@openssh.com),[umac-64@openssh.com](mailto:umac-64@openssh.com),[umac-128@openssh.com](mailto:umac-128@openssh.com),hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: compression ctos: none,[zlib@openssh.com](mailto:zlib@openssh.com)\r\ndebug2: compression stoc: none,[zlib@openssh.com](mailto:zlib@openssh.com)\r\ndebug2: languages ctos: \r\ndebug2: languages stoc: \r\ndebug2: first\_kex\_follows 0 \r\ndebug2: reserved 0 \r\ndebug1: kex: algorithm: curve25519-sha256\r\ndebug1: kex: host key algorithm: ecdsa-sha2-nistp256\r\ndebug1: kex: server-\>client cipher: aes128-ctr MAC: [umac-64-etm@openssh.com](mailto:umac-64-etm@openssh.com) compression: [zlib@openssh.com](mailto:zlib@openssh.com)\r\ndebug1: kex: client-\>server cipher: aes128-ctr MAC: [umac-64-etm@openssh.com](mailto:umac-64-etm@openssh.com) compression: [zlib@openssh.com](mailto:zlib@openssh.com)\r\ndebug1: kex: curve25519-sha256 need=16 dh\_need=16\r\ndebug1: kex: curve25519-sha256 need=16 dh\_need=16\r\ndebug3: send packet: type 30\r\ndebug1: expecting SSH2\_MSG\_KEX\_ECDH\_REPLY\r\ndebug3: receive packet: type 31\r\ndebug1: Server host key: ecdsa-sha2-nistp256 SHA256:ENVQXa0zi1/82Y+uuqvoz8TY1NumtR3VlfcnfewfoL0\r\ndebug3: hostkeys\_foreach: reading file “/root/.ssh/known\_hosts”\r\ndebug3: record\_hostkey: found key type ECDSA in file /root/.ssh/known\_hosts:4\r\ndebug3: load\_hostkeys: loaded 1 keys from _servername_\r\ndebug3: hostkeys\_foreach: reading file “/root/.ssh/known\_hosts”\r\ndebug3: record\_hostkey: found key type ECDSA in file /root/.ssh/known\_hosts:4\r\ndebug3: load\_hostkeys: loaded 1 keys from 9.16.6.175\r\ndebug1: Host '_servername_' is known and matches the ECDSA host key.\r\ndebug1: Found key in /root/.ssh/known\_hosts:4\r\ndebug3: send packet: type 21\r\ndebug2: set\_newkeys: mode 1\r\ndebug1: rekey after 4294967296 blocks\r\ndebug1: SSH2\_MSG\_NEWKEYS sent\r\ndebug1: expecting SSH2\_MSG\_NEWKEYS\r\ndebug3: receive packet: type 21\r\ndebug1: SSH2\_MSG\_NEWKEYS received\r\ndebug2: set\_newkeys: mode 0\r\ndebug1: rekey after 4294967296 blocks\r\ndebug2: key: /root/.ssh/id\_rsa (0x556c313ab240)\r\ndebug2: key: /root/.ssh/id\_dsa ((nil))\r\ndebug2: key: /root/.ssh/id\_ecdsa ((nil))\r\ndebug2: key: /root/.ssh/id\_ed25519 ((nil))\r\ndebug3: send packet: type 5\r\ndebug3: receive packet: type 7\r\ndebug1: SSH2\_MSG\_EXT\_INFO received\r\ndebug1: kex\_input\_ext\_info: server-sig-algs=\<ssh-ed25519,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,null\>\r\ndebug3: receive packet: type 6\r\ndebug2: service\_accept: ssh-userauth\r\ndebug1: SSH2\_MSG\_SERVICE\_ACCEPT received\r\ndebug3: send packet: type 50\r\ndebug3: receive packet: type 51\r\ndebug1: Authentications that can continue: publickey,password,keyboard-interactive\r\ndebug3: start over, passed a different list publickey,password,keyboard-interactive\r\ndebug3: preferred gssapi-with-mic,gssapi-keyex,hostbased,publickey\r\ndebug3: authmethod\_lookup publickey\r\ndebug3: remaining preferred: ,gssapi-keyex,hostbased,publickey\r\ndebug3: authmethod\_is\_enabled publickey\r\ndebug1: Next authentication method: publickey\r\ndebug1: Offering RSA public key: /root/.ssh/id\_rsa\r\ndebug3: send\_pubkey\_test\r\ndebug3: send packet: type 50\r\ndebug2: we sent a publickey packet, wait for reply\r\ndebug3: receive packet: type 60\r\ndebug1: Server accepts key: pkalg rsa-sha2-512 blen 279\r\ndebug2: input\_userauth\_pk\_ok: fp SHA256:JoEPcTFimnO5QXljwVQ16TAn4ukaYfZcUFLaSK3zP+w\r\ndebug3: sign\_and\_send\_pubkey: RSA SHA256:JoEPcTFimnO5QXljwVQ16TAn4ukaYfZcUFLaSK3zP+w\r\ndebug3: send packet: type 50\r\ndebug3: receive packet: type 52\r\ndebug1: Enabling compression at level 6.\r\ndebug1: Authentication succeeded (publickey).\r\nAuthenticated to _servername_ ([9.16.6.175]:22).\r\ndebug1: setting up multiplex master socket\r\ndebug3: muxserver\_listen: temporary control path /root/.ansible/cp/6b3107941f.XhCYu0GEr25MxvwM\r\ndebug2: fd 4 setting O\_NONBLOCK\r\ndebug3: fd 4 is O\_NONBLOCK\r\ndebug3: fd 4 is O\_NONBLOCK\r\ndebug1: channel 0: new [/root/.ansible/cp/6b3107941f]\r\ndebug3: muxserver\_listen: mux listener channel 0 fd 4\r\ndebug2: fd 3 setting TCP\_NODELAY\r\ndebug3: ssh\_packet\_set\_tos: set IP\_TOS 0x08\r\ndebug1: control\_persist\_detach: backgrounding master process\r\ndebug2: control\_persist\_detach: background process is 12813\r\ndebug2: fd 4 setting O\_NONBLOCK\r\ndebug1: forking to background\r\ndebug1: Entering interactive session.\r\ndebug1: pledge: id\r\ndebug2: set\_control\_persist\_exit\_time: schedule exit in 1800 seconds\r\ndebug1: multiplexing control connection\r\ndebug2: fd 5 setting O\_NONBLOCK\r\ndebug3: fd 5 is O\_NONBLOCK\r\ndebug1: channel 1: new [mux-control]\r\ndebug3: channel\_post\_mux\_listener: new mux channel 1 fd 5\r\ndebug3: mux\_master\_read\_cb: channel 1: hello sent\r\ndebug2: set\_control\_persist\_exit\_time: cancel scheduled exit\r\ndebug3: mux\_master\_read\_cb: channel 1 packet type 0x00000001 len 4\r\ndebug2: process\_mux\_master\_hello: channel 1 slave version 4\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\_master\_read\_cb: channel 1 packet type 0x10000004 len 4\r\ndebug2: process\_mux\_alive\_check: channel 1: alive check\r\ndebug3: mux\_client\_request\_alive: done pid = 12815\r\ndebug3: mux\_client\_request\_session: session request sent\r\ndebug3: mux\_master\_read\_cb: channel 1 packet type 0x10000002 len 107\r\ndebug2: process\_mux\_new\_session: channel 1: request tty 0, X 0, agent 0, subsys 0, term “xterm-256color”, cmd “/bin/sh -c 'echo ~ansible && sleep 0'”, env 1\r\ndebug3: process\_mux\_new\_session: got fds stdin 6, stdout 7, stderr 8\r\ndebug2: fd 7 setting O\_NONBLOCK\r\ndebug2: fd 8 setting O\_NONBLOCK\r\ndebug1: channel 2: new [client-session]\r\ndebug2: process\_mux\_new\_session: channel\_new: 2 linked to control channel 1\r\ndebug2: channel 2: send open\r\ndebug3: send packet: type 90\r\ndebug3: receive packet: type 80\r\ndebug1: client\_input\_global\_request: rtype [hostkeys-00@openssh.com](mailto:hostkeys-00@openssh.com) want\_reply 0\r\ndebug3: receive packet: type 91\r\ndebug2: callback start\r\ndebug2: client\_session2\_setup: id 2\r\ndebug1: Sending environment.\r\ndebug1: Sending env LANG = en\_US.UTF-8\r\ndebug2: channel 2: request env confirm 0\r\ndebug3: send packet: type 98\r\ndebug1: Sending command: /bin/sh -c 'echo ~ansible && sleep 0'\r\ndebug2: channel 2: request exec confirm 1\r\ndebug3: send packet: type 98\r\ndebug3: mux\_session\_confirm: sending success reply\r\ndebug2: callback done\r\ndebug2: channel 2: open confirm rwindow 0 rmax 32768\r\ndebug1: mux\_client\_request\_session: master session id: 2\r\ndebug2: channel 2: rcvd adjust 2097152\r\ndebug3: receive packet: type 99\r\ndebug2: channel\_input\_status\_confirm: type 99 id 2\r\ndebug2: exec request accepted on channel 2\r\ndebug3: receive packet: type 98\r\ndebug1: client\_input\_channel\_req: channel 2 rtype exit-status reply 0\r\ndebug3: mux\_exit\_message: channel 2: exit message, exitval 0\r\ndebug3: receive packet: type 98\r\ndebug1: client\_input\_channel\_req: channel 2 rtype [eow@openssh.com](mailto:eow@openssh.com) reply 0\r\ndebug2: channel 2: rcvd eow\r\ndebug2: channel 2: close\_read\r\ndebug2: channel 2: input open → closed\r\ndebug3: receive packet: type 96\r\ndebug2: channel 2: rcvd eof\r\ndebug2: channel 2: output open → drain\r\ndebug3: receive packet: type 97\r\ndebug2: channel 2: rcvd close\r\ndebug3: channel 2: will not send data after close\r\ndebug3: channel 2: will not send data after close\r\ndebug2: channel 2: obuf empty\r\ndebug2: channel 2: close\_write\r\ndebug2: channel 2: output drain → closed\r\ndebug2: channel 2: send close\r\ndebug3: send packet: type 97\r\ndebug2: channel 2: is dead\r\ndebug2: channel 2: gc: notify user\r\ndebug3: mux\_master\_session\_cleanup\_cb: entering for channel 2\r\ndebug2: channel 1: rcvd close\r\ndebug2: channel 1: output open → drain\r\ndebug2: channel 1: close\_read\r\ndebug2: channel 1: input open → closed\r\ndebug2: channel 2: gc: user detached\r\ndebug2: channel 2: is dead\r\ndebug2: channel 2: garbage collecting\r\ndebug1: channel 2: free: client-session, nchannels 3\r\ndebug3: channel 2: status: The following connections are open:\r\n #1 mux-control (t16 r-1 i3/0 o1/0 fd 5/5 cc -1)\r\n #2 client-session (t4 r0 i3/0 o3/0 fd -1/-1 cc -1)\r\n\r\ndebug2: channel 1: obuf empty\r\ndebug2: channel 1: close\_write\r\ndebug2: channel 1: output drain → closed\r\ndebug2: channel 1: is dead (local)\r\ndebug2: channel 1: gc: notify user\r\ndebug3: mux\_master\_control\_cleanup\_cb: entering for channel 1\r\ndebug2: channel 1: gc: user detached\r\ndebug2: channel 1: is dead (local)\r\ndebug2: channel 1: garbage collecting\r\ndebug1: channel 1: free: mux-control, nchannels 2\r\ndebug3: channel 1: status: The following connections are open:\r\n #1 mux-control (t16 r-1 i3/0 o3/0 fd 5/5 cc -1)\r\n\r\ndebug2: set\_control\_persist\_exit\_time: schedule exit in 1800 seconds\r\ndebug3: mux\_client\_read\_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n’)  
\<_servername_\> ESTABLISH SSH CONNECTION FOR USER: ansible  
\<_servername_\> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=30m -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ‘User=“ansible”’ -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/6b3107941f _servername_ '/bin/sh -c '”‘"’( umask 77 && mkdir -p “`echo /home/ansible/.ansible/tmp/ansible-tmp-1564766202.68-186894211633531`” && echo ansible-tmp-1564766202.68-186894211633531=“`echo /home/ansible/.ansible/tmp/ansible-tmp-1564766202.68-186894211633531`” ) && sleep 0’“'”‘’  
\<_servername_\> (0, ‘ansible-tmp-1564766202.68-186894211633531=/home/ansible/.ansible/tmp/ansible-tmp-1564766202.68-186894211633531\n’, ‘OpenSSH\_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 58: Applying options for \*\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 = 12815\r\ndebug3: mux\_client\_request\_session: session request sent\r\ndebug1: mux\_client\_request\_session: master session id: 2\r\ndebug3: mux\_client\_read\_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n’)  
\<_servername_\> Attempting python interpreter discovery  
\<_servername_\> ESTABLISH SSH CONNECTION FOR USER: ansible  
\<_servername_\> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=30m -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ‘User=“ansible”’ -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/6b3107941f _servername_ ‘/bin/sh -c ‘"’“'echo PLATFORM; uname; echo FOUND; command -v '”’“'”‘"’“'”‘"’“‘/usr/bin/python’”‘"’“'”‘"’“'”‘"’; 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’“'”‘’  
\<_servername_\> (0, ‘PLATFORM\nAIX\nFOUND\n/usr/bin/python\n/usr/bin/python2.7\n/usr/bin/python\nENDFOUND\n’, ‘OpenSSH\_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 58: Applying options for \*\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 = 12815\r\ndebug3: mux\_client\_request\_session: session request sent\r\ndebug1: mux\_client\_request\_session: master session id: 2\r\ndebug3: mux\_client\_read\_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n’)  
\<_servername_\> Python interpreter discovery fallback (unsupported platform for extended discovery: aix)  
Using module file /usr/lib/python2.7/site-packages/ansible/modules/system/aix\_flrtvc.py  
\<_servername_\> PUT /root/.ansible/tmp/ansible-local-12798auoEkO/tmpnclNQ0 TO /home/ansible/.ansible/tmp/ansible-tmp-1564766202.68-186894211633531/AnsiballZ\_aix\_flrtvc.py  
\<_servername_\> SSH: EXEC scp -vvv -C -o ControlMaster=auto -o ControlPersist=30m -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ‘User=“ansible”’ -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/6b3107941f /root/.ansible/tmp/ansible-local-12798auoEkO/tmpnclNQ0 ‘[_servername_]:/home/ansible/.ansible/tmp/ansible-tmp-1564766202.68-186894211633531/AnsiballZ\_aix\_flrtvc.py’  
\<_servername_\> (0, ‘’, ‘Executing: program /usr/bin/ssh host _servername_, user (unspecified), command scp -v -t /home/ansible/.ansible/tmp/ansible-tmp-1564766202.68-186894211633531/AnsiballZ\_aix\_flrtvc.py\nOpenSSH\_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 58: Applying options for \*\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 = 12815\r\ndebug3: mux\_client\_request\_session: session request sent\r\ndebug1: mux\_client\_request\_session: master session id: 2\r\nSending file modes: C0600 114439 tmpnclNQ0\nSink: C0600 114439 tmpnclNQ0\ndebug3: mux\_client\_read\_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n’)  
\<_servername_\> ESTABLISH SSH CONNECTION FOR USER: ansible  
\<_servername_\> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=30m -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ‘User=“ansible”’ -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/6b3107941f _servername_ ‘/bin/sh -c ‘"’“‘chmod u+x /home/ansible/.ansible/tmp/ansible-tmp-1564766202.68-186894211633531/ /home/ansible/.ansible/tmp/ansible-tmp-1564766202.68-186894211633531/AnsiballZ\_aix\_flrtvc.py && sleep 0’”’“‘’  
\<_servername_\> (0, ‘’, ‘OpenSSH\_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 58: Applying options for \*\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 = 12815\r\ndebug3: mux\_client\_request\_session: session request sent\r\ndebug1: mux\_client\_request\_session: master session id: 2\r\ndebug3: mux\_client\_read\_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n’)  
\<_servername_\> ESTABLISH SSH CONNECTION FOR USER: ansible  
\<_servername_\> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=30m -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ‘User=“ansible”’ -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/6b3107941f -tt _servername_ '/bin/sh -c '”‘“'sudo -H -S -n -u root /bin/sh -c '”’“'”‘"’“'”‘"’“‘echo BECOME-SUCCESS-sucilyjhnjreqzvrfzhpanulimeklnaf ; /usr/bin/python /home/ansible/.ansible/tmp/ansible-tmp-1564766202.68-186894211633531/AnsiballZ\_aix\_flrtvc.py’”‘"’“'”‘"’“'”‘"’ && sleep 0’“'”‘’  
\<_servername_\> (1, ‘BECOME-SUCCESS-sucilyjhnjreqzvrfzhpanulimeklnaf\r\nException in thread Thread-7:\r\nTraceback (most recent call last):\r\n File “/opt/freeware/lib/python2.7/threading.py”, line 801, in \_\_bootstrap\_inner\r\n self.run()\r\n File “/opt/freeware/lib/python2.7/threading.py”, line 754, in run\r\n self.\_\_target(\*self.\_\_args, \*\*self.\_\_kwargs)\r\n File “/tmp/ansible\_aix\_flrtvc\_payload\_0UiFra/ **main**.py”, line 99, in logged\_wrapper\r\n res = func(\*args)\r\n File “/tmp/ansible\_aix\_flrtvc\_payload\_0UiFra/ **main**.py”, line 787, in run\_downloader\r\n lpps\_lvl = parse\_lpps\_info(machine, out)\r\n File “/tmp/ansible\_aix\_flrtvc\_payload\_0UiFra/ **main**.py”, line 99, in logged\_wrapper\r\n res = func(\*args)\r\n File “/tmp/ansible\_aix\_flrtvc\_payload\_0UiFra/ **main**.py”, line 453, in parse\_lpps\_info\r\n lpps\_lvl[mylist[1]]['int'] = list(map(int, mylist[2].split('.')))\r\nValueError: invalid literal for int() with base 10: '2waixX11'\r\n\r\nTraceback (most recent call last):\r\n File “/home/ansible/.ansible/tmp/ansible-tmp-1564766202.68-186894211633531/AnsiballZ\_aix\_flrtvc.py”, line 114, in \r\n \_ansiballz\_main()\r\n File “/home/ansible/.ansible/tmp/ansible-tmp-1564766202.68-186894211633531/AnsiballZ\_aix\_flrtvc.py”, line 106, in \_ansiballz\_main\r\n invoke\_module(zipped\_mod, temp\_path, ANSIBALLZ\_PARAMS)\r\n File “/home/ansible/.ansible/tmp/ansible-tmp-1564766202.68-186894211633531/AnsiballZ\_aix\_flrtvc.py”, line 49, in invoke\_module\r\n imp.load\_module(' **main**', mod, module, MOD\_DESC)\r\n File “/tmp/ansible\_aix\_flrtvc\_payload\_0UiFra/ **main**.py”, line 1252, in \r\nKeyError: '4.2.check'\r\n’, ‘OpenSSH\_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 58: Applying options for \*\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 = 12815\r\ndebug3: mux\_client\_request\_session: session request sent\r\ndebug1: mux\_client\_request\_session: master session id: 2\r\ndebug3: mux\_client\_read\_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 1\r\nShared connection to _servername_ closed.\r\n’)  
\<_servername_\> Failed to connect to the host via ssh: OpenSSH\_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017  
debug1: Reading configuration data /etc/ssh/ssh\_config  
debug1: /etc/ssh/ssh\_config line 58: Applying options for \*  
debug1: auto-mux: Trying existing master  
debug2: fd 3 setting O\_NONBLOCK  
debug2: mux\_client\_hello\_exchange: master version 4  
debug3: mux\_client\_forwards: request forwardings: 0 local, 0 remote  
debug3: mux\_client\_request\_session: entering  
debug3: mux\_client\_request\_alive: entering  
debug3: mux\_client\_request\_alive: done pid = 12815  
debug3: mux\_client\_request\_session: session request sent  
debug1: mux\_client\_request\_session: master session id: 2  
debug3: mux\_client\_read\_packet: read header failed: Broken pipe  
debug2: Received exit status from master 1  
Shared connection to _servername_ closed.  
\<_servername_\> ESTABLISH SSH CONNECTION FOR USER: ansible  
\<_servername_\> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=30m -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ‘User=“ansible”’ -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/6b3107941f _servername_ ‘/bin/sh -c ‘"’“‘rm -f -r /home/ansible/.ansible/tmp/ansible-tmp-1564766202.68-186894211633531/ \> /dev/null 2\>&1 && sleep 0’”’"‘’  
\<_servername_\> (0, ‘’, ‘OpenSSH\_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 58: Applying options for \*\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 = 12815\r\ndebug3: mux\_client\_request\_session: session request sent\r\ndebug1: mux\_client\_request\_session: master session id: 2\r\ndebug3: mux\_client\_read\_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n’)

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [August 2, 2019, 6:39pm UTC](https://forum.ansible.com/t/aix-module-stderr-shared-connection-to-servername-closed-r-n/30941/4 "2019-08-02T18:39:32Z")

</div>

It looks like you are using a module, aix\_flrtvc, that's not part of Ansible and this module is failing.  
You need to ask the creator of this module for help on this

---

<div class="post-metadata">

**Author:** ![Diego\_Cappri](https://avatars.discourse-cdn.com/v4/letter/d/b5ac83/32.png) [@Diego\_Cappri](https://forum.ansible.com/u/Diego_Cappri)\
**Post date:** [August 2, 2019, 8:34pm UTC](https://forum.ansible.com/t/aix-module-stderr-shared-connection-to-servername-closed-r-n/30941/5 "2019-08-02T20:34:17Z")

</div>

Thanks a lot for your time!
