Tracebacks are to be considered bugs. If this is occuring on 1.5.4 or the devel branch, can you please file a ticket at github.com/ansible/ansible?
Thank you! On Mon, Apr 7, 2014 at 8:35 AM, Andre Torgal <[email protected]> wrote: > > First post here. > > In one of my hosts I have a permanent error on nginx service start. > > Everything else works just fine, and the same playbook also runs fine on > different servers. Starting the server from the console on the faulty > server, same user, sudo, also works fine. > > Tried both* sudo /etc/init.d/nginx start *and *sudo service nginx start *and > the status code is 0 regardless of server being previously stopped or > running. > > This is my odd (I know, I know) server: > > Linux mint 3.11-2-amd64 #1 SMP Debian 3.11.8-1 (2013-11-13) x86_64 >> GNU/Linux > > > And here's the error: > > >> TASK: [nginx | nginx - start service] >> ***************************************** >> failed: [mint] => {"failed": true, "item": "", "parsed": false} >> invalid output was: SUDO-SUCCESS-txcnkccpngclcijsbpywbprpyxggmdar >> Traceback (most recent call last): >> File >> "/home/andrezero/.ansible/tmp/ansible-tmp-1396873336.34-192134182273642/service", >> line 2411, in <module> >> main() >> File >> "/home/andrezero/.ansible/tmp/ansible-tmp-1396873336.34-192134182273642/service", >> line 1184, in main >> service.service_enable() >> File >> "/home/andrezero/.ansible/tmp/ansible-tmp-1396873336.34-192134182273642/service", >> line 619, in service_enable >> d = self.get_systemd_status_dict() >> File >> "/home/andrezero/.ansible/tmp/ansible-tmp-1396873336.34-192134182273642/service", >> line 483, in get_systemd_stat >> us_dict >> self.module.fail_json('failure %d running systemctl show for %r: %s' >> % (self.__systemd_unit, rc, err)) >> >> TypeError: %d format: a number is required, not str >> FATAL: all hosts have already failed -- aborting > > > the fault seems to be at *get_systemd_status_dict *and why would > seriously consider looking at the source code, ven with my puny python > skills, and search for this "number" not "string" requirement, but .. /tmp/ > file is deleted after execution. > > Help anyone? > > Thanks! > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/b4a26a14-0023-4452-82a4-3f40dbb7a2c7%40googlegroups.com<https://groups.google.com/d/msgid/ansible-project/b4a26a14-0023-4452-82a4-3f40dbb7a2c7%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAEVJ8QPD%2BA%3DkJ2x7V5REYvDtoaRP9YKUXG%3DAZt6_Suf40rJYbg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
