Nealv
Nealv

Reputation: 6884

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

Upvotes: 13

Views: 8699

Answers (1)

cph2117
cph2117

Reputation: 2681

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

Upvotes: 27

Related Questions