Cannot svn update, An error occurred during decompression

巧了我就是萌 提交于 2019-12-08 15:54:10

问题


I have a problem with my remote repo in svn. I am running svn version 1.8.5 on windows 8.1

When I try to do an svn update I get the error svn: E120104: ra_serf: An error occurred during decompression

I am able to do a clean checkout.

Does anyone know how to resolve this issue?


回答1:


This was never fully resolved, I worked around this by doing a clean checkout and migrating the changes to the new working copy.




回答2:


This wandisco forum post will lead you in the right direction. Assuming you have access to the repo server, you need to disable compression with mod_deflate.

To resolve this error when attempting to export a large (> 4GB) repository on Ubuntu 12.04 LTS, do the following:

On the server hosting the repo:

mv /etc/apache2/mods-enabled/deflate.load ~/backup_deflate.load
mv /etc/apache2/mods-enabled/deflate.conf ~/backup_deflate.conf
mv /usr/lib/apache2/modules/mod_deflate.so ~/backup_mod_deflate.so
sudo service apache2 restart

As described in other posts, changing the client is also a workable solution. With access to the repo server, this approach was faster to implement and required no changes by the users.




回答3:


This is not limited to Windows. I was having this issue on OS X, when trying to commit. I added the following to the client side ~/.subversion/servers, based on Nathan's answer above about disabling compression:

[global]
http-compression = no

This resolved the problem.




回答4:


We had the same issue, unfortunately it could not be solved by defining the http-compression = nooption. After investigation, it turned out, that an option recommended by HTML5 boilerplate Apache Compression settings caused this issue. We had to temporary disabled the following option:

<IfModule mod_mime.c>
    AddEncoding gzip              svgz
</IfModule>

While AddEncoding gzip svgz was inactive, commit of files which name included the term svgz was possible.




回答5:


From Checking out with an older version of SVN on server this site, this problem is caused by the HTTP client libraries.

I'm tring to install svn with old version(1.7.19) as alvas said on the previous website. Maybe the following error

configure: error: no XML parser was found: expat or libxml 2.x required

will occur.

You can download the expat-2.1.0.tar.gz from http://sourceforge.net/projects/expat/files/

But the older version may not support SSL. Use 'http' instead of 'https'. My environment is AMD_64 + Ubuntu14.04 LTS.



来源:https://stackoverflow.com/questions/21548042/cannot-svn-update-an-error-occurred-during-decompression

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!