# seemingly random Failed to parse JSON on setup

**URL:** <https://forum.ansible.com/t/seemingly-random-failed-to-parse-json-on-setup/14043>\
**Category:** Ansible Project\
**Created:** [December 2, 2013, 6:54pm UTC](https://forum.ansible.com/t/seemingly-random-failed-to-parse-json-on-setup/14043 "2013-12-02T18:54:38Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul\_Hassinger](https://avatars.discourse-cdn.com/v4/letter/p/97f17d/32.png) [@Paul\_Hassinger](https://forum.ansible.com/u/Paul_Hassinger)\
**Post date:** [December 2, 2013, 6:54pm UTC](https://forum.ansible.com/t/seemingly-random-failed-to-parse-json-on-setup/14043/1 "2013-12-02T18:54:38Z")

</div>

In different parts of ansible -m setup, I’ll get varying degrees of the “Failed to parse JSON” message, randomly at different parts, and sometimes not at all.

If I add “-f 1”, it appears to work properly.

I found the following link which seems to describe my issue:  
[https://github.com/ansible/ansible/issues/801](https://github.com/ansible/ansible/issues/801)

The JSON returned seems truncated randomly.

I am using the latest git development revision (95557da373fb6daf5f41e02310d03abea82e2d0a)

Any ideas?

Thanks,

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [December 2, 2013, 7:00pm UTC](https://forum.ansible.com/t/seemingly-random-failed-to-parse-json-on-setup/14043/2 "2013-12-02T19:00:09Z")

</div>

ansible --version?

Some issues with this were addressed in 1.4.1

This is not the same ticket as 801 as that is hopelessly ancient.

We’d also like to see your playbook, I think, and the command line you were using.

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [December 2, 2013, 7:01pm UTC](https://forum.ansible.com/t/seemingly-random-failed-to-parse-json-on-setup/14043/3 "2013-12-02T19:01:38Z")

</div>

BTW, any chance you are configuring the same host multiple times, like if you had localhost in inventory with different aliases?

(If you try to talk to the same remote host 50 times over SSH that can sometimes hit the SSH connection limit to the host, etc, and I’m not sure how you are testing things)

---

<div class="post-metadata">

**Author:** ![Paul\_Hassinger](https://avatars.discourse-cdn.com/v4/letter/p/97f17d/32.png) [@Paul\_Hassinger](https://forum.ansible.com/u/Paul_Hassinger)\
**Post date:** [December 2, 2013, 7:14pm UTC](https://forum.ansible.com/t/seemingly-random-failed-to-parse-json-on-setup/14043/4 "2013-12-02T19:14:07Z")

</div>

Version I’m using:  
ansible 1.5 (devel 6d80c50faf) last updated 2013/12/02 12:50:12 (GMT -500)

Command that is sometimes not working:  
ansible -i setup/hosts-prod all -m setup  
or command that is working:  
ansible -i setup/hosts-prod all -m setup -f 1

Here’s my inventory file:

# myapp Production Ansible hosts

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [December 2, 2013, 7:16pm UTC](https://forum.ansible.com/t/seemingly-random-failed-to-parse-json-on-setup/14043/5 "2013-12-02T19:16:07Z")

</div>

Can we see the playbook?

---

<div class="post-metadata">

**Author:** ![Paul\_Hassinger](https://avatars.discourse-cdn.com/v4/letter/p/97f17d/32.png) [@Paul\_Hassinger](https://forum.ansible.com/u/Paul_Hassinger)\
**Post date:** [December 2, 2013, 7:19pm UTC](https://forum.ansible.com/t/seemingly-random-failed-to-parse-json-on-setup/14043/6 "2013-12-02T19:19:58Z")

</div>

I’m not using a playbook for this to occur, just the setup command:

ansible -i setup/hosts-prod all -m setup

---

<div class="post-metadata">

**Author:** ![tannerjc](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/tannerjc/32/985_2.png) [@tannerjc](https://forum.ansible.com/u/tannerjc)\
**Post date:** [December 2, 2013, 8:51pm UTC](https://forum.ansible.com/t/seemingly-random-failed-to-parse-json-on-setup/14043/7 "2013-12-02T20:51:38Z")

</div>

What is the full output from one of the failed hosts? I’d like to see the actual errors.

---

<div class="post-metadata">

**Author:** ![Jesse\_Keating](https://avatars.discourse-cdn.com/v4/letter/j/3bc359/32.png) [@Jesse\_Keating](https://forum.ansible.com/u/Jesse_Keating)\
**Post date:** [December 2, 2013, 10:00pm UTC](https://forum.ansible.com/t/seemingly-random-failed-to-parse-json-on-setup/14043/8 "2013-12-02T22:00:04Z")

</div>

This sounds exactly like the issue I filed the other day: [https://github.com/ansible/ansible/issues/5082](https://github.com/ansible/ansible/issues/5082)

As the issue states this started happening with 1.4, and it does not happen with 1.3.4

-jlk

---

<div class="post-metadata">

**Author:** ![Paul\_Hassinger](https://avatars.discourse-cdn.com/v4/letter/p/97f17d/32.png) [@Paul\_Hassinger](https://forum.ansible.com/u/Paul_Hassinger)\
**Post date:** [December 2, 2013, 10:06pm UTC](https://forum.ansible.com/t/seemingly-random-failed-to-parse-json-on-setup/14043/9 "2013-12-02T22:06:43Z")

</div>

Here is the full output from the command with the SSH keys replaced with “REMOVED” and IPaddresses changed.

failed to parse json: {“verbose\_override”: true, “changed”: false, “ansible\_facts”: {“ohai\_chef\_packages”: {“chef”: {“chef\_root”: “/var/lib/gems/1.8/gems/chef-11.6.0/lib”, “version”: “11.6.0”}, “ohai”: {“version”: “6.18.0”, “ohai\_root”: “/var/lib/gems/1.8/gems/ohai-6.18.0/lib/ohai”}}, “ohai\_lsb”: {“release”: “12.04”, “codename”: “precise”, “id”: “Ubuntu”, “description”: “Ubuntu 12.04.2 LTS”}, “ohai\_cpu”: {“real”: 1, “1”: {“model”: “26”, “family”: “6”, “core\_id”: “0”, “vendor\_id”: “GenuineIntel”, “flags”: [“fpu”, “de”, “tsc”, “msr”, “pae”, “cx8”, “sep”, “cmov”, “pat”, “clflush”, “mmx”, “fxsr”, “sse”, “sse2”, “ss”, “ht”, “syscall”, “nx”, “lm”, “constant\_tsc”, “rep\_good”, “nopl”, “nonstop\_tsc”, “pni”, “ssse3”, “cx16”, “sse4\_1”, “sse4\_2”, “popcnt”, “hypervisor”, “lahf\_lm”], “mhz”: “2666.760”, “stepping”: “5”, “cache\_size”: “8192 KB”, “cores”: “1”, “physical\_id”: “0”, “model\_name”: “Intel(R) Xeon(R) CPU X5550 @ 2.67GHz”}, “0”: {“model”: “26”, “family”: “6”, “core\_id”: “0”, “vendor\_id”: “GenuineIntel”, “flags”: [“fpu”, “de”, “tsc”, “msr”, “pae”, “cx8”, “sep”, “cmov”, “pat”, “clflush”, “mmx”, “fxsr”, “sse”, “sse2”, “ss”, “ht”, “syscall”, “nx”, “lm”, “constant\_tsc”, “rep\_good”, “nopl”, “nonstop\_tsc”, “pni”, “ssse3”, “cx16”, “sse4\_1”, “sse4\_2”, “popcnt”, “hypervisor”, “lahf\_lm”], “mhz”: “2666.760”, “stepping”: “5”, “cache\_size”: “8192 KB”, “cores”: “1”, “physical\_id”: “0”, “model\_name”: “Intel(R) Xeon(R) CPU X5550 @ 2.67GHz”}, “3”: {“model”: “26”, “family”: “6”, “core\_id”: “0”, “vendor\_id”: “GenuineIntel”, “flags”: [“fpu”, “de”, “tsc”, “msr”, “pae”, “cx8”, “sep”, “cmov”, “pat”, “clflush”, “mmx”, “fxsr”, “sse”, “sse2”, “ss”, “ht”, “syscall”, “nx”, “lm”, “constant\_tsc”, “rep\_good”, “nopl”, “nonstop\_tsc”, “pni”, “ssse3”, “cx16”, “sse4\_1”, “sse4\_2”, “popcnt”, “hypervisor”, “lahf\_lm”], “mhz”: “2666.760”, “stepping”: “5”, “cache\_size”: “8192 KB”, “cores”: “1”, “physical\_id”: “0”, “model\_name”: “Intel(R) Xeon(R) CPU X5550 @ 2.67GHz”}, “2”: {“model”: “26”, “family”: “6”, “core\_id”: “0”, “vendor\_id”: “GenuineIntel”, “flags”: [“fpu”, “de”, “tsc”, “msr”, “pae”, “cx8”, “sep”, “cmov”, “pat”, “clflush”, “mmx”, “fxsr”, “sse”, “sse2”, “ss”, “ht”, “syscall”, “nx”, “lm”, “constant\_tsc”, “rep\_good”, “nopl”, “nonstop\_tsc”, “pni”, “ssse3”, “cx16”, “sse4\_1”, “sse4\_2”, “popcnt”, “hypervisor”, “lahf\_lm”], “mhz”: “2666.760”, “stepping”: “5”, “cache\_size”: “8192 KB”, “cores”: “1”, “physical\_id”: “0”, “model\_name”: “Intel(R) Xeon(R) CPU X5550 @ 2.67GHz”}, “total”: 4}, “ohai\_ipaddress”: “10.10.10.71”, “ansible\_form\_factor”: “NA”, “ohai\_root\_group”: “root”, “ansible\_product\_version”: “NA”, “ansible\_swaptotal\_mb”: 34236, “ansible\_user\_id”: “myapp”, “ohai\_macaddress”: “0E:A2:CD:3F:CE:7A”, “ansible\_userspace\_bits”: “64”, “ansible\_architecture”: “x86\_64”, “ohai\_block\_device”: {“ram14”: {“removable”: “0”, “size”: “131072”}, “ram15”: {“removable”: “0”, “size”: “131072”}, “ram12”: {“removable”: “0”, “size”: “131072”}, “ram13”: {“removable”: “0”, “size”: “131072”}, “ram10”: {“removable”: “0”, “size”: “131072”}, “ram11”: {“removable”: “0”, “size”: “131072”}, “xvdf”: {“removable”: “0”, “size”: “419430400”}, “xvdg”: {“removable”: “0”, “size”: “419430400”}, “xvdb”: {“removable”: “0”, “size”: “1761475584”}, “ram8”: {“removable”: “0”, “size”: “131072”}, “ram9”: {“removable”: “0”, “size”: “131072”}, “ram4”: {“removable”: “0”, “size”: “131072”}, “ram5”: {“removable”: “0”, “size”: “131072”}, “ram6”: {“removable”: “0”, “size”: “131072”}, “ram7”: {“removable”: “0”, “size”: “131072”}, “ram0”: {“removable”: “0”, “size”: “131072”}, “ram1”: {“removable”: “0”, “size”: “131072”}, “ram2”: {“removable”: “0”, “size”: “131072”}, “ram3”: {“removable”: “0”, “size”: “131072”}, “loop3”: {“removable”: “0”, “size”: “0”}, “loop2”: {“removable”: “0”, “size”: “0”}, “loop1”: {“removable”: “0”, “size”: “0”}, “loop0”: {“removable”: “0”, “size”: “0”}, “loop7”: {“removable”: “0”, “size”: “0”}, “loop6”: {“removable”: “0”, “size”: “0”}, “loop5”: {“removable”: “0”, “size”: “0”}, “loop4”: {“removable”: “0”, “size”: “0”}, “xvda1”: {“removable”: “0”, “size”: “16777216”}}, “ansible\_distribution\_version”: “12.04”, “ansible\_domain”: “[prodauth2.mydomain.com](http://prodauth2.mydomain.com)”, “ansible\_virtualization\_type”: “xen”, “ansible\_fqdn”: “[host.mydomain.com](http://host.mydomain.com)”, “ansible\_product\_serial”: “NA”, “ansible\_virtualization\_role”: “guest”, “ohai\_hostname”: “i-0eae6d70”, “ansible\_env”: {“LANG”: “C”, “TERM”: “xterm”, “SHELL”: “/bin/bash”, “MAIL”: “/var/mail/myapp”, “SHLVL”: “1”, “SSH\_TTY”: “/dev/pts/0”, “SSH\_CLIENT”: “10.10.10.169 54535 22”, “PWD”: “/home/myapp”, “LOGNAME”: “myapp”, “USER”: “myapp”, “HOME”: “/home/myapp”, “PATH”: “/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games”, “JAVA\_HOME”: “/usr/lib/jvm/default-java”, “\_”: “/bin/sh”, “SSH\_CONNECTION”: “10.10.10.169 54535 10.10.10.71 22”}, “ansible\_processor\_vcpus”: 4, “ohai\_virtualization”: {“role”: “guest”, “system”: “xen”}, “ansible\_bios\_version”: “NA”, “ohai\_etc”: {“passwd”: {“sync”: {“shell”: “/bin/sync”, “gid”: 65534, “gecos”: “sync”, “uid”: 4, “dir”: “/bin”}, “syslog”: {“shell”: “/bin/false”, “gid”: 103, “gecos”: “”, “uid”: 101, “dir”: “/home/syslog”}, “gnats”: {“shell”: “/bin/sh”, “gid”: 41, “gecos”: “Gnats Bug-Reporting System (admin)”, “uid”: 41, “dir”: “/var/lib/gnats”}, “myapp”: {“shell”: “/bin/bash”, “gid”: 1001, “gecos”: “Auto-created myapp service account”, “uid”: 1001, “dir”: “/home/myapp”}, “logcheck”: {“shell”: “/bin/false”, “gid”: 116, “gecos”: “logcheck system account,”, “uid”: 108, “dir”: “/var/lib/logcheck”}, “uucp”: {“shell”: “/bin/sh”, “gid”: 10, “gecos”: “uucp”, “uid”: 10, “dir”: “/var/spool/uucp”}, “landscape”: {“shell”: “/bin/false”, “gid”: 109, “gecos”: “”, “uid”: 104, “dir”: “/var/lib/landscape”}, “lp”: {“shell”: “/bin/sh”, “gid”: 7, “gecos”: “lp”, “uid”: 7, “dir”: “/var/spool/lpd”}, “mail”: {“shell”: “/bin/sh”, “gid”: 8, “gecos”: “mail”, “uid”: 8, “dir”: “/var/mail”}, “ganglia”: {“shell”: “/bin/false”, “gid”: 999, “gecos”: “Ganglia Monitor”, “uid”: 999, “dir”: “/var/lib/ganglia”}, “irc”: {“shell”: “/bin/sh”, “gid”: 39, “gecos”: “ircd”, “uid”: 39, “dir”: “/var/run/ircd”}, “bin”: {“shell”: “/bin/sh”, “gid”: 2, “gecos”: “bin”, “uid”: 2, “dir”: “/bin”}, “messagebus”: {“shell”: “/bin/false”, “gid”: 105, “gecos”: “”, “uid”: 102, “dir”: “/var/run/dbus”}, “ntp”: {“shell”: “/bin/false”, “gid”: 115, “gecos”: “”, “uid”: 107, “dir”: “/home/ntp”}, “whoopsie”: {“shell”: “/bin/false”, “gid”: 106, “gecos”: “”, “uid”: 103, “dir”: “/nonexistent”}, “nobody”: {“shell”: “/bin/sh”, “gid”: 65534, “gecos”: “nobody”, “uid”: 65534, “dir”: “/nonexistent”}, “sshd”: {“shell”: “/usr/sbin/nologin”, “gid”: 65534, “gecos”: “”, “uid”: 105, “dir”: “/var/run/sshd”}, “sys”: {“shell”: “/bin/sh”, “gid”: 3, “gecos”: “sys”, “uid”: 3, “dir”: “/dev”}, “proxy”: {“shell”: “/bin/sh”, “gid”: 13, “gecos”: “proxy”, “uid”: 13, “dir”: “/bin”}, “ubuntu”: {“shell”: “/bin/bash”, “gid”: 1000, “gecos”: “Ubuntu”, “uid”: 1000, “dir”: “/home/ubuntu”}, “news”: {“shell”: “/bin/sh”, “gid”: 9, “gecos”: “news”, “uid”: 9, “dir”: “/var/spool/news”}, “man”: {“shell”: “/bin/sh”, “gid”: 12, “gecos”: “man”, “uid”: 6, “dir”: “/var/cache/man”}, “daemon”: {“shell”: “/bin/sh”, “gid”: 1, “gecos”: “daemon”, “uid”: 1, “dir”: “/usr/sbin”}, “postfix”: {“shell”: “/bin/false”, “gid”: 113, “gecos”: “”, “uid”: 106, “dir”: “/var/spool/postfix”}, “root”: {“shell”: “/bin/bash”, “gid”: 0, “gecos”: “root”, “uid”: 0, “dir”: “/root”}, “libuuid”: {“shell”: “/bin/sh”, “gid”: 101, “gecos”: “”, “uid”: 100, “dir”: “/var/lib/libuuid”}, “list”: {“shell”: “/bin/sh”, “gid”: 38, “gecos”: “Mailing List Manager”, “uid”: 38, “dir”: “/var/list”}, “games”: {“shell”: “/bin/sh”, “gid”: 60, “gecos”: “games”, “uid”: 5, “dir”: “/usr/games”}, “www-data”: {“shell”: “/bin/sh”, “gid”: 33, “gecos”: “www-data”, “uid”: 33, “dir”: “/var/www”}, “backup”: {“shell”: “/bin/sh”, “gid”: 34, “gecos”: “backup”, “uid”: 34, “dir”: “/var/backups”}}, “group”: {“tty”: {“gid”: 5, “members”: }, “plugdev”: {“gid”: 46, “members”: [“ubuntu”]}, “sudo”: {“gid”: 27, “members”: }, “mlocate”: {“gid”: 107, “members”: }, “crontab”: {“gid”: 102, “members”: }, “adm”: {“gid”: 4, “members”: [“ubuntu”, “logcheck”]}, “syslog”: {“gid”: 103, “members”: }, “video”: {“gid”: 44, “members”: [“ubuntu”]}, “operator”: {“gid”: 37, “members”: }, “root”: {“gid”: 0, “members”: }, “myapp”: {“gid”: 1001, “members”: }, “disk”: {“gid”: 6, “members”: }, “gnats”: {“gid”: 41, “members”: }, “logcheck”: {“gid”: 116, “members”: }, “staff”: {“gid”: 50, “members”: }, “uucp”: {“gid”: 10, “members”: }, “admin”: {“gid”: 111, “members”: [“ubuntu”]}, “utmp”: {“gid”: 43, “members”: }, “tape”: {“gid”: 26, “members”: }, “landscape”: {“gid”: 109, “members”: }, “lp”: {“gid”: 7, “members”: }, “dialout”: {“gid”: 20, “members”: [“ubuntu”]}, “mail”: {“gid”: 8, “members”: }, “ganglia”: {“gid”: 999, “members”: }, “irc”: {“gid”: 39, “members”: }, “whoopsie”: {“gid”: 106, “members”: }, “bin”: {“gid”: 2, “members”: }, “fax”: {“gid”: 21, “members”: }, “users”: {“gid”: 100, “members”: }, “messagebus”: {“gid”: 105, “members”: }, “floppy”: {“gid”: 25, “members”: [“ubuntu”]}, “ntp”: {“gid”: 115, “members”: }, “kmem”: {“gid”: 15, “members”: }, “sys”: {“gid”: 3, “members”: }, “fuse”: {“gid”: 104, “members”: }, “proxy”: {“gid”: 13, “members”: }, “ubuntu”: {“gid”: 1000, “members”: }, “cdrom”: {“gid”: 24, “members”: [“ubuntu”]}, “news”: {“gid”: 9, “members”: }, “shadow”: {“gid”: 42, “members”: }, “postdrop”: {“gid”: 114, “members”: }, “man”: {“gid”: 12, “members”: }, “src”: {“gid”: 40, “members”: }, “daemon”: {“gid”: 1, “members”: }, “audio”: {“gid”: 29, “members”: [“ubuntu”]}, “nogroup”: {“gid”: 65534, “members”: }, “postfix”: {“gid”: 113, “members”: }, “backup”: {“gid”: 34, “members”: }, “libuuid”: {“gid”: 101, “members”: }, “list”: {“gid”: 38, “members”: }, “netdev”: {“gid”: 110, “members”: [“ubuntu”]}, “games”: {“gid”: 60, “members”: }, “www-data”: {“gid”: 33, “members”: }, “sasl”: {“gid”: 45, “members”: }, “voice”: {“gid”: 22, “members”: }, “dip”: {“gid”: 30, “members”: [“ubuntu”]}, “ssl-cert”: {“gid”: 112, “members”: }, “ssh”: {“gid”: 108, “members”: }}}, “ansible\_date\_time”: {“tz”: “UTC”, “hour”: “21”, “time”: “21:55:23”, “epoch”: “1386021323”, “month”: “12”, “tz\_offset”: “+0000”, “second”: “23”, “iso8601\_micro”: “2013-12-02T21:55:23.439470Z”, “year”: “2013”, “date”: “2013-12-02”, “iso8601”: “2013-12-02T21:55:23Z”, “day”: “02”, “minute”: “55”}, “ansible\_lo”: {“ipv4\_secondaries”: , “mtu”: 16436, “active”: true, “promisc”: false, “ipv4”: {“netmask”: “255.0.0.0”, “network”: “127.0.0.0”, “address”: “127.0.0.1”}, “ipv6”: [{“scope”: “host”, “prefix”: “128”, “address”: “::1”}], “device”: “lo”, “type”: “loopback”}, “ohai\_network”: {“interfaces”: {“lo”: {“encapsulation”: “Loopback”, “state”: “unknown”, “flags”: [“LOOPBACK”, “UP”, “LOWER\_UP”], “addresses”: {“::1”: {“prefixlen”: “128”, “scope”: “Node”, “family”: “inet6”}, “127.0.0.1”: {“prefixlen”: “8”, “scope”: “Node”, “netmask”: “255.0.0.0”, “family”: “inet”}}, “mtu”: “16436”}, “eth0”: {“arp”: {“10.10.10.1”: “0e:a2:cd:00:00:02”, “10.10.10.185”: “0e:a2:cd:32:4a:fa”, “10.10.10.98”: “0e:a2:cd:07:35:a0”, “10.10.10.209”: “0e:a2:cd:1c:81:59”, “10.10.10.251”: “0e:a2:cd:15:27:bc”, “10.10.10.82”: “0e:a2:cd:28:52:20”, “10.10.10.97”: “0e:a2:cd:0e:a4:df”}, “addresses”: {“10.10.10.71”: {“broadcast”: “10.10.10.255”, “scope”: “Global”, “netmask”: “255.255.255.0”, “prefixlen”: “24”, “family”: “inet”}, “fe80::ca2:cdff:fe3f:ce7a”: {“prefixlen”: “64”, “scope”: “Link”, “family”: “inet6”}, “0E:A2:CD:3F:CE:7A”: {“family”: “lladdr”}}, “number”: “0”, “mtu”: “1500”, “state”: “up”, “flags”: [“BROADCAST”, “MULTICAST”, “UP”, “LOWER\_UP”], “routes”: [{“via”: “10.10.10.1”, “metric”: “100”, “destination”: “default”, “family”: “inet”}, {“src”: “10.10.10.71”, “destination”: “10.10.10.0/24”, “scope”: “link”, “family”: “inet”, “proto”: “kernel”}, {“metric”: “256”, “destination”: “fe80::/64”, “family”: “inet6”, “proto”: “kernel”}], “encapsulation”: “Ethernet”, “type”: “eth”}}, “default\_interface”: “eth0”, “default\_gateway”: “10.10.10.1”}, “ansible\_memtotal\_mb”: 34236, “ansible\_ssh\_host\_key\_ecdsa\_public”: “REMOVED=”, “ansible\_lsb”: {“release”: “12.04”, “major\_release”: “12”, “codename”: “precise”, “id”: “Ubuntu”, “description”: “Ubuntu 12.04.2 LTS”}, “ansible\_default\_ipv4”: {“macaddress”: “0e:a2:cd:3f:ce:7a”, “network”: “10.10.10.0”, “mtu”: 1500, “alias”: “eth0”, “netmask”: “255.255.255.0”, “address”: “10.10.10.71”, “interface”: “eth0”, “type”: “ether”, “gateway”: “10.10.10.1”}, “ansible\_swapfree\_mb”: 34231, “ansible\_default\_ipv6”: {}, “ansible\_distribution\_release”: “precise”, “ansible\_system\_vendor”: “NA”, “ansible\_os\_family”: “Debian”, “ansible\_cmdline”: {“console”: “hvc0”, “ro”: true, “root”: “LABEL=cloudimg-rootfs”}, “ansible\_mounts”: [{“size\_total”: 8563015680, “mount”: “/”, “size\_available”: 5544919040, “fstype”: “ext4”, “device”: “/dev/xvda1”, “options”: “rw”}, {“size\_total”: 887723384832, “mount”: “/mnt”, “size\_available”: 805409431552, “fstype”: “ext3”, “device”: “/dev/xvdb”, “options”: “rw”}, {“size\_total”: 214488244224, “mount”: “/opt”, “size\_available”: 39826911232, “fstype”: “ext4”, “device”: “/dev/xvdf”, “options”: “rw”}], “ansible\_processor\_cores”: 1, “ansible\_selinux”: false, “ohai\_fqdn”: “[host.mydomain.com](http://host.mydomain.com)”, “ansible\_userspace\_architecture”: “x86\_64”, “ansible\_bios\_date”: “NA”, “ansible\_product\_uuid”: “NA”, “ansible\_kernel”: “3.2.0-23-virtual”, “ohai\_ohai\_time”: 1386021323.88637, “ansible\_pkg\_mgr”: “apt”, “ansible\_memfree\_mb”: 18933, “ansible\_system”: “Linux”, “ansible\_devices”: {“xvdf”: {“scheduler\_mode”: “deadline”, “rotational”: “0”, “vendor”: null, “sectors”: “419430400”, “host”: “”, “sectorsize”: “512”, “removable”: “0”, “support\_discard”: “0”, “model”: null, “size”: “200.00 GB”, “holders”: , “partitions”: {}}, “xvdg”: {“scheduler\_mode”: “deadline”, “rotational”: “0”, “vendor”: null, “sectors”: “419430400”, “host”: “”, “sectorsize”: “512”, “removable”: “0”, “support\_discard”: “0”, “model”: null, “size”: “200.00 GB”, “holders”: , “partitions”: {}}, “xvdb”: {“scheduler\_mode”: “deadline”, “rotational”: “0”, “vendor”: null, “sectors”: “1761475584”, “host”: “”, “sectorsize”: “512”, “removable”: “0”, “support\_discard”: “0”, “model”: null, “size”: “839.94 GB”, “holders”: , “partitions”: {}}, “xvda1”: {“scheduler\_mode”: “deadline”, “rotational”: “0”, “vendor”: null, “sectors”: “16777216”, “host”: “”, “sectorsize”: “512”, “removable”: “0”, “support\_discard”: “0”, “model”: null, “size”: “8.00 GB”, “holders”: , “partitions”: {}}}, “ohai\_languages”: {“python”: {“version”: “2.7.3”, “builddate”: “Apr 10 2013, 06:20:15”}, “ruby”: {“gems\_dir”: “/var/lib/gems/1.8”, “bin\_dir”: “/usr/bin”, “target”: “x86\_64-pc-linux-gnu”, “target\_cpu”: “x86\_64”, “gem\_bin”: “/usr/bin/gem1.8”, “release\_date”: “2011-06-30”, “host”: “x86\_64-pc-linux-gnu”, “platform”: “x86\_64-linux”, “ruby\_bin”: “/usr/bin/ruby1.8”, “version”: “1.8.7”, “target\_vendor”: “pc”, “host\_cpu”: “x86\_64”, “host\_vendor”: “pc”, “host\_os”: “linux-gnu”, “target\_os”: “linux”}, “java”: {“runtime”: {“build”: “1.6.0\_30-b12”, “name”: “Java™ SE Runtime Environment”}, “version”: “1.6.0\_30”, “hotspot”: {“build”: “20.5-b03, mixed mode”, “name”: “Java HotSpot™ 64-Bit Server VM”}}, “perl”: {“archname”: “x86\_64-linux-gnu-thread-multi”, “version”: “5.14.2”}}, “ohai\_platform\_version”: “12.04”, “ohai\_domain”: “[host.mydomain.com](http://host.mydomain.com)”, “ansible\_distribution”: “Ubuntu”, “ohai\_kernel”: {“name”: “Linux”, “modules”: {“acpiphp”: {“refcount”: “0”, “size”: “24231”}, “isofs”: {“refcount”: “0”, “size”: “40257”}}, “machine”: “x86\_64”, “version”: “#36-Ubuntu SMP Tue Apr 10 22:29:03 UTC 2012”, “release”: “3.2.0-23-virtual”, “os”: “GNU/Linux”}, “ohai\_keys”: {“ssh”: {“host\_rsa\_public”: “REMOVED==”, “host\_ecdsa\_public”: “REMOVED=”, “host\_ecdsa\_type”: “ecdsa-sha2-nistp256”}}, “ansible\_ssh\_host\_key\_dsa\_public”: “REMOVED=”, “ansible\_eth0”: {“macaddress”: “0e:a2:cd:3f:ce:7a”, “ipv4\_secondaries”: , “mtu”: 1500, “active”: true, “promisc”: false, “ipv4”: {“netmask”: “255.255.255.0”, “network”: “10.10.10.0”, “address”: “10.10.10.71”}, “ipv6”: [{“scope”: “link”, “prefix”: “64”, “address”: “fe80::ca2:cdff:fe3f:ce7a”}], “device”: “eth0”, “type”: “ether”}, “ansible\_processor\_count”: 1, “ohai\_dmi”: {“dmidecode\_version”: “2.11”}, “ansible\_hostname”: “i-0eae6d70”, “ohai\_uptime\_seconds”: 20224352, “ohai\_command”: {“ps”: “ps -ef”}, “ohai\_os\_version”: “3.2.0-23-virtual”, “ohai\_ip6address”: “fe80::ca2:cdff:fe3f:ce7a”, “ansible\_all\_ipv6\_addresses”: [“fe80::ca2:cdff:fe3f:ce7a”], “ansible\_interfaces”: [“lo”, “eth0”], “ohai\_platform\_family”: “debian”, “ohai\_counters”: {“network”: {“interfaces”: {“lo”: {“rx”: {“packets”: “26456806”, “drop”: “0”, “errors”: “0”, “bytes”: “47688238230”, “overrun”: “0”}, “tx”: {“errors”: “0”, “bytes”: “47688238230”, “drop”: “0”, “packets”: “26456806”, “collisions”: “0”, “carrier”: “0”}}, “eth0”: {“rx”: {“packets”: “873365963”, “drop”: “0”, “errors”: “0”, “bytes”: “802767702614”, “overrun”: “0”}, “tx”: {“errors”: “0”, “bytes”: “809236223996”, “drop”: “0”, “packets”: “573010427”, “collisions”: “0”, “queuelen”: “1000”, “carrier”: “0”}}}}}, “ansible\_ssh\_host\_key\_rsa\_public”: “REMOVED”, “ohai\_filesystem”: {“s3fs”: {“kb\_available”: “274877906944”, “mount”: “/myapp-repo”, “fs\_type”: “fuse.s3fs”, “mount\_options”: [“rw”, “nosuid”, “nodev”], “kb\_used”: “0”, “kb\_size”: “274877906944”, “percent\_used”: “0%”}, “none”: {“kb\_available”: “17529124”, “mount”: “/run/shm”, “fs\_type”: “tmpfs”, “mount\_options”: [“rw”, “nosuid”, “nodev”], “kb\_used”: “0”, “kb\_size”: “17529124”, “percent\_used”: “0%”}, “devpts”: {“mount”: “/dev/pts”, “fs\_type”: “devpts”, “mount\_options”: [“rw”, “noexec”, “nosuid”, “gid=5”, “mode=0620”]}, “/dev/disk/by-label/cloudimg-rootfs”: {“mount”: “/”, “fs\_type”: “ext4”, “mount\_options”: [“rw”, “relatime”, “user\_xattr”, “acl”, “barrier=1”, “data=ordered”]}, “sysfs”: {“mount”: “/sys”, “fs\_type”: “sysfs”, “mount\_options”: [“rw”, “noexec”, “nosuid”, “nodev”]}, “udev”: {“kb\_available”: “17520856”, “mount”: “/dev”, “fs\_type”: “devtmpfs”, “mount\_options”: [“rw”, “mode=0755”], “kb\_used”: “12”, “kb\_size”: “17520868”, “percent\_used”: “1%”}, “/dev/xvdb”: {“uuid”: “b0139a17-d827-4060-96d6-29a7b59352f9”, “kb\_available”: “786532648”, “mount”: “/mnt”, “fs\_type”: “ext3”, “percent\_used”: “5%”, “kb\_used”: “36347832”, “kb\_size”: “866917368”, “mount\_options”: [“rw”]}, “/dev/xvda1”: {“uuid”: “3ad27d04-4ecf-493d-bb19-4710c3caf924”, “kb\_available”: “5414960”, “mount”: “/”, “label”: “cloudimg-rootfs”, “fs\_type”: “ext4”, “percent\_used”: “32%”, “kb\_used”: “2527932”, “kb\_size”: “8362320”, “mount\_options”: [“rw”]}, “/dev/xvdf”: {“uuid”: “0420e22c-1e81-4acb-bad3-73626177c286”, “kb\_available”: “38893468”, “mount”: “/opt”, “fs\_type”: “ext4”, “percent\_used”: “81%”, “kb\_used”: “160081948”, “kb\_size”: “209461176”, “mount\_options”: [“rw”]}, “/dev/xvdg”: {“fs\_type”: “ext4”, “uuid”: “0420e22c-1e81-4acb-bad3-73626177c286”}, “tmpfs”: {“kb\_available”: “7011460”, “mount”: “/run”, “fs\_type”: “tmpfs”, “mount\_options”: [“rw”, “noexec”, “nosuid”, “size=10%”, “mode=0755”], “kb\_used”: “192”, “kb\_size”: “7011652”, "percent\_used

**[prodauth2.mydomain.com](http://prodauth2.mydomain.com) | FAILED =\> Traceback (most recent call last):**  
**File “/home/e9000718/ansible/lib/ansible/runner/init.py”, line 394, in \_executor**  
**exec\_rc = self.\_executor\_internal(host, new\_stdin)**  
**File “/home/e9000718/ansible/lib/ansible/runner/init.py”, line 485, in \_executor\_internal**  
**return self.\_executor\_internal\_inner(host, self.module\_name, self.module\_args, inject, port, complex\_args=complex\_args)**  
**File “/home/e9000718/ansible/lib/ansible/runner/init.py”, line 685, in \_executor\_internal\_inner**  
**result = handler.run(conn, tmp, module\_name, module\_args, inject, complex\_args)**  
**File “/home/e9000718/ansible/lib/ansible/runner/action\_plugins/normal.py”, line 54, in run**  
**return self.runner.\_execute\_module(conn, tmp, module\_name, module\_args, inject=inject, complex\_args=complex\_args)**  
**File “/home/e9000718/ansible/lib/ansible/runner/init.py”, line 369, in \_execute\_module**  
**data = utils.parse\_json(res[‘stdout’])**  
**File “/home/e9000718/ansible/lib/ansible/utils/init.py”, line 306, in parse\_json**  
**tokens = shlex.split(data)**  
**File “/usr/lib/python2.7/shlex.py”, line 279, in split**  
**return list(lex)**  
**File “/usr/lib/python2.7/shlex.py”, line 269, in next**  
**token = self.get\_token()**  
**File “/usr/lib/python2.7/shlex.py”, line 96, in get\_token**  
**raw = self.read\_token()**  
**File “/usr/lib/python2.7/shlex.py”, line 172, in read\_token**  
**raise ValueError, “No closing quotation”**  
**ValueError: No closing quotation**

---

<div class="post-metadata">

**Author:** ![Paul\_Hassinger](https://avatars.discourse-cdn.com/v4/letter/p/97f17d/32.png) [@Paul\_Hassinger](https://forum.ansible.com/u/Paul_Hassinger)\
**Post date:** [December 2, 2013, 10:14pm UTC](https://forum.ansible.com/t/seemingly-random-failed-to-parse-json-on-setup/14043/10 "2013-12-02T22:14:54Z")

</div>

Yes, this appears to be the same issue from the outside looks of things.

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [December 3, 2013, 4:01am UTC](https://forum.ansible.com/t/seemingly-random-failed-to-parse-json-on-setup/14043/11 "2013-12-03T04:01:47Z")

</div>

We are digging into this, stay tuned!

– Michael

---

<div class="post-metadata">

**Author:** ![Paul\_Hassinger](https://avatars.discourse-cdn.com/v4/letter/p/97f17d/32.png) [@Paul\_Hassinger](https://forum.ansible.com/u/Paul_Hassinger)\
**Post date:** [December 12, 2013, 4:10pm UTC](https://forum.ansible.com/t/seemingly-random-failed-to-parse-json-on-setup/14043/12 "2013-12-12T16:10:43Z")

</div>

Just to follow up on this thread for any future searchers… this appears to be resolved for me, now, with the following:

[https://github.com/ansible/ansible/issues/5082](https://github.com/ansible/ansible/issues/5082)

Thanks,

---

<div class="post-metadata">

**Author:** ![tannerjc](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/tannerjc/32/985_2.png) [@tannerjc](https://forum.ansible.com/u/tannerjc)\
**Post date:** [December 12, 2013, 4:51pm UTC](https://forum.ansible.com/t/seemingly-random-failed-to-parse-json-on-setup/14043/13 "2013-12-12T16:51:52Z")

</div>

Glad to hear that!

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [December 12, 2013, 6:11pm UTC](https://forum.ansible.com/t/seemingly-random-failed-to-parse-json-on-setup/14043/14 "2013-12-12T18:11:02Z")

</div>

BTW, our plans are to release this as a 1.4.2 with our special Ansible-users Christmas present, approximately Wednesday of next week.

Extra testing is welcome!
