Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Was coding the site and updating it with SVN, server has post-commit hook which automatically updates the site's files, so I can see my changes immediately after they're commited.

And suddenly I noticed that files are not getting updated anymore. It just worked and now it does not!

  • Rebooted server - Same,
  • Tried to svn update manually through SSH:

svn update /home/mysite/ - OK, updates well. No conflicts.

  • Then I went to the repositories folder, the hooks directory.

./post-commit - Updates well.

Also this file contains only one line: svn update /home/mysite/

BUT it doesn't run actually on commit!

Why? Where to see the reason of such behaviour?

share|improve this question
Is the svn server, and webserver on the same box? How do commits get transmitted ( http, svn+ssh, ... )? –  becomingwisest Aug 10 '12 at 20:59
"Is the svn server, and webserver on the same box?" Yes "How do commits get transmitted" http, from my working machine. –  Dmitry Aug 10 '12 at 21:00
Also just created folder "svntest", made post-commit do update only for that folder and gave it chmod 777. It updates! BUT why can't it update the site's whole folder? svnserve runs as root! Or does svnserve run hooks as any other user? –  Dmitry Aug 10 '12 at 21:02
Okay, the solution was found: previously I committed the file with russian characters in it's name - that was the reason of stuck. Just removed it and then manually updated the site's folder and then post-commit started working. Still wondering why hook script works being invoked manually, but does not if onvoked by svnserve. –  Dmitry Aug 10 '12 at 21:10
It would be nice if you could post your solution as an answer and mark this question as answered... –  ldx.a.ldy.c Aug 13 '12 at 12:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.