Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TeamCity command line permission denied

I put up a vagrant box with teamcity. Everything works but when I add a command line build step, which contains 'drush cc all' I get this error:

Cannot run process: Cannot run program "/vagrant/public/TeamCity/buildAgent/temp/agentTmp/custom_script1106304414420673073" (in directory "/vagrant/public/dev"): java.io.IOException: error=13, Permission denied

like image 626
Nealv Avatar asked Dec 09 '14 12:12

Nealv


1 Answers

This is a permissions error that can be fixed by updating mode on github. I am guessing that your files were created with default 100644, but they need to have 100755 in order to execute on team city. Do the following in the directory with the script:

$ git update-index --add --chmod=+x your-script-file

$ git commit -m "update mode"

$ git push
like image 75
cph2117 Avatar answered Oct 10 '22 10:10

cph2117