Fixing SVN Update Failures Behind an Nginx Server
Original Chinese title: nginx svn 服务器出现的无法update问题
The SVN unable-to-fetch issue
64-bit Win7, SVN client TSVN, server Debian + Nginx
checkout works
cannot update or add
cannot check log
SVN error: An existing connection was forcibly closed by the remote host
##nginx error_log
client sent "Transfer-Encoding: chunked" header while reading client
request headers, client: xxx, server: xxx,
request: "OPTIONS /xxx/xxx HTTP/1.1", host: "xxx"
This shows Nginx did receive the SVN request—no idea why it became chunked though.
Accessing it with a 32-bit client worked with zero issues.
Using x64 SVN against several other SVN servers also worked fine.
Apparently it was because the Nginx we were running couldn’t accept chunked requests.
So this seems like the first time I dug this deep—even felt the urge to read the source code. If I really wanted to understand what’s going on, I’d probably have to read the x64 TSVN source code to see what it sends on commit, and then check how Nginx 1.2.1 handles chunked requests. Of course, all of that assumes figuring out what chunking actually is first.
#Update
Sure enough, after upgrading to Nginx 1.4.1, there are no issues at all.
Lots of things to read up on.
http://www.vnsecurity.net/2013/05/analysis-of-nginx-cve-2013-2028/
Still, x32 and x64 TSVN actually use different commit methods—no idea why.
svn 无法获取的问题
64win7 svn 客户端TSVN 服务器 Debian nginx
可以checkout
无法update add
无法check log
svn 报错远程强迫一个现有链接
##nginx error_log
client sent "Transfer-Encoding: chunked" header while reading client
request headers, client: xxx, server: xxx,
request: "OPTIONS /xxx/xxx HTTP/1.1", host: "xxx"
说明nginx已经收到了svn 的请求,不知道为啥会变成chuncked
用一个32位的客户端访问,完全没有任何问题。
用x64 svn 访问几个svn server 都是可以的
貌似是因为我们的用的nginx 是无法接受chunked 的原因
so 貌似是第一次查的那么仔细,第一次有种要看源码的冲动。如果真的想明白什么问题,估计要查看x64 TSVN的源码,看提交的时候内容,然后看nginx 1.2.1 对chunk的处理方式。当然这些都要在搞清楚什么是chunk的基础上。
#Update
果然升级了nginx1.4.1就没有任何问题了。
有好多东西要看。
http://www.vnsecurity.net/2013/05/analysis-of-nginx-cve-2013-2028/
不过tsvn x32和x64竟然是不同的commit的方法,不知道为啥。