The Subversion server is run by the user who is starting the svnserve
process or the httpd Apache process depending upon if you're using
svn:// or http://. If you're using ssh+svn//:, each user runs the
svnserve process and thus the hook scripts. If you're on Linux/Unix,
you can use the "ps" or pgrep command.
What I found interesting is that everything worked until he deleted
his working directory and recreated it.
I can't say this is a permission issue, but my first instinct is to
make sure that I am operating as the user who is performing the
operation. It could be that the working directory was created by User
"A", but the Subversion server is running as User "B". And User "B"
can't update anything in the working directory because they don't have
write permission. Or maybe Subversion hook is waiting for someone to
put in the needed password.
I run a lot of various processes, and I will spend hours, sometimes
days, attempting to debug a problem before I realized that I setup a
particular piece of software as one user, but running it as another
user.
On Wed, Feb 18, 2009 at 5:25 AM, Sethuraman, Nirmala (NSN -
IN/Bangalore) <nirmala.sethuraman_at_nsn.com> wrote:
>
> Hi
>
> I too am getting the same problem. I checked your reponse. Can you tell
> me how to find which user is running the subversion archive?
>
>
> Best Regards,
> Nirmala
>
> -----Original Message-----
> From: ext David Weintraub [mailto:qazwart_at_gmail.com]
> Sent: Thursday, October 30, 2008 11:57 PM
> To: Giulio Troccoli
> Cc: users_at_subversion.tigris.org
> Subject: Re: Updating a WC in the post-commit fails
>
> Remember that the post-commit hook runs as the user who is running the
> Subversion archive. So, the best thing to do is log in as the Subversion
> user, and then try to do an update and see if you get a prompt for a
> password.
>
> It could be that the Subversion server user's password changed. If this
> happened, the Subversion user can't update this workspace.
>
> --
> David Weintraub
> qazwart_at_gmail.com
>
>
>
> On Thu, Oct 30, 2008 at 10:05 AM, Giulio Troccoli
> <Giulio.Troccoli_at_uk.linedata.com> wrote:
>> In my company we use Subversion for our source code. To help
> developers and testers I have written some wrappers around SVN and the
> hooks of course. I then decided to use Subversion for version them. It
> make sense to me as I have a history of what I have done and I can
> always go back to a previous "version" of any script.
>>
>> To make things easier for me I have decided to keep a WC on the SVN
> Server and then use sym-links for the hooks. This works perfectly as I
> always use absolute paths in the hooks.
>>
>> One day I decided that I wanted any changes I made to the wrappers and
> the hooks to be immediately live, so I change the post-commit hook for
> the repository I used for them to do an update of the WC.
>>
>> This has been working fine for months but now I get the following
> error every time I commit something, and the update is not performed.
> However I can cd into the WC and do an update manually just fine.
>>
>> Authentication realm: <http://ln1sub01:80> Subversion Production
> Repository for System Utilities Password for 'svn_gt':
>> Sending pre-lock
>> Sending pre-unlock
>> Transmitting file data ..svn: Commit failed (details follow):
>> svn: MERGE request failed on '/svn-util/trunk/hooks/svn'
>> svn: The MERGE request returned invalid XML in the response: XML parse
>
>> error at line 10: not well-formed (invalid token)
>> (/svn-util/trunk/hooks/svn)
>>
>> I'm using SVN 1.4.6 both for client and server (I actually work on the
> same machine, although not on the same WC), the Server is a RHEL4 and I
> serve the repository with Apache 2.0.
>>
>> Can anybody help in explaining what is going on? The only thing I
> really change recently is that I created a trunk directory (and branches
> too), so I deleted the WC and recreated it checking out trunk rather
> than the root of the repository.
>>
>> Thanks
>>
>> -------------------
>> Giulio Troccoli
>> Technical Consultant
>>
>> T +44 (0)20 7360 1914 F +44 (0)20 7360 1974 BB +44 (0)777 194 7414
> E giulio.troccoli_at_uk.linedata.com W www.linedata.com MSN Messenger
> giulio_at_troccoli.it
>>
>>
>>
>>
>> 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
>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
>> For additional commands, e-mail: users-help_at_subversion.tigris.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
> For additional commands, e-mail: users-help_at_subversion.tigris.org
>
>
--
--
David Weintraub
qazwart_at_gmail.com
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1186886
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-02-18 17:35:17 CET