9

我已经在 Ubuntu 服务器上使用 apache2 启动并运行 subversion 大约一年了。直到 4 天前,我几乎每天都在使用它,没有任何问题。我可以通过网络浏览器浏览我的存储库,也可以使用列出我的存储库

svn list http://xx.xxx.xxx.xxx/svn/repository

但是当我尝试更新或提交某些内容时,服务器会挂起,我必须等待大约一分钟才能再次访问它。我到处搜索,但似乎找不到任何解决方案。apache error.log 说

[Sun Mar 17 16:36:36 2013] [notice] caught SIGTERM, shutting down
PHP Warning:  Module 'ssh2' already loaded in Unknown on line 0
[Sun Mar 17 16:36:37 2013] [notice] Apache/2.2.22 (Ubuntu) DAV/2 SVN/1.6.17 PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations

而 other_vhosts_access.log 说

- [17/Mar/2013:16:37:44 +0100] "OPTIONS /svn/repository HTTP/1.1" 401 677 "-" "SVN/1.6.18 (r1303927) neon/0.29.0"
- [17/Mar/2013:16:37:44 +0100] "OPTIONS /svn/repository HTTP/1.1" 401 677 "-" "SVN/1.6.18 (r1303927) neon/0.29.0"
user [17/Mar/2013:16:37:44 +0100] "OPTIONS /svn/repository HTTP/1.1" 200 876 "-" "SVN/1.6.18 (r1303927) neon/0.29.0"
user [17/Mar/2013:16:37:44 +0100] "OPTIONS /svn/repository HTTP/1.1" 200 876 "-" "SVN/1.6.18 (r1303927) neon/0.29.0"
user [17/Mar/2013:16:37:44 +0100] "PROPFIND /svn/repository HTTP/1.1" 207 554 "-" "SVN/1.6.18 (r1303927) neon/0.29.0"
user [17/Mar/2013:16:37:44 +0100] "PROPFIND /svn/repository HTTP/1.1" 207 554 "-" "SVN/1.6.18 (r1303927) neon/0.29.0"
user [17/Mar/2013:16:37:44 +0100] "PROPFIND /svn/repository HTTP/1.1" 207 554 "-" "SVN/1.6.18 (r1303927) neon/0.29.0"
user [17/Mar/2013:16:37:44 +0100] "PROPFIND /svn/repository HTTP/1.1" 207 554 "-" "SVN/1.6.18 (r1303927) neon/0.29.0"
user [17/Mar/2013:16:37:44 +0100] "PROPFIND /svn/repository/!svn/vcc/default HTTP/1.1" 207 453 "-" "SVN/1.6.18 (r1303927) neon/0.29.0"
user [17/Mar/2013:16:37:44 +0100] "PROPFIND /svn/repository/!svn/vcc/default HTTP/1.1" 207 453 "-" "SVN/1.6.18 (r1303927) neon/0.29.0"
user [17/Mar/2013:16:37:44 +0100] "PROPFIND /svn/repository/!svn/bln/20 HTTP/1.1" 207 468 "-" "SVN/1.6.18 (r1303927) neon/0.29.0"
user [17/Mar/2013:16:37:44 +0100] "PROPFIND /svn/repository/!svn/bln/20 HTTP/1.1" 207 468 "-" "SVN/1.6.18 (r1303927) neon/0.29.0"
user [17/Mar/2013:16:37:44 +0100] "PROPFIND /svn/repository HTTP/1.1" 207 554 "-" "SVN/1.6.18 (r1303927) neon/0.29.0"
user [17/Mar/2013:16:37:44 +0100] "PROPFIND /svn/repository HTTP/1.1" 207 554 "-" "SVN/1.6.18 (r1303927) neon/0.29.0"
user [17/Mar/2013:16:37:45 +0100] "PROPFIND /svn/repository/!svn/vcc/default HTTP/1.1" 207 453 "-" "SVN/1.6.18 (r1303927) neon/0.29.0"
user [17/Mar/2013:16:37:45 +0100] "PROPFIND /svn/repository/!svn/vcc/default HTTP/1.1" 207 453 "-" "SVN/1.6.18 (r1303927) neon/0.29.0"
user [17/Mar/2013:16:37:45 +0100] "PROPFIND /svn/repository/!svn/bln/20 HTTP/1.1" 207 468 "-" "SVN/1.6.18 (r1303927) neon/0.29.0"
user [17/Mar/2013:16:37:45 +0100] "PROPFIND /svn/repository/!svn/bln/20 HTTP/1.1" 207 468 "-" "SVN/1.6.18 (r1303927) neon/0.29.0"

我尝试重新安装 subversion,重新启动计算机,验证并恢复我的存储库,但没有任何帮助。有谁知道问题可能是什么?

更新:查看模块 'ssh2' 已经加载到 Unknown on line 0后,错误日志显示以下内容:

[Wed Mar 20 22:27:45 2013] [notice] caught SIGTERM, shutting down [Wed Mar 20 22:27:46 2013] [notice] Apache/2.2.22 (Ubuntu) DAV/2 SVN/1.7.8 PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations 
4

2 回答 2

1

不是您正在寻找的答案,但这里有:

切换到Git

你不会后悔的!:-)

于 2013-03-27T13:38:42.907 回答
0

我曾经遇到过类似的问题,这是由预提交挂钩中的错误引起的。

创建一个新的测试存储库(没有任何钩子),看看你是否可以在那里提交。

您还应该检查存储库的完整性。svnadmin verify不会捕获所有错误 - 尝试svnadmin dump REPOS > /dev/nul

于 2013-03-26T11:04:48.877 回答