Permission Denied During Checkout Phase



I have a provlem, that on checkout command in Circle 2.0 there is an error:

Cloning into ‘.’…
/var/www/html/.git: Permission denied
Exited with code 1

What should I do with it?


The problem is that the user that you are running the build with does not own /var/www. If you want to extract into this directory you must run chown -R $USER:$USER /var/www before the checkout. Be sure to replace $USER with whatever user your build runs at.

If you are using one of our convenience images then that user is circleci.


II used an image circleci/php:7.1.4-fpm.

Now it’s okey.



This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.