Jenkins/ansible Error

75 views
Skip to first unread message

GBANE FETIGUE

unread,
Oct 27, 2015, 12:16:27 PM10/27/15
to Jenkins Developers
hey Guys

Is anybody has an idea about that error message

PLAY [Deploy to status servers] *********************************************** 

GATHERING FACTS *************************************************************** 
ok: [172.16.21.129]

TASK: [nodejs_app | Put upstart script in place] ****************************** 
changed: [172.16.21.129]

TASK: [nodejs_app | Create config directory] ********************************** 
failed: [172.16.21.129] => {"failed": true, "item": "", "parsed": false}
invalid output was: Traceback (most recent call last):
  File "/var/lib/jenkins/.ansible/tmp/ansible-1445961024.27-103100734571092/file", line 1357, in <module>
    main()
  File "/var/lib/jenkins/.ansible/tmp/ansible-1445961024.27-103100734571092/file", line 263, in main
    os.makedirs(path)
  File "/usr/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/var/config'


FATAL: all hosts have already failed -- aborting

PLAY RECAP ******************************************************************** 
           to retry, use: --limit @/var/lib/jenkins/deploy_system_status.retry

172.16.21.129              : ok=2    changed=1    unreachable=0    failed=1   

Baptiste Mathus

unread,
Oct 27, 2015, 12:28:12 PM10/27/15
to jenkin...@googlegroups.com
Hi,

First: please use users list for that kind of questions.

IMO this doesn't seem to have anything to do with Jenkins. This is pure Ansible error message. Try to run the same command on the slave to try and reproduce the error.
Wild guess: are you trying in your playbook to read or write something under /var/config and you don't have the right permissions.

Cheers

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/a1acedde-cb4e-4eed-92c9-2814c5f5b3f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Baptiste <Batmat> MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !

GBANE FETIGUE

unread,
Oct 27, 2015, 12:38:36 PM10/27/15
to Jenkins Developers
thanks to answer me at least. I don't why it's giving me that error but I am just running  a playbook  that i set on my jenkins job . The wired stuff is I don't  have config inside of var I don't why it said that
Reply all
Reply to author
Forward
0 new messages