我正在使用 WebDrive 将驱动器号映射到在启用了 SVNAutoversioning 标志的 Subversion 上运行的 WebDAV 共享。Subversion 服务器正在运行 CollabNet Subversion Edge 并采用 LDAP 身份验证。
当尝试使用 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.
浏览http://我的服务器/webdrive/通过 Web 浏览器运行正常,并且我有一个类似的设置在另一台未运行 Collabnet 但已单独安装和配置了 Subversion 和 Apache 的 SVN 服务器上完美运行。
有什么想法吗?python 版本错误可能是个幌子——我在日志文件的几个地方看到过它,而在其他情况下,它似乎没有破坏任何东西……
答案1
已解决 - 感谢这个帖子在 CollabNet 论坛上。
我试图连接http://myserver/webdrive/
——但是没有成功。
在 URL 末尾添加存储库名称 - http://myserver/webdrive/reponame/
-,即可顺利连接。