# setup module fails

**URL:** <https://forum.ansible.com/t/setup-module-fails/14599>\
**Category:** Ansible Project\
**Created:** [February 19, 2014, 8:47am UTC](https://forum.ansible.com/t/setup-module-fails/14599 "2014-02-19T08:47:44Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marc\_Patermann](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@Marc\_Patermann](https://forum.ansible.com/u/Marc_Patermann)\
**Post date:** [February 19, 2014, 8:47am UTC](https://forum.ansible.com/t/setup-module-fails/14599/1 "2014-02-19T08:47:44Z")

</div>

Hi,

I added about 70 (mostly?) identical servers to my inventory. On two I get this error:

# ansible -m setup -i produktion paps077\*  
paps077.example.com | FAILED \>\> {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"failed": true,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"msg": "Traceback (most recent call last):\n File \"/home/foo/.ansible/tmp/ansible-1392799041.61-199234546100736/setup\", line 3228, in ?\n main()\n File \"/home/foo/.ansible/tmp/ansible-1392799041.61-199234546100736/setup\", line 2199, in main\n data = run\_setup(module)\n File \"/home/foo/.ansible/tmp/ansible-1392799041.61-199234546100736/setup\", line 2140, in run\_setup\n facts = ansible\_facts()\n File \"/home/foo/.ansible/tmp/ansible-1392799041.61-199234546100736/setup\", line 2129, in ansible\_facts\n facts.update(Facts().populate())\n File \"/home/foo/.ansible/tmp/ansible-1392799041.61-199234546100736/setup\", line 143, in \_\_init\_\_\n self.get\_cmdline()\n File \"/home/foo/.ansible/tmp/ansible-1392799041.61-199234546100736/setup\", line 338, in get\_cmdline\n for piece in shlex.split(data):\n File \"/usr/lib64/python2.4/shlex.py\", line 279, in split\n return list(lex)\n File \"/usr/lib64/python2.4/shlex.py\", line 269, in next\n token = self.get\_token()\n File \"/usr/lib64/python2.4/shlex.py\", line 96, in get\_token\n raw = self.read\_token()\n File \"/usr/lib64/python2.4/shlex.py\", line 191, in read\_token\n raise ValueError, \"No escaped character\"\nValueError: No escaped character\n",  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"parsed": false  
}

Ansible is 1.4.1.  
What caused this and how to solve this?  
These are SLES 10 SP 2 Servers, but the other 68 are too.

Marc

---

<div class="post-metadata">

**Author:** ![Marc\_Patermann](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@Marc\_Patermann](https://forum.ansible.com/u/Marc_Patermann)\
**Post date:** [February 19, 2014, 9:45am UTC](https://forum.ansible.com/t/setup-module-fails/14599/2 "2014-02-19T09:45:44Z")

</div>

Hi,

Marc Patermann schrieb (19.02.2014 09:47 Uhr):

> I added about 70 (mostly?) identical servers to my inventory. On two I get this error:
> 
> # ansible -m setup -i produktion paps077\*  
> paps077.example.com | FAILED \>\> {  
> &nbsp;&nbsp;&nbsp;&nbsp;"failed": true,  
> &nbsp;&nbsp;&nbsp;&nbsp;"msg": "Traceback (most recent call last):\n File \"/home/foo/.ansible/tmp/ansible-1392799041.61-199234546100736/setup\", line 3228, in ?\n main()\n File \"/home/foo/.ansible/tmp/ansible-1392799041.61-199234546100736/setup\", line 2199, in main\n data = run\_setup(module)\n File \"/home/foo/.ansible/tmp/ansible-1392799041.61-199234546100736/setup\", line 2140, in run\_setup\n facts = ansible\_facts()\n File \"/home/foo/.ansible/tmp/ansible-1392799041.61-199234546100736/setup\", line 2129, in ansible\_facts\n facts.update(Facts().populate())\n File \"/home/foo/.ansible/tmp/ansible-1392799041.61-199234546100736/setup\", line 143, in \_\_init\_\_\n self.get\_cmdline()\n File \"/home/foo/.ansible/tmp/ansible-1392799041.61-199234546100736/setup\", line 338, in get\_cmdline\n for piece in shlex.split(data):\n File \"/usr/lib64/python2.4/shlex.py\", line 279, in split\n return list(lex)\n File \"/usr/lib64/python2.4/shlex.py\", line 269, in next\n token = self.get\_token()\n File \"/usr/lib64/python2.4/shlex.py\", line 96, in get\_token\n raw = self.read\_token()\n File \"/usr/lib64/python2.4/shlex.py\", line 191, in read\_token\n raise ValueError, \"No escaped character\"\nValueError: No escaped character\n",  
> &nbsp;&nbsp;&nbsp;&nbsp;"parsed": false  
> }
> 
> Ansible is 1.4.1.

I updated to 1.4.4 with no success and then built 1.4.5 - but this does not help as well.

> What caused this and how to solve this?  
> These are SLES 10 SP 2 Servers, but the other 68 are too.

Marc

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [February 19, 2014, 12:22pm UTC](https://forum.ansible.com/t/setup-module-fails/14599/3 "2014-02-19T12:22:45Z")

</div>

Marc,

I do believe this issue has been resolved in 1.5 (devel). 1.5 is tentatively scheduled to release sometime within the next month, but should be stable enough to use currently.

You may want to give it a try and see how it works.

---

<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:** [February 19, 2014, 12:54pm UTC](https://forum.ansible.com/t/setup-module-fails/14599/4 "2014-02-19T12:54:12Z")

</div>

Yes, please let us know if it does.

I’m pushing for 1.5 to release a bit sooner (weeks) actually.

I’d be interested in the remote OS and conditions that triggered this situation.

---

<div class="post-metadata">

**Author:** ![Marc\_Patermann](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@Marc\_Patermann](https://forum.ansible.com/u/Marc_Patermann)\
**Post date:** [February 19, 2014, 12:58pm UTC](https://forum.ansible.com/t/setup-module-fails/14599/5 "2014-02-19T12:58:22Z")

</div>

Michael DeHaan schrieb (19.02.2014 13:54 Uhr):

> Yes, please let us know if it does.

OK, I'm trying to build a RPM from 1.5.0-pre and will report back.

> I'm pushing for 1.5 to release a bit sooner (weeks) actually.
> 
> I'd be interested in the remote OS and conditions that triggered this situation.

What can I do to help?

Marc

---

<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:** [February 19, 2014, 1:06pm UTC](https://forum.ansible.com/t/setup-module-fails/14599/6 "2014-02-19T13:06:24Z")

</div>

Let us know what remote OS that triggered the problem on for starters.

If it’s resolved in 1.5, getting that update out should resolve most things – I haven’t heard a lot of reports of this, and it’s pretty safe to run 1.5 at this point. Won’t always be the case, but we’re getting this ready to go for release and this release has been mostly focused on bugfixes and module additions other than the addition of vault.

(See [https://github.com/ansible/ansible/blob/devel/CHANGELOG.md](https://github.com/ansible/ansible/blob/devel/CHANGELOG.md))

---

<div class="post-metadata">

**Author:** ![Marc\_Patermann](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@Marc\_Patermann](https://forum.ansible.com/u/Marc_Patermann)\
**Post date:** [February 19, 2014, 1:13pm UTC](https://forum.ansible.com/t/setup-module-fails/14599/7 "2014-02-19T13:13:02Z")

</div>

Michael DeHaan schrieb (19.02.2014 14:06 Uhr):

> Let us know what remote OS that triggered the problem on for starters.

SLES 10 SP 2 64 bit, but it is only on 2 of about 70 (should be) identical servers.

> If it's resolved in 1.5, getting that update out should resolve most things -- I haven't heard a lot of reports of this, and it's pretty safe to run 1.5 at this point. Won't always be the case, but we're getting this ready to go for release and this release has been mostly focused on bugfixes and module additions other than the addition of vault.

I downloaded the current source and build a package.

It is still there ... ☹

Is there anything I should look for?

Marc

---

<div class="post-metadata">

**Author:** ![Tim\_Rice](https://avatars.discourse-cdn.com/v4/letter/t/c77e96/32.png) [@Tim\_Rice](https://forum.ansible.com/u/Tim_Rice)\
**Post date:** [July 30, 2014, 12:14pm UTC](https://forum.ansible.com/t/setup-module-fails/14599/8 "2014-07-30T12:14:11Z")

</div>

Also having this issue on only one of supposedly 30 identicle servers running OpenSuSE 11.1 x64… Im using latest ansible release.

Is there any update or solution?

Kind regards,  
Tim

---

<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:** [July 30, 2014, 12:17pm UTC](https://forum.ansible.com/t/setup-module-fails/14599/9 "2014-07-30T12:17:43Z")

</div>

AFAIK, no one ever filed a bug on this and he had only mentioned it on 2 servers, so we didn’t dig in.

We have a lot of mailing list traffic, so if there’s no bug ticket, things don’t get triaged well.

That being said, I’d be curious what you think the latest release is, just to be sure 🙂

Please include the traceback you get in the bug report.

Thanks!

---

<div class="post-metadata">

**Author:** ![Tim\_Rice](https://avatars.discourse-cdn.com/v4/letter/t/c77e96/32.png) [@Tim\_Rice](https://forum.ansible.com/u/Tim_Rice)\
**Post date:** [July 30, 2014, 12:21pm UTC](https://forum.ansible.com/t/setup-module-fails/14599/10 "2014-07-30T12:21:57Z")

</div>

Ill create a bug ticket then 🙂

I’m running ansible 1.6.10, just updated via pip from an earlier 1.6 release

Thanks for the speedy reply!

/Tim

---

<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:** [July 30, 2014, 12:28pm UTC](https://forum.ansible.com/t/setup-module-fails/14599/11 "2014-07-30T12:28:00Z")

</div>

Excellent, this one should be straightforward, just needs to get in queue.

We always prioritize setup module things pretty highly, as that’s the first module anyone is going to hit 🙂
