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

[TSVN] Connection Reset by Peer

From: Lion Kimbro <lion_at_speakeasy.org>
Date: 2005-07-20 20:54:48 CEST

             ------------------------------
                  Bug
             ------------------------------

summary: When I check out code from the repository,
         it downloads a few files, and then I get
         a Network error.

key phrases: "PuTTY Fatal Error",
             "Network error: Connection reset by peer."
             "Error Connection closed unexpectedly"

configuration: Windows 2000 Professional
               Tortoise 1.2.1.
               (TortoiseSVN-1.2.1.3895-svn-1.2.1.msi)
               svnserve, version 1.1.3 (r12730)
                         compiled Jan 15 2005, 15:58:59

1. I create a new folder "foo".
2. I right-click it, and pick "Tortoise SVN" "Settings"
3. I go to "Network", and make sure SSH client is
    "tortoiseplink.exe -l root"
4. I hit "OK," leaving Settings.
5. I right-click folder "foo," and pick "SVN Checkout."
6. For the repository URL, I put:
    "svn+ssh://10.0.1.99/svn/lma/branch/octopus/windows"
7. For the checkout directory, I put:
    "C:\Documents and Settings\tiacleta\My Documents\windows2"
8. For revision, I have "HEAD revision."
9. Everything else is untouched.
10. I hit "OK."
11. I am asked for my password 3 times, and I enter it in, 3 times.
12. SVN checkout proceeds, and then STALLS.

It reads like so:

Added: C:\Documents and Settings\tiacleta\My Documents\windows2\Export2
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Export2.dsw
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\StdAfx.h
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\ErrorLog.h
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\MailItem.cpp
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\WabToFileLoader.cpp
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\Folders.h
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\LogonAsUser.h
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\WorkingBarControl.cpp
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\IpAddressReader.h
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\Program.cpp
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\Application.h
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\FtpConnection.cpp
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\ContactItem.cpp
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\DoWorkAsUser.rc
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\MOAB.cpp
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\Inifile.Cpp
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\Windows98.h
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\Items.cpp
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\LOG.CPP
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\MapiFolder.cpp
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\IniFile.H
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\System.cpp
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\CAppointmentItem.h
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\TaskItem.h

13. A "PuTTY Fatal Error" appears:
    "Network error: Connection reset by peer."
14. The text "Error Connection closed unexpectedly" appears in red, at
    the bottom of the SVN Checkout window.
15. I dismiss it with "OK."

I expected all files to download, without error.

             ------------------------------
                Latest Tortoise
             ------------------------------

As per the instructions, I download *the latest* Tortoise SVN:

  TortoiseSVN-1.2.1.3936-dev-svn-1.2.1.msi

I follow the same proceess; This time, I rececive one less file before
it hangs:

Added: C:\Documents and Settings\tiacleta\My Documents\windows2\Export2
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Export2.dsw
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\StdAfx.h
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\ErrorLog.h
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\MailItem.cpp
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\WabToFileLoader.cpp
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\Folders.h
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\LogonAsUser.h
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\WorkingBarControl.cpp
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\IpAddressReader.h
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\Program.cpp
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\Application.h
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\FtpConnection.cpp
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\ContactItem.cpp
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\DoWorkAsUser.rc
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\MOAB.cpp
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\Inifile.Cpp
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\Windows98.h
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\Items.cpp
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\LOG.CPP
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\MapiFolder.cpp
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\IniFile.H
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\System.cpp
Added: C:\Documents and Settings\tiacleta\My
Documents\windows2\Export2\Inner\CAppointmentItem.h

The error message is the same.

             ------------------------------
               Testing PuTTy, connection
             ------------------------------

I log into 10.0.1.99 as root, using PuTTY.

It works fine. I look around, twiddle some files, to test the
connection.

Everything is fine. There are no barriers to SSH'ing into this computer.

Turning off the firewall ("service iptables stop") does not solve the
problem- I still get "Network error: Connection reset by peer."

             ------------------------------
                   References
             ------------------------------

I've consulted the following:

1. I think I found a bug in TortoiseSVN!
2. TortoiseSVN Mailing Lists
3. Error Messages
4. SVN+SSH Error Messages
5. Search for "connection reset by peer" (no results)
6. Search for "reset by peer" (no results)
7. Search for "putty fatal error" (4 results, irrelevant)
8. Haxx search for "connection reset by peer" (several results)
9. TortoiseSVN tracker search for "connection reset by peer"
   (no results)

The 8th link shows that there is a lot of recent activity on this
bug. The response seems to be that the problem is with Klaus Fehlker's
network, or his TCP/IP stack. I can't speak for Klaus Fehlker, but in
my case, both of those seem highly unlikely. We haven't tampered with
the TCP/IP stack, and the network is just fine. I've deactivated the
firewall, as well.

[1] http://tortoisesvn.sourceforge.net/?q=node/54
[2] http://tortoisesvn.tigris.org/list_etiquette.html
[3] http://tortoisesvn.sourceforge.net/?q=node/133
[4] http://tortoisesvn.sourceforge.net/?q=node/136
[5]
http://tortoisesvn.tigris.org/servlets/SearchList?list=dev&searchText=%22connection+reset+by+peer%22&defaultField=body&Search=Search
[6]
http://tortoisesvn.tigris.org/servlets/SearchList?list=dev&searchText=%22reset+by+peer%22&defaultField=body&Search=Search
[7]
http://tortoisesvn.tigris.org/servlets/SearchList?list=dev&searchText=%22putty+fatal+error%22&defaultField=body&Search=Search
[8]
http://www.google.com/custom?domains=svn.haxx.se&q=connection+reset+by+peer&sa=Search&sitesearch=svn.haxx.se&client=pub-9313125053076989&forid=1&channel=8989477434&ie=ISO-8859-1&oe=ISO-8859-1&cof=GALT%3A%230066CC%3BGL%3A1%3BDIV%3A%23999999%3BVLC%3A336633%3BAH%3Acenter%3BBGC%3AFFFFFF%3BLBGC%3AFF9900%3BALC%3A0066CC%3BLC%3A0066CC%3BT%3A000000%3BGFNT%3A666666%3BGIMP%3A666666%3BFORID%3A1%3B&hl=en
[9]
http://tortoisesvn.berlios.de/issues/index.php?PHPSESSID=c8884379b2b01fc1697da7e7ebcf8438&tasks=&project=1&string=connection+reset+by+peer&type=&sev=&due=&dev=&cat=&status=all&perpage=20

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Wed Jul 20 21:19:20 2005

This is an archived mail posted to the TortoiseSVN Dev mailing list.