Login | Register
My pages Projects Community openCollabNet

Discussions > users > [Subclipse-users] Checkout causing server to crash

subclipse
Discussion topic

Hide all messages in topic

All messages in topic

RE: Re: [Subclipse-users] Checkout causing server to crash

Author dsenecalb
Full name Darly Senecal-Baptiste
Date 2015-12-02 12:04:19 PST
Message Hi,

Is there any solution for it?

Thanks

RE: Re: [Subclipse-users] Checkout causing server to crash

Author jacobweber
Full name Jacob Weber
Date 2015-02-19 20:58:50 PST
Message I should add that the server is version 1.8.10.

RE: Re: [Subclipse-users] Checkout causing server to crash

Author jacobweber
Full name Jacob Weber
Date 2015-02-19 20:49:45 PST
Message I have the History window open, but it's not linked to the editor.

I turned on the Apache SVN operational log, but nothing gets written to it when I check out this project/revision. In the Apache access log, all I get is this:

1.2.3.4 - - [19/Feb/2015:23:32:12 -0500] "OPTIONS /repo/project/branches/foo HTTP/1.1" 401 480
1.2.3.4 - jacobw [19/Feb/2015:23:32:13 -0500] "OPTIONS /repo/project/branches/foo HTTP/1.1" 200 183
1.2.3.4 - jacobw [19/Feb/2015:23:32:13 -0500] "OPTIONS /repo/project/branches/foo HTTP/1.1" 200 97
1.2.3.4 - jacobw [19/Feb/2015:23:32:13 -0500] "OPTIONS /repo/project/branches/foo HTTP/1.1" 200 183
1.2.3.4 - jacobw [19/Feb/2015:23:32:13 -0500] "OPTIONS /repo/project/branches/foo HTTP/1.1" 200 183
1.2.3.4 - jacobw [19/Feb/2015:23:32:14 -0500] "OPTIONS /repo/project/branches/foo HTTP/1.1" 200 183
1.2.3.4 - jacobw [19/Feb/2015:23:32:14 -0500] "REPORT /repo/!svn/rvr/12400​0/project/branches/f​oo HTTP/1.1" 200 231

When I do the same checkout on the command line, I get this in the operational log:
[19/Feb/2015:23:39:52 -0500] jacobw get-inherited-props /project/branches/foo r123456
[19/Feb/2015:23:39:52 -0500] jacobw checkout-or-export /project/branches/foo r123456 depth=infinity

and in the access log:
1.2.3.4 - - [19/Feb/2015:23:39:50 -0500] "OPTIONS /repo/project/branches/foo HTTP/1.1" 401 480
1.2.3.4 - jacobw [19/Feb/2015:23:39:50 -0500] "OPTIONS /repo/project/branches/foo HTTP/1.1" 200 183
1.2.3.4 - jacobw [19/Feb/2015:23:39:51 -0500] "OPTIONS /repo/project/branches/foo HTTP/1.1" 200 97
1.2.3.4 - jacobw [19/Feb/2015:23:39:51 -0500] "OPTIONS /repo/project/branches/foo HTTP/1.1" 200 183
1.2.3.4 - jacobw [19/Feb/2015:23:39:51 -0500] "REPORT /repo/!svn/rvr/12400​0/project/branches/f​oo HTTP/1.1" 200 181
1.2.3.4 - jacobw [19/Feb/2015:23:39:51 -0500] "PROPFIND /repo/!svn/rvr/12345​6/project/branches/f​oo HTTP/1.1" 207 349
1.2.3.4 - - [19/Feb/2015:23:39:52 -0500] "OPTIONS /repo/project/branches/foo HTTP/1.1" 401 480
1.2.3.4 - jacobw [19/Feb/2015:23:39:52 -0500] "OPTIONS /repo/project/branches/foo HTTP/1.1" 200 183
1.2.3.4 - jacobw [19/Feb/2015:23:39:52 -0500] "OPTIONS /repo/project/branches/foo HTTP/1.1" 200 97
1.2.3.4 - jacobw [19/Feb/2015:23:39:52 -0500] "REPORT /repo/!svn/rvr/12345​6/project/branches/f​oo HTTP/1.1" 200 308
[ then it continues ]

I'm sure there's an issue with the server. But I can't figure out what Subclipse is doing to trigger it, that the command-line client isn't doing.

Re: [Subclipse-users] Checkout causing server to crash

Author markphip
Full name Mark Phippard
Date 2015-02-19 12:40:49 PST
Message On Thu, Feb 19, 2015 at 2:37 PM, Jacob Weber <jacob at jacobweber dot com> wrote:

> Here's a strange one.
>
> When i check out a certain project using Subclipse, the SVN SERVER runs
> out of memory and the process gets killed by oom-killer.
>
> It only happens when I specify a revision (rather than HEAD), but it
> happens with several different revisions.
>
> The surprising thing is that this happens with SVNKit AND JavaHL (SVN
> 1.8.5). But when I try the same thing on the same command line SVN client,
> there's no problem:
>
> svn checkout svn+ssh://user@host/​repo/project/branche​s/foo -r 123456
> --depth=infinity --force
>
> When it happens, nothing appears in the SVN console (not even the
> "checkout" command). The task in Progress says "Checking out foo:". It
> hangs for 5-10 minutes, then the server breaks the connection, and
> Subclipse shows this error:
>
> Failed in RemoteResource.getLogMessages()
> org.apache.subversio​n.javahl.ClientExcep​tion: APR does not understand this
> error code
> svn: ra_serf: The server sent a truncated HTTP response body.
>
> It happens with both svn+ssh and https.
>
> I'm using Eclipse 4.4.1, with all updates, and Subclipse 1.10.9, on Mac OS
> X. A colleague with the same setup, but running Debian, has the exact same
> issue.
>

It is ultimately the responsibility of the server to manage its memory and
not crash etc. Since you can reproduce this with https, I would focus on
that since it offers better logging. Turn on the SVN operational logging
if possible and try to find out what "commands" the server is receiving.

> Failed in RemoteResource.getLogMessages()

This is odd. I cannot think of why the checkout process would call this.
Perhaps you have the History view showing somewhere with the Link to Editor
feature active and something is triggering that view to also make a call to
the server to fetch history? That said, I fail to see why running checkout
and a history call at same time would be an issue for the server.

--
Thanks

Mark Phippard
http://markphip.blogspot.com/
Attachments

[Subclipse-users] Checkout causing server to crash

Author jacobweber
Full name Jacob Weber
Date 2015-02-19 11:37:36 PST
Message Here's a strange one.

When i check out a certain project using Subclipse, the SVN SERVER runs out of memory and the process gets killed by oom-killer.

It only happens when I specify a revision (rather than HEAD), but it happens with several different revisions.

The surprising thing is that this happens with SVNKit AND JavaHL (SVN 1.8.5). But when I try the same thing on the same command line SVN client, there's no problem:

svn checkout svn+ssh://user@host/​repo/project/branche​s/foo -r 123456 --depth=infinity --force

When it happens, nothing appears in the SVN console (not even the "checkout" command). The task in Progress says "Checking out foo:". It hangs for 5-10 minutes, then the server breaks the connection, and Subclipse shows this error:

Failed in RemoteResource.getLogMessages()
org.apache.subversio​n.javahl.ClientExcep​tion: APR does not understand this error code
svn: ra_serf: The server sent a truncated HTTP response body.

It happens with both svn+ssh and https.

I'm using Eclipse 4.4.1, with all updates, and Subclipse 1.10.9, on Mac OS X. A colleague with the same setup, but running Debian, has the exact same issue.
Messages per page: