Project

General

Profile

Subversion and Redmine.pm - svn copy Could not read status line: Secure connection truncated

Added by Ronie Henrich over 15 years ago

Hi,

I am trying to do a "svn copy https://... https://...", it asks my user, password, and then it raises an error:
"Could not read status line: Secure connection truncated"

OS: Gentoo
apache-2.2.11-r2 (APACHE2_MPMS="worker")
mod_perl-2.0.4-r1
DBD-Pg-1.49
DBI-1.601
subversion-1.6.2
rails-2.2.2
redmine-0.8.4

Apache vhost config:
<IfModule dav_fs_module>
PerlLoadModule Redmine
<Location /svn>
DAV svn
SVNParentPath "/var/svn/"
AuthType Basic
AuthName redmine
Require valid-user
PerlAccessHandler Apache::Authn::Redmine::access_handler
PerlAuthenHandler Apache::Authn::Redmine::authen_handler
RedmineDSN "DBI:Pg:dbname=redmine;host=redmine.example.com"
RedmineDbUser "redmine"
RedmineDbPass "redmine_passwd"
</Location>
</IfModule>

Maybe is it a Redmine.pm bug?
Or is something wrong with my setup?

Thanks,
Ronie


Replies (8)

RE: Subversion and Redmine.pm - svn copy Could not read status line: Secure connection truncated - Added by Julien Cornuwel over 15 years ago

I'm having the same problem, although my repository was created manually :

$ svn copy https://my.server/svn/myapp/trunk https://my.server/svn/myapp/tags/0.1.0 -m "Tagged 0.1.0 release."
svn: COPY de '/svn/myapp/!svn/bc/38/trunk': Could not read status line: Secure connection truncated (https://my.server)

The problem also exists using plain HTTP :
$ svn copy http://my.server/svn/myapp/trunk http://my.server/svn/myapp/tags/0.1.0 -m "Tagged 0.1.0 release."
svn: COPY de '/svn/myapp/!svn/bc/38/trunk': Could not read status line: connection was closed by server (http://my.server)

Every other commands work fine, it's just the copy that fails.

RE: Subversion and Redmine.pm - svn copy Could not read status line: Secure connection truncated - Added by Ronie Henrich over 15 years ago

Looking at Apache error_log I found the following:
"Can't make DBI com handle for DBD::Pg::db: unknown package, <DATA> line 365."

I have dev-perl/DBD-Pg-1.49 installed.

I found also this post talking about almost the same problem but with mysql:
http://www.redmine.org/boards/2/topics/2512

Maybe a bug in Redmine.pm ???

RE: Subversion and Redmine.pm - svn copy Could not read status line: Secure connection truncated - Added by Dondoco Dondoco about 15 years ago

I'm having the same problem

i try it.

Redmine.pm

sub access_handler {  
  my $r = shift;
  return OK;
}

sub authen_handler {
  my $r = shift;
  return OK;
}

not repire. i can't commit.

i try Basic Auth.

i can commit.

Maybe.. this problem is mod_perl?

RE: Subversion and Redmine.pm - svn copy Could not read status line: Secure connection truncated - Added by Linghua Tseng almost 15 years ago

I've found a lot of bugs while I'm using apache22-worker with Redmine.pm.
Obviously, it's a serious bug of mod_perl2.
You can run it normally with apache22 + MPM=prefork.
I've setup a isolated machine for running Redmine & Subversion,
because I need the performance of apache22-worker on my major web server.

RE: Subversion and Redmine.pm - svn copy Could not read status line: Secure connection truncated - Added by Anonymous over 14 years ago

Dondoco Dondoco wrote:

I has sittle this problem.
I write "SVNPathAuthz off".

This works for me. Thanks!

RE: Subversion and Redmine.pm - svn copy Could not read status line: Secure connection truncated - Added by Holger Just over 14 years ago

I also found that running mpm_worker with Redmine.pm on postgres leads to many errors. This is however caused by DBD-Pg (or maybe DBI as a whole) not being threadsafe - at least, as I last tried it about a year ago.

The issue brought itself to light by causing apaches processes to die which resulted in a truncated connection. So the basic advice is: If you use Postgres and Redmine.pm: You have to use the preforked apache.

    (1-8/8)