You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Christophe Labouisse <ga...@tigris.org> on 2004/05/08 12:07:22 UTC

Can't SVN::Push to svn+ssh

I'm trying to use svnpush onto a svn+ssh repository. I create a new
repository on the remote machine and then issue:

$ svnpush push -c -r 1:10  file:///source svn+ssh://host/dest

This operation always fails with "Network connection closed
unexpectedly" (see full log at the end).

However I'm pretty sure that the remote repository is configured ok
since I can import data and check them out using the same
svn+ssh://host/dest URL.


---------------------------------------
Source: file:///source
  Revision: 120
  Root:     file:///source
  Path:     / (rev: 120)
Target: svn+ssh://host/dest
  Revision: 1
  Root:     svn+ssh://host/dest
  Path:     /
Target is not initialized
Retrieving log information from 1 to 10
A  trunk
A  trunk/java
A  tags
A  tags/java
Network connection closed unexpectedly: Connection closed unexpectedly
at /usr/local/lib/perl/5.8.3/SVN/Ra.pm line 157
SVN::Delta::Editor::AUTOLOAD('SVN::Push::MirrorEditor=HASH(0x84f5bf0)',
'SVN::Push::MirrorEditor=HASH(0x84f5bf0)') called at
/usr/local/share/perl/5.8.3/SVN/Push.pm line 110
SVN::Push::MirrorEditor::close_edit('SVN::Push::MirrorEditor=HASH(0x84f
5bf0)') called at /usr/local/lib/perl/5.8.3/SVN/Ra.pm line 157
SVN::Ra::Reporter::AUTOLOAD('SVN::Ra::Reporter=ARRAY(0x84f5d04)') called
at /usr/local/share/perl/5.8.3/SVN/Push.pm line 244
SVN::Push::mirror('SVN::Push=HASH(0x8175890)','undef',1,'moi','2004-05-
07T20:34:11.309046Z','Prepare structure for
import.\x{a}\x{a}','_p_apr_pool_t=SCALAR(0x8330238)') called at
/usr/local/share/perl/5.8.3/SVN/Push.pm line 534	eval {...} called at
/usr/local/share/perl/5.8.3/SVN/Push.pm line 533
SVN::Push::__ANON__('undef',1,'moi','2004-05-07T20:34:11.309046Z','Prep
are structure for import.\x{a}\x{a}','_p_apr_pool_t=SCALAR(0x8330238)')
called at /usr/local/lib/perl/5.8.3/SVN/Ra.pm line 79
SVN::Ra::AUTOLOAD('SVN::Ra=HASH(0x8489b98)','ARRAY(0x8175c20)',1,10,0,1
,'CODE(0x83300d0)') called at /usr/local/share/perl/5.8.3/SVN/Push.pm
line 542	SVN::Push::run('SVN::Push=HASH(0x8175890)') called at
/usr/bin/svnpush line 153
main::do_push('HASH(0x8489c28)','file:///source','svn+ssh://host/dest')
called


-- 
Le cinéma en Lumière : http://www.lumiere.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: Can't SVN::Push to svn+ssh

Posted by Christophe Labouisse <ga...@tigris.org>.
Gerald Richter said:
> Is the destination repository empty? If not, do you have the chance to
> delete and recreate it?
> Could you try to access the destionation repository via file://? Does this
> work?

I made the test using an empty repository destination and it fails the
same way. However using file:// instead of svn:// to push to the same
repository works.


> Do you use the version with the last patch I send you or without the
> patch?

I use Push.pm with the included patch.

I run the following test:

Create two new repositories, one for the source, one for the dest. Change
the snvserve.conf file to allow anonymous write access to both source &
dest. Populate the source repository with the included script. Try to push
from source to dest with:

svnpush push -c -r 1:10  file://[SOURCE] svn://[DEST]

And I get the same error.

Using file:// as dest works fine.





-- 

Re: Can't SVN::Push to svn+ssh

Posted by Gerald Richter <ri...@ecos.de>.
Christophe Labouisse wrote:
> Gerald Richter said:
>> I do not use svn+ssh, but when I get a similar message for https, it
>> is always helpfull to look at the Apache error log.
>>
>> Does svnserve has a error log? Are there any usefull messages?
>
> Not one I'm aware of. The nice part is that I can reproduce the exact
> same problem using plain svn:// with a svnserve on localhost. For the
> record, I take care of giving write permission for anonymous users on
> the svn:// repository.

Is the destination repository empty? If not, do you have the chance to
delete and recreate it?

Could you try to access the destionation repository via file://? Does this
work?

Do you use the version with the last patch I send you or without the patch?

Gerald


---------------------------------------------------------------------------
Gerald Richter            ecos electronic communication services gmbh
IT-Securitylösungen * Webapplikationen mit Apache/Perl/mod_perl/Embperl

Post:       Tulpenstrasse 5          D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de          Voice:   +49 6133 939-122
WWW:        http://www.ecos.de/      Fax:     +49 6133 939-333
---------------------------------------------------------------------------
Besuchen Sie uns auf der KOMCOM 2004 in Mannheim
25. bis 27. Mai 2004  Stand K11a   www.komcom.de

ECOS BB-5000 Firewall- und IT-Security Appliance: www.bb-5000.info
---------------------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Can't SVN::Push to svn+ssh

Posted by Christophe Labouisse <ga...@tigris.org>.
Gerald Richter said:
> I do not use svn+ssh, but when I get a similar message for https, it is
> always helpfull to look at the Apache error log.
>
> Does svnserve has a error log? Are there any usefull messages?

Not one I'm aware of. The nice part is that I can reproduce the exact same
problem using plain svn:// with a svnserve on localhost. For the record, I
take care of giving write permission for anonymous users on the svn://
repository.

-- 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Can't SVN::Push to svn+ssh

Posted by Gerald Richter <ri...@ecos.de>.
Hi,


> I'm trying to use svnpush onto a svn+ssh repository. I create a new
> repository on the remote machine and then issue:
>
> $ svnpush push -c -r 1:10  file:///source svn+ssh://host/dest
>
> This operation always fails with "Network connection closed
> unexpectedly" (see full log at the end).
>

I do not use svn+ssh, but when I get a similar message for https, it is
always helpfull to look at the Apache error log.

Does svnserve has a error log? Are there any usefull messages?

Gerald


> However I'm pretty sure that the remote repository is configured ok
> since I can import data and check them out using the same
> svn+ssh://host/dest URL.
>
>
> ---------------------------------------
> Source: file:///source
>   Revision: 120
>   Root:     file:///source
>   Path:     / (rev: 120)
> Target: svn+ssh://host/dest
>   Revision: 1
>   Root:     svn+ssh://host/dest
>   Path:     /
> Target is not initialized
> Retrieving log information from 1 to 10
> A  trunk
> A  trunk/java
> A  tags
> A  tags/java
> Network connection closed unexpectedly: Connection closed unexpectedly
> at /usr/local/lib/perl/5.8.3/SVN/Ra.pm line 157
> SVN::Delta::Editor::AUTOLOAD('SVN::Push::MirrorEditor=HASH(0x84f5bf0)',
> 'SVN::Push::MirrorEditor=HASH(0x84f5bf0)') called at
> /usr/local/share/perl/5.8.3/SVN/Push.pm line 110
> SVN::Push::MirrorEditor::close_edit('SVN::Push::MirrorEditor=HASH(0x84f
> 5bf0)') called at /usr/local/lib/perl/5.8.3/SVN/Ra.pm line 157
> SVN::Ra::Reporter::AUTOLOAD('SVN::Ra::Reporter=ARRAY(0x84f5d04)')
> called at /usr/local/share/perl/5.8.3/SVN/Push.pm line 244
> SVN::Push::mirror('SVN::Push=HASH(0x8175890)','undef',1,'moi','2004-05-
> 07T20:34:11.309046Z','Prepare structure for
> import.\x{a}\x{a}','_p_apr_pool_t=SCALAR(0x8330238)') called at
> /usr/local/share/perl/5.8.3/SVN/Push.pm line 534 eval {...} called at
> /usr/local/share/perl/5.8.3/SVN/Push.pm line 533
> SVN::Push::__ANON__('undef',1,'moi','2004-05-07T20:34:11.309046Z','Prep
> are structure for
> import.\x{a}\x{a}','_p_apr_pool_t=SCALAR(0x8330238)') called at
> /usr/local/lib/perl/5.8.3/SVN/Ra.pm line 79
> SVN::Ra::AUTOLOAD('SVN::Ra=HASH(0x8489b98)','ARRAY(0x8175c20)',1,10,0,1
> ,'CODE(0x83300d0)') called at /usr/local/share/perl/5.8.3/SVN/Push.pm
> line 542 SVN::Push::run('SVN::Push=HASH(0x8175890)') called at
> /usr/bin/svnpush line 153
> main::do_push('HASH(0x8489c28)','file:///source','svn+ssh://host/dest')
> called

---------------------------------------------------------------------------
Gerald Richter            ecos electronic communication services gmbh
IT-Securitylösungen * Webapplikationen mit Apache/Perl/mod_perl/Embperl

Post:       Tulpenstrasse 5          D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de          Voice:   +49 6133 939-122
WWW:        http://www.ecos.de/      Fax:     +49 6133 939-333
---------------------------------------------------------------------------
Besuchen Sie uns auf der KOMCOM 2004 in Mannheim
25. bis 27. Mai 2004  Stand K11a   www.komcom.de

ECOS BB-5000 Firewall- und IT-Security Appliance: www.bb-5000.info
---------------------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Can't SVN::Push to svn+ssh

Posted by Christophe Labouisse <ga...@tigris.org>.
Gerald Richter said:
> Could you try the appended patch?

Doesn't change anything, I get the same error.

-- 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Can't SVN::Push to svn+ssh

Posted by Gerald Richter <ri...@ecos.de>.
Christophe Labouisse wrote:
> I'm trying to use svnpush onto a svn+ssh repository. I create a new
> repository on the remote machine and then issue:
>
> $ svnpush push -c -r 1:10  file:///source svn+ssh://host/dest
>
> This operation always fails with "Network connection closed
> unexpectedly" (see full log at the end).
>

Could you try the appended patch?

Gerald


> However I'm pretty sure that the remote repository is configured ok
> since I can import data and check them out using the same
> svn+ssh://host/dest URL.
>
>
> ---------------------------------------
> Source: file:///source
>   Revision: 120
>   Root:     file:///source
>   Path:     / (rev: 120)
> Target: svn+ssh://host/dest
>   Revision: 1
>   Root:     svn+ssh://host/dest
>   Path:     /
> Target is not initialized
> Retrieving log information from 1 to 10
> A  trunk
> A  trunk/java
> A  tags
> A  tags/java
> Network connection closed unexpectedly: Connection closed unexpectedly
> at /usr/local/lib/perl/5.8.3/SVN/Ra.pm line 157
> SVN::Delta::Editor::AUTOLOAD('SVN::Push::MirrorEditor=HASH(0x84f5bf0)',
> 'SVN::Push::MirrorEditor=HASH(0x84f5bf0)') called at
> /usr/local/share/perl/5.8.3/SVN/Push.pm line 110
> SVN::Push::MirrorEditor::close_edit('SVN::Push::MirrorEditor=HASH(0x84f
> 5bf0)') called at /usr/local/lib/perl/5.8.3/SVN/Ra.pm line 157
> SVN::Ra::Reporter::AUTOLOAD('SVN::Ra::Reporter=ARRAY(0x84f5d04)')
> called at /usr/local/share/perl/5.8.3/SVN/Push.pm line 244
> SVN::Push::mirror('SVN::Push=HASH(0x8175890)','undef',1,'moi','2004-05-
> 07T20:34:11.309046Z','Prepare structure for
> import.\x{a}\x{a}','_p_apr_pool_t=SCALAR(0x8330238)') called at
> /usr/local/share/perl/5.8.3/SVN/Push.pm line 534 eval {...} called at
> /usr/local/share/perl/5.8.3/SVN/Push.pm line 533
> SVN::Push::__ANON__('undef',1,'moi','2004-05-07T20:34:11.309046Z','Prep
> are structure for
> import.\x{a}\x{a}','_p_apr_pool_t=SCALAR(0x8330238)') called at
> /usr/local/lib/perl/5.8.3/SVN/Ra.pm line 79
> SVN::Ra::AUTOLOAD('SVN::Ra=HASH(0x8489b98)','ARRAY(0x8175c20)',1,10,0,1
> ,'CODE(0x83300d0)') called at /usr/local/share/perl/5.8.3/SVN/Push.pm
> line 542 SVN::Push::run('SVN::Push=HASH(0x8175890)') called at
> /usr/bin/svnpush line 153
> main::do_push('HASH(0x8489c28)','file:///source','svn+ssh://host/dest')
> called

---------------------------------------------------------------------------
Gerald Richter            ecos electronic communication services gmbh
IT-Securitylösungen * Webapplikationen mit Apache/Perl/mod_perl/Embperl

Post:       Tulpenstrasse 5          D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de          Voice:   +49 6133 939-122
WWW:        http://www.ecos.de/      Fax:     +49 6133 939-333
---------------------------------------------------------------------------
Besuchen Sie uns auf der KOMCOM 2004 in Mannheim
25. bis 27. Mai 2004  Stand K11a   www.komcom.de

ECOS BB-5000 Firewall- und IT-Security Appliance: www.bb-5000.info
---------------------------------------------------------------------------