Permission Denied During Checkout Phase

git
linux
permissions

#1

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?


#2

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.


#3

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

Now it’s okey.

Thanks.


#4

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