WebFaction
Community site: login faq

I recently installed svn app on web143. I have a post commit trigger (sh script) which calls a python program. If I ssh to server, and do ./post-commit from command line it works fine.

If I do svn commit from desktop, commit is done fine but post-commit does not execute.

I get following error Transmitting file data .svn: Commit failed (details follow): svn: MERGE of '/projectb': 200 OK (http://svn.<myuser>.webfactional.com)

asked 20 Jul '11, 19:14

zweb
1116
accept rate: 0%


On Web143, svn HTTP operations run as the 'apache' user, so be sure that 'apache' has permissions to do everything that your post-commit and Python scripts need to do. For example, if your script writes to a file somewhere, be sure that 'apache' has permissions to write to that file.

You can grant permissions for 'apache' by setting the ACLs. We have some documentation here: Granting Access to Specific Users

Hope that helps!

permanent link

answered 20 Jul '11, 19:31

seanf
12.2k42136
accept rate: 37%

Thanks, that worked.

I applied these two commands to application and the application log folder and it worked.

setfacl -R -m u:secondary_username:rwx $HOME/webapps/application

setfacl -R -m d:u:secondary_username:rwx $HOME/webapps/application

(20 Jul '11, 20:33) zweb
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×41

question asked: 20 Jul '11, 19:14

question was seen: 5,345 times

last updated: 20 Jul '11, 20:33

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM