Need help jenkins /ansible

34 views
Skip to first unread message

GBANE FETIGUE

unread,
Oct 27, 2015, 1:06:09 PM10/27/15
to Jenkins Users
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   

Victor Martinez

unread,
Oct 27, 2015, 2:38:58 PM10/27/15
to Jenkins Users
Thats an Ansible error rather than a Jenkins issue IMO, some permissions are missing. Can you reproduce those commands in the same machine (slave) with the same credentials?

Cheers

Indra Gunawan (ingunawa)

unread,
Oct 28, 2015, 4:02:19 AM10/28/15
to jenkins...@googlegroups.com
Ansible running as your user does not have permission to create directory.  You should add “sudo: yes” at the top in the ansible playbook?  Does your user have sudo privilege?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/fe359efc-e95a-4c39-9400-42a6b35d8302%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages