# First command (ping) failure

**URL:** <https://forum.ansible.com/t/first-command-ping-failure/12487>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [March 12, 2013, 1:58pm UTC](https://forum.ansible.com/t/first-command-ping-failure/12487 "2013-03-12T13:58:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brian\_Coca1](https://avatars.discourse-cdn.com/v4/letter/b/278dde/32.png) [@Brian\_Coca1](https://forum.ansible.com/u/Brian_Coca1)\
**Post date:** [March 12, 2013, 1:58pm UTC](https://forum.ansible.com/t/first-command-ping-failure/12487/1 "2013-03-12T13:58:20Z")

</div>

I just solved similar issue, the problem is probably that you are  
executing an older python (2.4) and importing the newer simplejson  
(2.7). Try setting ansible\_python\_interpreter to the python2.7  
executable.

---

<div class="post-metadata">

**Author:** ![Brian\_Coca1](https://avatars.discourse-cdn.com/v4/letter/b/278dde/32.png) [@Brian\_Coca1](https://forum.ansible.com/u/Brian_Coca1)\
**Post date:** [March 12, 2013, 1:59pm UTC](https://forum.ansible.com/t/first-command-ping-failure/12487/2 "2013-03-12T13:59:18Z")

</div>

BTW, you should only need paramiko on the 'manager' box for ping to succeed.

---

<div class="post-metadata">

**Author:** ![Rebeca\_Gonzalez\_Alva](https://avatars.discourse-cdn.com/v4/letter/r/96bed5/32.png) [@Rebeca\_Gonzalez\_Alva](https://forum.ansible.com/u/Rebeca_Gonzalez_Alva)\
**Post date:** [August 18, 2014, 9:38am UTC](https://forum.ansible.com/t/first-command-ping-failure/12487/3 "2014-08-18T09:38:47Z")

</div>

> Hello everybody,

I’m _super_ new to ansible. I just installed it following the instructions and configured my servername at the hosts file. When I try to do ping to my hosting I get this:

becca@becca-LAPTOP:/$ ansible all -m ping -vvvv  
\<[sg111.servergrove.com](http://sg111.servergrove.com)\> ESTABLISH CONNECTION FOR USER: bybeccae  
\<[sg111.servergrove.com](http://sg111.servergrove.com)\> REMOTE\_MODULE ping  
\<[sg111.servergrove.com](http://sg111.servergrove.com)\> EXEC [‘ssh’, ‘-C’, ‘-tt’, ‘-vvv’, ‘-o’, ‘ControlMaster=auto’, ‘-o’, ‘ControlPersist=60s’, ‘-o’, ‘ControlPath=/home/becca/.ansible/cp/ansible-ssh-%h-%p-%r’, ‘-o’, ‘Port=22123’, ‘-o’, ‘KbdInteractiveAuthentication=no’, ‘-o’, ‘PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey’, ‘-o’, ‘PasswordAuthentication=no’, ‘-o’, ‘User=bybeccae’, ‘-o’, ‘ConnectTimeout=10’, ‘[sg111.servergrove.com](http://sg111.servergrove.com)’, “/bin/sh -c ‘mkdir -p $HOME/.ansible/tmp/ansible-tmp-1408354432.25-81121490636964 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1408354432.25-81121490636964 && echo $HOME/.ansible/tmp/ansible-tmp-1408354432.25-81121490636964’”]  
\<[sg111.servergrove.com](http://sg111.servergrove.com)\> PUT /tmp/tmpvlo17x TO mkdir: cannot create directory `//.ansible': Permission denied/ping <sg111.servergrove.com> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/home/becca/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'Port=22123', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'User=bybeccae', '-o', 'ConnectTimeout=10', 'sg111.servergrove.com', u'/bin/sh -c \'LANG=C LC_CTYPE=C /usr/bin/python mkdir: cannot create directory `//.ansible'“'”': Permission denied/ping'‘]  
[sg111.servergrove.com](http://sg111.servergrove.com) | FAILED \>\> {  
“failed”: true,  
“msg”: "/bin/sh: -c: line 0: unexpected EOF while looking for matching ``’\r\n/bin/sh: -c: line 1: syntax error: unexpected end of file\r\nOpenSSH\_5.9p1 Debian-5ubuntu1.4, OpenSSL 1.0.1 14 Mar 2012\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 19: 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\_request\_forwards: requesting 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 = 7261\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\nShared connection to [sg111.servergrove.com](http://sg111.servergrove.com) closed.\r\n",  
“parsed”: false  
}

my hosts file looks like this:

# This is the default ansible ‘hosts’ file.

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [August 18, 2014, 12:40pm UTC](https://forum.ansible.com/t/first-command-ping-failure/12487/4 "2014-08-18T12:40:42Z")

</div>

(A) First question, what version of Ansible are you running?

(B) Second question, have you configured the ansible temp path in ansible.cfg or as an environment variable, and if so what is it set to?

Thanks!
