[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: Svnsync in post-commit hook doesnt do a thing

From: Giulio Troccoli <giulio.troccoli_at_uk.linedata.com>
Date: Thu, 8 Oct 2009 13:18:40 +0100

>

Linedata Services (UK) Ltd
Registered Office: Bishopsgate Court, 4-12 Norton Folgate, London, E1 6DB
Registered in England and Wales No 3027851 VAT Reg No 778499447

-----Original Message-----

> From: news [mailto:news_at_ger.gmane.org] On Behalf Of Mala Dibbs
> Sent: 08 October 2009 13:04
> To: users_at_subversion.tigris.org
> Subject: Svnsync in post-commit hook doesnt do a thing
>
> Hi,
>
> this is my post-commit hook:
>
> #!/bin/sh
> /usr/bin/svnsync synchronize https://example.net/svn/test
> --non-interactive \
> --username=svnsync --password=\!svn4995 >/dev/null
> 2>/dev/null & exit 0
>
> It is chowned to www-data and has chmod +x.
>
> Unfortunately it does not syncronize the mirror automatically
> after each commit.
> It doesnt do anything. Yet it works, when i call it manually
> with ./post-commit
>
> What could be the problem here? Where do i find verbose logging?
> (apache2/error.log does not show anything abnormal).
>
> The only thing I could think of which brings the process to
> fail is the untrusted SSL certificate on the mirror
> (self-signed, wrong domain). When I ran svnsync for the first
> time (manually) I accepted the certificate permanently but
> since the post-commit hook is executed without any
> environment variables, the hook might just not know about the
> certificate exception and won't connect to the mirror.
>
> Is that possible? How could I fix that?
>
> Greets, Mala

I think that if you start and stop redirecting any output and any error to /dev/null maybe you will have something that would help you finding out the cause of the problem.

Giulio

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2404929

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-10-08 14:19:55 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.