Svn

WSAECONNRESET (10054) 錯誤使用 WebDrive 映射到 Subversion/Apache WebDAV 共享

  • January 10, 2011

我正在使用 WebDrive 將驅動器號映射到在啟用了 SVNAutoversioning 標誌的 Subversion 上執行的 WebDAV 共享。Subversion 伺服器正在執行帶有 LDAP 身份驗證的 CollabNet Subversion Edge。

嘗試使用 WebDrive 連接時,我得到:

Connecting to site myserver
Connecting to http://myserver/webdrive/
Resolving url myserver to an IP address
Url resolved to IP address 192.168.0.12
Connecting to 192.168.0.12 on port 80
Connected successfully to the server on port 80
Testing directory listing ...
Connecting to 192.168.0.12 on port 80
Connected successfully to the server on port 80

Unable to connect to server, error information below

Error: Socket receive failure (4507)
Operation: Connecting to server
Winsock Error: WSAECONNRESET (10054)

伺服器上執行的 httpd.conf 文件包含以下部分:

<Location /webdrive/>
   DAV svn
   SVNParentPath "C:\Program Files\Subversion\data\repositories"
   SVNReposName "My Subversion WebDrive"
   AuthzSVNAccessFile "C:\Program Files\Subversion\data/conf/svn_access_file"
   SVNListParentPath On
   Allow from all
   AuthType Basic
   AuthName "My Subversion Repository"
   AuthBasicProvider csvn-file-users ldap-users
   Require valid-user
   ModMimeUsePathInfo on
   SVNAutoversioning on
</Location>

在伺服器上的 Apache error_yyyy_mm_dd.log 文件中,當我嘗試通過 WebDAV 連接時看到了這個:

