Well, it's all running under the Administrator account, and I've never
encountered any file permission issues before so I don't think that's
it. And using that sysinternals Process Monitor doesn't show any signs
of permission issues either.
This is really starting to drive me crazy. I can't possibly understand
why this is happening.
I do get a buffer overflow when Apache reads the file, but the whole
list is full of them on tons of files so that can't be it either.
-- 30 minutes of tinkering later ---
Ok, so I finally tried changing the hook to be a pre-commit, and 'lo and
behold, an error message!
It seems , for reasons unknown, that I was able to check out from the
password protected repository even though I did not specify a password.
This, however, did not work when apache tried to do it, thus was it
unable to checkout the data. As soon as I added a proper username and
password to the svn update it worked like a charm. Why checking out
without a password worked is beyond me (across multiple reboots and
service restarts), and so is why I didn't get an error message when
doing it as a post-commit.
Things really do move in mysterious ways.
Thanks for helping me out,
/martin
Fredrik Arenhag skrev:
> [OK - my respone is gonna have to be on top instead of below (using my PDA).]
>
> Are you sure that the account running the post-commit hook (typically the same account that is running your apache process) has permission to execute svn.exe and also has the permission to write to your working copy destination?
>
> Another tip is to use the filemon tool (available for free from www.sysinternals.com) while performing a commit - any access errors should show up in the log.
>
> /A
>
> Sent from my PDA as I'm not in the office.
>
> -----Ursprungligt meddelande-----
> Från: "Martin Jonasson" <grapefrukt@grapefrukt.com>
> Till: "users@subversion.tigris.org" <users@subversion.tigris.org>
> Skickat: 07-07-08 18:21
> Ämne: post commit hook help
>
> Hello, I just spent the last few days reviving my dev-server from a hard
> drive crash.
> I'm running Subversion 1.4.4 and Apache 2.0.59 on a Windows XP machine
> (spare me the *nix lectures please ;) ).
> Everything works just fine except that I can't get my post-commit hook
> working. I've spent the last four hours fiddling with this and I'm
> really at my wits end here.
>
> I put the post-commit.bat in the proper folder, and I know it runs (it
> can create files and such), it also works exactly the way I want if I
> run it manually (it checks out the repository in a local folder, for web
> development).
>
> But for some reason it doesn't work when called as an actual
> post-commit. If I try to log the output to a file it works fine when run
> manually, I get all the messages nicely in that file, but when run as a
> post-commit I just get emptyness. The output file is created, but
> there's nothing in it. Not even an error message.
>
> Currently my post-commit.bat looks like this:
> "c:\program files\subversion\bin\svn.exe" update --non-interactive
> C:\dev\argblargsrepo\www_test\
>
> I'm sure I've made a really simple mistake somewhere, I've had this
> setup work before, but I just can't find it.
>
> Please help.
>
> /martin
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jul 9 00:33:42 2007