views:

758

answers:

1

heya,

We have a web-app, that we're deploying to a remote Ubuntu server.

The app is stored on BitBucket, and we also have Fabric scripts we're using to automatically deploy the app.

On the server, we have the files for the app in /var/www/name_of_site, this folder being a Mercurial repository. The files are owned by the user www-data, group www-data, and are group-writable.

When I attempt to login to the server and do a "hg add" inside the repository, I get a:

adding fabfiles/fabfile.py
abort: could not lock working directory of /var/www/site_name: Permission denied

I tried adding myself to www-data, and it still gives that error message. I'm able to create folders/files inside /var/www/site_name fine.

Have I set things up incorrectly here? Should the permissions be different?

Cheers, Victor

+4  A: 

Check if you can add/remove files inside the .hg directory – tonfa Oct 27 at 10:27

Ry4an
Moved tonfa's answer from a comment to an answer (and made it community wiki so I'm not point whoring).
Ry4an