[Mon Jan 10 14:53:22 2011] [debug] mod_authnz_ldap.c(379): [client 192.168.0.50] [5572] auth_ldap authenticate: using URL ldap://mydc/dc=mydomain,dc=com?sAMAccountName?sub
[Mon Jan 10 14:53:22 2011] [debug] mod_authnz_ldap.c(484): [client 192.168.0.50] [5572] auth_ldap authenticate: accepting dylan.beattie
[Mon Jan 10 14:53:22 2011] [info] [client 192.168.0.50] Access granted: 'dylan.beattie' OPTIONS webdrive:/
[Mon Jan 10 14:53:22 2011] [debug] mod_authnz_ldap.c(379): [client 192.168.0.50] [5572] auth_ldap authenticate: using URL ldap://mydc/dc=mydomain,dc=com?sAMAccountName?sub
[Mon Jan 10 14:53:22 2011] [debug] mod_authnz_ldap.c(484): [client 192.168.0.50] [5572] auth_ldap authenticate: accepting dylan.beattie
[Mon Jan 10 14:53:22 2011] [info] [client 192.168.0.50] Access granted: 'dylan.beattie' PROPFIND webdrive:/
[Mon Jan 10 14:53:25 2011] [notice] Parent: child process exited with status 3221225477 -- Restarting.
[Mon Jan 10 14:53:25 2011] [debug] util_ldap.c(1990): LDAP merging Shared Cache conf: shm=0xcd0f18 rmm=0xcd0f48 for VHOST: myserver.mydomain.com
[Mon Jan 10 14:53:25 2011] [debug] util_ldap.c(1990): LDAP merging Shared Cache conf: shm=0xcd0f18 rmm=0xcd0f48 for VHOST: myserver.mydomain.com
[Mon Jan 10 14:53:25 2011] [info] APR LDAP: Built with Microsoft Corporation. LDAP SDK
[Mon Jan 10 14:53:25 2011] [info] LDAP: SSL support unavailable: LDAP: CA certificates cannot be set using this method, as they are stored in the registry instead.
[Mon Jan 10 14:53:25 2011] [notice] Apache/2.2.16 (Win32) DAV/2 SVN/1.6.13 configured -- resuming normal operations
[Mon Jan 10 14:53:25 2011] [notice] Server built: Oct  4 2010 19:55:36
[Mon Jan 10 14:53:25 2011] [notice] Parent: Created child process 4368
[Mon Jan 10 14:53:25 2011] [debug] mpm_winnt.c(487): Parent: Sent the scoreboard to the child
[Mon Jan 10 14:53:25 2011] [debug] util_ldap.c(1990): LDAP merging Shared Cache conf: shm=0xca2bb0 rmm=0xca2be0 for VHOST: myserver.mydomain.com
[Mon Jan 10 14:53:25 2011] [debug] util_ldap.c(1990): LDAP merging Shared Cache conf: shm=0xca2bb0 rmm=0xca2be0 for VHOST: myserver.mydomain.com
[Mon Jan 10 14:53:25 2011] [info] APR LDAP: Built with Microsoft Corporation. LDAP SDK
[Mon Jan 10 14:53:25 2011] [info] LDAP: SSL support unavailable: LDAP: CA certificates cannot be set using this method, as they are stored in the registry instead.
[Mon Jan 10 14:53:25 2011] [error] python_init: Python version mismatch, expected '2.5', found '2.5.4'.
[Mon Jan 10 14:53:25 2011] [error] python_init: Python executable found 'C:\\Program Files\\Subversion\\bin\\httpd.exe'.
[Mon Jan 10 14:53:25 2011] [error] python_init: Python path being used 'C:\\Program Files\\Subversion\\Python25\\python25.zip;C:\\Program Files\\Subversion\\Python25\\\\DLLs;C:\\Program Files\\Subversion\\Python25\\\\lib;C:\\Program Files\\Subversion\\Python25\\\\lib\\plat-win;C:\\Program Files\\Subversion\\Python25\\\\lib\\lib-tk;C:\\Program Files\\Subversion\\bin'.
[Mon Jan 10 14:53:25 2011] [notice] mod_python: Creating 8 session mutexes based on 0 max processes and 64 max threads.
[Mon Jan 10 14:53:25 2011] [notice] Child 4368: Child process is running
[Mon Jan 10 14:53:25 2011] [debug] mpm_winnt.c(408): Child 4368: Retrieved our scoreboard from the parent.
[Mon Jan 10 14:53:25 2011] [info] Parent: Duplicating socket 288 and sending it to child process 4368
[Mon Jan 10 14:53:25 2011] [info] Parent: Duplicating socket 276 and sending it to child process 4368
[Mon Jan 10 14:53:25 2011] [debug] mpm_winnt.c(564): Child 4368: retrieved 2 listeners from parent
[Mon Jan 10 14:53:25 2011] [notice] Child 4368: Acquired the start mutex.
[Mon Jan 10 14:53:25 2011] [notice] Child 4368: Starting 64 worker threads.
[Mon Jan 10 14:53:25 2011] [debug] mpm_winnt.c(605): Parent: Sent 2 listeners to child 4368
[Mon Jan 10 14:53:25 2011] [notice] Child 4368: Starting thread to listen on port 49159.
[Mon Jan 10 14:53:25 2011] [notice] Child 4368: Starting thread to listen on port 80.
[Mon Jan 10 14:53:25 2011] [debug] mod_authnz_ldap.c(379): [client 192.168.0.50] [4368] auth_ldap authenticate: using URL ldap://mydc/dc=mydomain,dc=com?sAMAccountName?sub
[Mon Jan 10 14:53:25 2011] [debug] mod_authnz_ldap.c(484): [client 192.168.0.50] [4368] auth_ldap authenticate: accepting dylan.beattie
[Mon Jan 10 14:53:25 2011] [info] [client 192.168.0.50] Access granted: 'dylan.beattie' PROPFIND webdrive:/
[Mon Jan 10 14:53:28 2011] [notice] Parent: child process exited with status 3221225477 -- Restarting.
[Mon Jan 10 14:53:28 2011] [debug] util_ldap.c(1990): LDAP merging Shared Cache conf: shm=0xcd4f90 rmm=0xcd4fc0 for VHOST: myserver.mydomain.com
[Mon Jan 10 14:53:28 2011] [debug] util_ldap.c(1990): LDAP merging Shared Cache conf: shm=0xcd4f90 rmm=0xcd4fc0 for VHOST: myserver.mydomain.com
[Mon Jan 10 14:53:28 2011] [info] APR LDAP: Built with Microsoft Corporation. LDAP SDK
[Mon Jan 10 14:53:28 2011] [info] LDAP: SSL support unavailable: LDAP: CA certificates cannot be set using this method, as they are stored in the registry instead.
[Mon Jan 10 14:53:28 2011] [notice] Apache/2.2.16 (Win32) DAV/2 SVN/1.6.13 configured -- resuming normal operations
[Mon Jan 10 14:53:28 2011] [notice] Server built: Oct  4 2010 19:55:36
[Mon Jan 10 14:53:28 2011] [notice] Parent: Created child process 5440
[Mon Jan 10 14:53:28 2011] [debug] mpm_winnt.c(487): Parent: Sent the scoreboard to the child
[Mon Jan 10 14:53:28 2011] [debug] util_ldap.c(1990): LDAP merging Shared Cache conf: shm=0xda2bb0 rmm=0xda2be0 for VHOST: myserver.mydomain.com
[Mon Jan 10 14:53:28 2011] [debug] util_ldap.c(1990): LDAP merging Shared Cache conf: shm=0xda2bb0 rmm=0xda2be0 for VHOST: myserver.mydomain.com
[Mon Jan 10 14:53:28 2011] [info] APR LDAP: Built with Microsoft Corporation. LDAP SDK
[Mon Jan 10 14:53:28 2011] [info] LDAP: SSL support unavailable: LDAP: CA certificates cannot be set using this method, as they are stored in the registry instead.
[Mon Jan 10 14:53:28 2011] [error] python_init: Python version mismatch, expected '2.5', found '2.5.4'.
[Mon Jan 10 14:53:28 2011] [error] python_init: Python executable found 'C:\\Program Files\\Subversion\\bin\\httpd.exe'.
[Mon Jan 10 14:53:28 2011] [error] python_init: Python path being used 'C:\\Program Files\\Subversion\\Python25\\python25.zip;C:\\Program Files\\Subversion\\Python25\\\\DLLs;C:\\Program Files\\Subversion\\Python25\\\\lib;C:\\Program Files\\Subversion\\Python25\\\\lib\\plat-win;C:\\Program Files\\Subversion\\Python25\\\\lib\\lib-tk;C:\\Program Files\\Subversion\\bin'.
[Mon Jan 10 14:53:28 2011] [notice] mod_python: Creating 8 session mutexes based on 0 max processes and 64 max threads.
[Mon Jan 10 14:53:28 2011] [notice] Child 5440: Child process is running
[Mon Jan 10 14:53:28 2011] [debug] mpm_winnt.c(408): Child 5440: Retrieved our scoreboard from the parent.
[Mon Jan 10 14:53:28 2011] [info] Parent: Duplicating socket 288 and sending it to child process 5440
[Mon Jan 10 14:53:28 2011] [info] Parent: Duplicating socket 276 and sending it to child process 5440
[Mon Jan 10 14:53:28 2011] [debug] mpm_winnt.c(564): Child 5440: retrieved 2 listeners from parent
[Mon Jan 10 14:53:28 2011] [notice] Child 5440: Acquired the start mutex.
[Mon Jan 10 14:53:28 2011] [notice] Child 5440: Starting 64 worker threads.
[Mon Jan 10 14:53:28 2011] [debug] mpm_winnt.c(605): Parent: Sent 2 listeners to child 5440
[Mon Jan 10 14:53:28 2011] [notice] Child 5440: Starting thread to listen on port 49159.
[Mon Jan 10 14:53:28 2011] [notice] Child 5440: Starting thread to listen on port 80.

從 Web 瀏覽器瀏覽http://myserver/webdrive/工作正常,我有一個類似的設置在不同的 SVN 伺服器上完美執行,該伺服器沒有執行 Collabnet,但已分別安裝和配置了 Subversion 和 Apache。

有任何想法嗎?python版本錯誤可能是紅鯡魚 - 我在日誌文件的幾個地方看到它,在其他情況下它似乎沒有破壞任何東西……

已解決 - 感謝CollabNet 論壇上的這篇文章。

我試圖連接到http://myserver/webdrive/- 這是行不通的。

在 URL 的末尾添加儲存庫的名稱 - http://myserver/webdrive/reponame/- 並且它可以毫無問題地連接。

引用自:https://serverfault.com/questions/220663