Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mercurial - Could not lock working directory

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

like image 531
victorhooi Avatar asked Oct 27 '09 04:10

victorhooi


1 Answers

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

like image 173
Yuriy Zhigulskiy Avatar answered Oct 13 '22 15:10

Yuriy Zhigulskiy