Error running context an error occurred during ssl communication

«An error occurred during SSL communication» when client certificates are required SVN checkout using TortoiseSVN causes «An error occurred during SSL communication» to appear whenever client certificates are required in conjunction with our new server, if the client certificate is​ already present in the local Windows certificate store. The client certificates are issued by […]

Содержание

  1. «An error occurred during SSL communication» when client certificates are required
  2. svn https: «ra_serf: Произошла ошибка во время связи SSL»
  3. Как настроить SSL для subversion?
  4. Apache Subversion FAQ
  5. Table of Contents
  6. General questions:
  7. How-to:
  8. Troubleshooting:
  9. Developer questions:
  10. References:
  11. General questions: ¶
  12. What is Subversion? Why does it exist? ¶
  13. Is Subversion proprietary software? ¶
  14. How stable is Subversion? ¶
  15. What is Subversion’s client/server interoperability policy? ¶
  16. What operating systems does Subversion run on? ¶
  17. What’s all this about a new filesystem? Is it like ext2? ¶
  18. What kind of hardware do I need to run a Subversion server? ¶
  19. I heard that Subversion is an Apache extension? What does it use for servers? ¶
  20. Does this mean I have to set up Apache to use Subversion? ¶
  21. I run Apache 1.x right now, and can’t switch to Apache 2.0 just to serve Subversion repositories. Does that mean I can’t run a Subversion server? ¶
  22. Why don’t you do X, just like SCM system Y? ¶
  23. Why does the entire repository share the same revision number? I want each of my projects to have their own revision numbers. ¶
  24. Does Subversion have Changesets? ¶
  25. When’s the next release? ¶
  26. Does Subversion support symlinks? ¶
  27. I need a high resolution version of the Subversion logo, where can I get it? ¶
  28. I have other questions. Where can I get more information? ¶
  29. Why isn’t my post showing up on the mailing list? ¶
  30. How is Subversion affected by changes in Daylight Savings Time (DST)? ¶
  31. How is Subversion affected by SHA-1 hash collisions? ¶
  32. How-to: ¶
  33. How do I check out the Subversion code? ¶
  34. How do I create a repository? How do I import data into it? ¶
  35. How do I convert an existing CVS repository into a Subversion repository? ¶
  36. What if I’m behind a proxy? ¶
  37. My admins don’t want me to have a HTTP server for Subversion. What can I do if I still want remote usage? ¶
  38. How do I manage several different projects under Subversion? ¶
  39. How do I merge two completely separate repositories? ¶
  40. Should I store my repository / working copy on a NFS server? ¶
  41. How do I set repository permissions correctly? ¶
  42. How do I completely remove a file from the repository’s history? ¶
  43. How do I change the log message for a revision after it’s been committed? ¶
  44. How do I submit a patch for Subversion? ¶
  45. How can I do an in-place ‘import’ (i.e. add a tree to Subversion such that the original data becomes a working copy directly)? ¶
  46. What is this «dump/load cycle» people sometimes talk about when upgrading a Subversion server? ¶
  47. I’m managing a website in my repository. How can I make the live site automatically update after every commit? ¶
  48. How do I check out a single file? ¶
  49. How do I detect adds, deletes, copies and renames in a working copy after they’ve already happened? ¶
  50. How do I run svnserve as a service on Windows? ¶
  51. How do I convert my repository from using BDB to FSFS or from FSFS to BDB? ¶
  52. How does Subversion handle binary files? ¶
  53. How can I make svn diff show me just the names of the changed files, not their contents? ¶
  54. How can I use wildcards or globbing to move many files at once? ¶
  55. How can I maintain a modified version (a «vendor branch») of third-party software using Subversion? ¶
  56. How do I make the contents of a previous revision become HEAD again? ¶
  57. Troubleshooting: ¶
  58. Every time I try to run a svn command, it says my working copy is locked. Is my working copy corrupt? ¶
  59. I’m trying to commit, but Subversion says my working copy is out of date? ¶
  60. I’ve contributed a patch to a project and the patch added a new file. Now svn update does not work. ¶
  61. I just built the distribution binary, and when I try to check out Subversion, I get an error about an «Unrecognized URL scheme.» What’s up with that? ¶
  62. I’m getting errors finding or opening a repository, but I know my repository URL is correct. What’s wrong? ¶
  63. When I run `configure’, I get errors about subs-1.sed line 38: Unterminated `s’ command. What’s wrong? ¶
  64. I’m having trouble building Subversion under Windows with MSVC++ 6.0. What should I do? ¶
  65. How can I specify a Windows drive letter in a file: URL? ¶
  66. Microsoft Visual Studio 2002 and 2003 seem to have a problem with the «.svn» directory name. What should I do? ¶
  67. I’m having trouble doing write operations to a Subversion repository over a network. ¶
  68. What is the best method of doing a network trace of the conversation between a Subversion client and server? ¶
  69. Why does the svn revert require an explicit target? Why is it not recursive by default? These behaviors differ from almost all the other subcommands. ¶
  70. Why does SVN log say «(no author)» for files committed or imported via Apache (ra_dav)? ¶
  71. I’m getting occasional «Access Denied» errors on Windows. They seem to happen at random. Why? ¶
  72. On FreeBSD, certain operations (especially svnadmin create) sometimes hang. Why? ¶
  73. I can see my repository in a web browser, but ‘svn checkout’ gives me an error about «301 Moved Permanently». What’s wrong? ¶
  74. Compiling with xlc on AIX, I get compilation errors. What’s wrong? ¶
  75. I checked out a directory non-recursively (with -N), and now I want to make certain subdirectories «appear». But svn up subdir doesn’t work. ¶
  76. I am trying to use mod_dav_svn with Apache on Win32 and I’m getting an error saying that the module cannot be found, yet the mod_dav_svn.so file is right there in Apachemodules. ¶
  77. Why aren’t my repository hooks working? ¶
  78. Why does my —diff-cmd complain about ‘-u’? I tried to override it with —extensions, but it’s not working. ¶
  79. How does Subversion cache credentials (plaintext and encrypted)? ¶
  80. Windows
  81. macOS (formerly Mac OS X)
  82. UNIX/Linux
  83. «Subversion was compiled with support for Plaintext password cache but I want to prevent writing passwords to the Plaintext cache.»
  84. «I want to use the Plaintext cache but it wasn’t enabled at compile time.»
  85. Additional Information
  86. I can’t hotbackup my repository, svnadmin fails on files larger than 2Gb! ¶
  87. I cannot see the log entry for the file I just committed. Why? ¶
  88. Why do I get occasional, seemingly inconsistent errors when checking out over http:// from a repository running on MacOS X 10.4 (Tiger)? ¶
  89. I can’t build Subversion from working copy source on Debian GNU/Linux; I get errors at the final link stage. What’s wrong? ¶
  90. I’ve started svnserve, but it doesn’t seem to be listening on port 3690. ¶
  91. I can’t add a directory because Subversion says it’s «already under version control». ¶
  92. Accessing non-public repositories via svnserve is really slow sometimes. ¶
  93. When performing Subversion operations involving a lot of data over SSL, I get the error SSL negotiation failed: SSL error: decryption failed or bad record mac. ¶
  94. I get an error that says «This client is too old». ¶
  95. Why doesn’t svn switch work in some cases? ¶
  96. In Windows, when doing an update with the command-line client, I get an error saying «The system cannot find the path specified» and suggesting that my working copy might be corrupt. But I can update with TortoiseSVN just fine. What’s going on? ¶
  97. I got an error saying «This client is too old to work with working copy ‘. ‘ «. How can I fix it without upgrading Subversion? ¶
  98. I got an error saying «relocation R_X86_64_32 against `a local symbol’ can not be used when making a shared object» when building the Neon library on 64-bit Linux. ¶
  99. Why am I getting an error saying «Could not read response body: Secure connection truncated» when doing a checkout from Apache? ¶
  100. Why am I getting a tree conflict upon update even though no one else has committed conflicting changes? ¶
  101. When performing Subversion operations over SSL, I get the error SSL handshake failed: SSL error code -1/1/336032856. ¶
  102. I get «Error validating server certificate» error even though I configure the SSL certificates correctly in the server. ¶
  103. After importing files to my repository, I don’t see them in the repository directory. Where are they? ¶
  104. When does svn copy create svn:mergeinfo properties? ¶
  105. Passwords which contain some special characters do not seem to be working? ¶
  106. Why does an HTTP(S) URL-to-URL copy or branch/tag operation take a long time? ¶
  107. When performing Subversion operations over SSL, I get the error An error occurred during SSL communication ¶
  108. Developer questions: ¶
  109. How do I run the regression tests in a RAM disk? ¶
  110. How do I run a debugger on dynamic Subversion binaries without having to install them? ¶
  111. How do I run a debugger on Subversion binaries without compiler inlining obfuscating the source? ¶
  112. References: ¶
  113. What are all the HTTP methods Subversion uses? ¶
  114. What’s a ‘bikeshed’? ¶
  115. How do you pronounce «Subversion»? ¶
  116. What’s a ‘baton’? ¶
  117. What do you mean when you say that repository is ‘wedged’? ¶
  118. What is CVSSv3 and what do the score and vector mean? ¶

«An error occurred during SSL communication» when client certificates are required

SVN checkout using TortoiseSVN causes «An error occurred during SSL communication» to appear whenever client certificates are required in conjunction with our new server, if the client certificate is​ already present in the local Windows certificate store. The client certificates are issued by a local CA, the CA certificate is present in the local Windows certificate store, and the CA certificate has not expired.

The problem appears to be 100% reproducible when attempting to checkout from the new server when the client certificate is present in the local Windows certificate store. The problem was not observed before attempting to use the new server. That is, SVN checkout using TortoiseSVN was working fine with the old server with client certificates present in the local Windows certificate store.

Question: Is there any way to modify how the new server is configured, or how clients are configured, to eliminate the problem, without bypassing client certificate authentication?

We used svnadmin dump and svnadmin load to migrate 33 Subversion repositories from one server to another. The directory structure is /Dirname/Reponame1/SVN, /Dirname/Reponame2/SVN, and so forth. This problem was not observed with the old server—only with the new one.

Both hosts are Linux systems running Apache.

Both hosts require client certificates and login via Apache Basic authentication.

The client certificates are issued by a CA that is trusted locally by virtue of the CA certificate loaded in the local Windows certificate store.

Using Tortoise SVN, whenever users attempt to run SVN Checkout, or connect to the new server, they see

«Error: Unable to connect to a repository at URL ‘https://. ‘» and «Error running context: An error occurred during SSL communication.»

The action creates the local folder, but fails to checkout any content.

When client certificate authentication is bypassed by commenting out the «SSLVerifyClient require» directive, the error is not observed.

It is currently a business requirement to enforce both client certificate authentication and login (Apache Basic Authentication).

When the client certificate is removed from the local Windows certificate store, the error does not occur.

As a short-term workaround, browser-based access to the new server is happening by importing the CA certificate and client certificate into Firefox’s certificate store.

We’re trying to find a way back to supporting browser-based access to the SVN repos on the new server by way of Chrome and MS Edge. For this to happen, the client certificate must be present in the local Windows certificate store. But when the client certificate is present in the local Windows certificate store, SVN Checkout referencing the new server produces the error.

Client systems are running Windows 10 TortoiseSVN 1.14.1.29085 — 64 bit, 2021/02/09 16:17:02 ipv6 enabled Subversion 1.14.1, -release apr 1.6.5 serf 1.3.9 OpenSSL 1.1.1i 8 Dec 2020 zlib 1.2.11 SQLite 3.29.0

Old Server cat /etc/redhat-release CentOS release 6.10 (Final)

rpm -qa|grep subv subversion-1.6.11-15.el6_7.x86_64

Repositories accessed via apache using HTTPS. httpd -v Server version: Apache/2.2.15 (Unix) Server built: Jun 19 2018 15:45:13

SSLRequireSSL Dav On DAV svn SVNPath /Projects/Generic/SVN AuthType Basic AuthName «Generic» AuthUserFile /etc/httpd/conf/htpasswd AuthGroupFile /etc/httpd/conf/Groups Require group W2 Contractors SetHandler mod_python

The ssl.conf file contains SSLProtocol all -SSLv2 -SSLv3 SSLVerifyClient require SSLVerifyDepth 1

Powered by Subversion version 1.6.11 (r934486).

New Server Debian GNU/Linux 10 (buster)

apache2 -v Server version: Apache/2.4.38 (Debian) Server built: 2020-08-25T20:08:29

SSLRequireSSL Dav On DAV svn SVNPath /Projects/Generic/SVN AuthType Basic AuthName «Generic» AuthUserFile /etc/apache2/htpasswd AuthGroupFile /etc/apache2/Groups Require group W2 Contractors SetHandler mod_python

The ssl.conf file contains SSLVerifyClient require SSLVerifyDepth 1

Powered by Apache Subversion version 1.10.4 (r1850624).

The ssl.conf file originally contained this, and the problem was present. SSLProtocol All -SSLv2 -SSLv3 -TLSv1 -TLSv1.1

In an effort to make both servers as similar as possible, the SSLProtocol directive was changed to this: SSLProtocol all -SSLv3 +TLSv1.2

According to packet capture of traffic analyzed with Wireshark, packet protocol of new server traffic is listed at the top level as TLSv1.3, but the Server Hello, Change Cipher Spec, Application Data packet and packets that follow it list Version: TLS 1.2 (0x0303) inside the record layer.

Changing the SSLProtocol had no observable effect on the problem.

A user discovered that the TortoiseSVN FAQ item titled «Repeated dialogs to insert smart card» provides a workaround that achieves what we want: now we can leave the client certificate in the Windows certificate store, so Chrome and Edge can find it, and TortoiseSVN still works!

Create the registry key HKCUSoftwareTortoiseSVNOpenSSLCapi as a DWORD and set its value to 0.

Источник

svn https: «ra_serf: Произошла ошибка во время связи SSL»

У меня случайные ошибки вроде этих (svn и https):
— ra_serf: Произошла ошибка во время связи SSL
— Ошибка при получении ОТЧЕТА: во время связи SSL произошла ошибка.

с svn update в репозиториях, размещенных частной компанией. Но эти проблемы появляются только на одной станции. Чтобы завершить обновление, я должен использовать svn cleanup каждый раз после этой ошибки.

Иногда эта проблема появляется сразу после первых обновленных файлов, иногда появляется после многих файлов или вообще не появляется (редко). При том же подключении к Интернету я могу без проблем обновить свою рабочую копию на другом компьютере, используя svn в Linux (например).

Это говорит о том, что у меня что-то не так в настройках (Windows?, конфликт с другим программным обеспечением?). Но я понятия не имею, где и почему. Эти проблемы возникают с TortoiseSVN и с svn командная строка тоже. Тогда это не связано с TortoiseSVN. Я использую последнюю версию SVN (1.8.3), но эта проблема уже была в более старых версиях, таких как 1.7.x.

Я уже пытался удалить и переустановить TortoiseSVN, но это ничего не меняет.

Я использую обновленную версию Windows 7.

задан 10 сен ’13, 07:09

Я получаю эту ошибку, а сейчас. Вы вообще нашли ответ? Я использую настольный компьютер и ноутбук, и если я регистрируюсь с одного и пытаюсь обновить на другом, я получаю сообщение об ошибке. Я обновил обе версии TortoiseSVN до одних и тех же версий, и все равно не повезло. — Richard Edwards

Привет, до сих пор нет ответа. Я обновляю свои рабочие копии svn cleanup && svn up в цикле. Это очень раздражает. — Skywalker13

Я действительно нашел ответ на свою проблему. У меня есть два VPN-клиента, установленных на моей виртуальной машине для разных клиентов, и они, похоже, конфликтуют, если они оба не работают одновременно. — Richard Edwards

Ну. я так и не нашел причину этой проблемы. и мы в основном перешли на git, тогда для меня это больше не проблема. — Skywalker13

Источник

Как настроить SSL для subversion?

svn: E170013: Unable to connect to a repository at URL ‘https://cryptosvn.pk/svn_wombat’
svn: E120171: Error running context: An error occured during SSL communication

DAV svn
SVNPath /var/svn-repos/project_wombat
AuthType Basic
AuthName «Subversion Repository»
AuthUserFile /etc/apache2/dav_svn.passwd
Require valid-user
SSLRequireSSL

Ошибка при выполнении команды: svn —non-interactive —config-dir /tmp log —xml —quiet ‘file:///var/svn_repos/@’ —limit 1
svn: E180001: Unable to connect to a repository at URL ‘file:///var/svn_repos/’
svn: E180001: Unable to open an ra_local session to URL
svn: E180001: Unable to open repository ‘file:///var/svn_repos/’

Может у кого то есть актуальный мануал по этому делу??

При установке WebSVN apt-get выдал ошибку

failed to create symbolic link ‘/etc/apache2/conf.d/websvn’: No such file or directory

  • Вопрос задан более трёх лет назад
  • 960 просмотров

Оценить 2 комментария

Если сервер SVN нужно поднять в локалке, подразумевается, что хранилище тоже должно быть в локалке, то есть у вас должен быть сам репозиторий в виде набора файлов и каталогов или дампа.

Начать надо с того, что поместить репозиторий в нужное место простым копированием или развернуть из дампа или командами svnadmin create и svnadmin load . Дамп внешнего хранилища можно снять командой svnrdump .

В созданном хранилище нужно настроить права или хотя бы проверить conf-файл хранилища. После этого можно настраивать Apache или поднимать выделенный сервер Subversion, работающий по протоколу svn:// . Я использую второй вариант, поэтому по Apache не подскажу.

Источник

Apache Subversion FAQ

These are the questions related to the currently supported versions. For older questions, see below.

Table of Contents

General questions:

How-to:

Troubleshooting:

Developer questions:

References:

General questions: ¶

What is Subversion? Why does it exist? ¶

Subversion is an open-source, centralized version control system. See Our Vision on our front page to know why Subversion exists. Want to take a quick look? See Quick Start.

Is Subversion proprietary software? ¶

No, Subversion is open source / free software. Several companies (CollabNet, WANdisco, VisualSVN, elego, . ) pay or have paid the salaries of some full-time developers, but the software carries an Apache License which is fully compliant with the Debian Free Software Guidelines. In other words, you are free to download, modify, and redistribute Subversion as you please; no permission from any company or any person is required.

How stable is Subversion? ¶

Subversion is very stable. It is mature software, with strong compatibility guarantees. The Subversion development community cares deeply about its stability and robustness.

Subversion has been in development since 2000, and became self-hosting after one year. A year later when we declared «alpha», Subversion was already being used by dozens of private developers and shops for real work. After that, it was two more years of bugfixing and stabilization until we reached 1.0. Most other projects probably would have called the product «1.0» much earlier, but we deliberately decided to delay that label as long as possible. We were aware that many people were waiting for a 1.0 before using Subversion, and had very specific expectations about the meaning of that label. So we stuck to that same standard.

What is Subversion’s client/server interoperability policy? ¶

The client and server are designed to work as long as they aren’t more than one major release version apart. For example, any 1.X client will work with a 1.Y server. However, if the client and server versions don’t match, certain features may not be available. Such limitations are always documented in the release notes of our releases.

Our client/server interoperability policy is documented in the «Compatibility» section of the Subversion Community Guide.

What operating systems does Subversion run on? ¶

All modern flavors of Unix, Windows, BeOS, OS/2, macOS.

Subversion is written in ANSI C and uses APR, the Apache Portable Runtime library, as a portability layer. The Subversion client will run anywhere APR runs, which is most places. The Subversion server (i.e., the repository side) is the same, except that it will not host a Berkeley DB repository on Win9x platforms (Win95/Win98/WinME), because Berkeley DB has shared-memory segment problems on Win9x. FSFS repositories (introduced in version 1.1) do not have this restriction; however, due to a limitation in Win9x’s file-locking support, they also don’t work in Win9x.

To reiterate, the Subversion client can be run on any platform where APR runs. The Subversion server can also be run on any platform where APR runs, but cannot host a repository on Win95/Win98/WinMe.

What’s all this about a new filesystem? Is it like ext2? ¶

No. The «Subversion Filesystem» is not a kernel-level filesystem that one would install in an operating system. Instead, it is Subversion’s repository interface, which is a «versioned filesystem» in the sense that it stores a directory tree whose state is remembered from revision to revision. Writing programs to access the repository is similar to writing programs that use other filesystem APIs. The main difference is that this particular filesystem doesn’t lose data when written to; old tree states can be retrieved as easily the most recent state.

What kind of hardware do I need to run a Subversion server? ¶

Server requirements depend on many factors, such as number of users, frequency of commits and other server related operations, repository size, and the load generated by custom repository hooks. When using Apache, it is likely that Apache itself will be the biggest factor in memory usage.

Remember to take in account other applications running on the same server; for example, repository browsers use resources too, independently of Subversion itself.

In general, you can expect to need much less server memory than you would for comparable CVS repositories.

I heard that Subversion is an Apache extension? What does it use for servers? ¶

No. Subversion is a set of libraries. It comes with a command-line client that uses them. There are two different Subversion server processes: either svnserve, which is small standalone program similar to cvs pserver, or Apache httpd-2.0 using a special mod_dav_svn module. svnserve speaks a custom protocol, while mod_dav_svn uses WebDAV as its network protocol. See chapter 6 in the Subversion book to learn more.

Does this mean I have to set up Apache to use Subversion? ¶

The short answer: no.

The long answer: if you just want to access a repository, then you only need to build a Subversion client. If you want to host a networked repository, then you need to set up either Apache2 or an «svnserve» server.

For more details about setting up a network accessible Subversion server, see chapter 6 in the Subversion book.

I run Apache 1.x right now, and can’t switch to Apache 2.0 just to serve Subversion repositories. Does that mean I can’t run a Subversion server? ¶

No, you can run svnserve as a Subversion server. It works extremely well.

If you want WebDAV and all the other «goodies» that come with the Apache server, then yes, you’ll need Apache 2.0. It’s always an option to run Apache 2.0 on a different port while continuing to run Apache 1.x on port 80. Different versions of Apache can happily coexist on the same machine. Just change the Listen directive in httpd.conf from «Listen 80» to «Listen 8080» or whatever port number you want, and make sure to specify that port when you publish your repository URL (e.g., http://svn.mydomain.com:8080/repos/blah/trunk/).

Why don’t you do X, just like SCM system Y? ¶

Subversion is not attempting to imitate all the features of every SCM system out there. See Our Vision.

First, note that Subversion has no concept of projects. The repository just stores a versioned directory tree — you may consider certain sub-trees to be projects, but Subversion doesn’t treat them differently from any other sub-tree. Thus, the interpretation of what constitutes a project in the repository is left entirely up to the users. (This is similar to how branches and tags are conventions built on top of copies, instead of being basic concepts built into Subversion itself.)

Each time you commit a change, the repository stores a new revision of that overall repository tree, and labels the new tree with a new revision number. Of course, most of the tree is the same as the revision before, except for the parts you changed.

The new revision number is a sequential label that applies to the entire new tree, not just to the files and directories you touched in that revision. However, colloquially, a revision number is used to refer to the change committed in that revision; for example, «the change in r588» («r588» is shorthand for «revision 588») really means «the difference between repository trees 587 and 588», or put another way, «the change made to tree 587 to produce tree 588».

Thus, the advancing revision number marks the progress of the repository as a whole; you generally can’t gauge the progress of a particular project within the repository by watching the revision number. Also, the revision number should not be used as the publicly-visible release number of a particular project in the repository. For that, you should devise some other mechanism of distinguishing releases, such as using tags.

Does Subversion have Changesets? ¶

The question is a bit loaded, because everyone seems to have a slightly different definition of «changeset», or a least a slightly different expectation of what it means for a version control system to have «changeset features».

For the purposes of this discussion, here’s a simple definition of changeset: it’s a collection of changes with a unique name. The changes might include textual edits to file contents, modifications to tree structure, or tweaks to metadata. In more common speak, a changeset is just a patch with a name you can refer to.

Subversion manages versioned trees as first order objects (the repository is an array of trees), and the changesets are things that are derived (by comparing adjacent trees.) Systems like Arch or Bitkeeper are built the other way around: they’re designed to manage changesets as first order objects (the repository is a bag of patches), and trees are derived by composing sets of patches together.

Neither philosophy is better in absolute terms: the debate goes back at least 30 years. The two designs are better or worse for different types of software development. We’re not going to discuss that here. Instead, here’s an explanation of what you can do with Subversion.

In Subversion, a global revision number ‘N’ names a tree in the repository: it’s the way the repository looked after the Nth commit. It’s also the name of an implicit changeset: if you compare tree N with tree N-1, you can derive the exact patch that was committed.

For this reason, it’s easy to think of «revision N» as not just a tree, but a changeset as well. If you use an issue tracker to manage bugs, you can use the revision numbers to refer to particular patches that fix bugs — for example, «this issue was fixed by revision 9238.» Somebody can then run ‘svn log -r9238’ to read about the exact changeset which fixed the bug, and run ‘svn diff -r9237:9238’ to see the patch itself. And svn’s merge command also uses revision numbers. You can merge specific changesets from one branch to another by naming them in the merge arguments: ‘svn merge -r9237:9238 branchURL’ would merge changeset #9238 into your working copy.

This is nowhere near as complicated as a system built around changesets as primary objects, but it’s still a vast convenience over CVS.

When’s the next release? ¶

Does Subversion support symlinks? ¶

Subversion 1.1 (and later) has the ability to put a (unix) symlink under version control, via the usual svn add command.

Details: the Subversion repository has no internal concept of a symlink. It stores a «versioned symlink» as an ordinary file with an ‘svn:special’ property attached. The svn client (on unix) sees the property and translates the file into a symlink in the working copy.

On Windows, the svn client currently has no support for translating a versioned symlink into one of the Windows symlink variants (junction points etc.). The checked out object appears as a normal file. One of the issues that make this difficult to support in general is that by default only Administrators can create symlinks on Windows. For more information, see issue SVN-3570.

I need a high resolution version of the Subversion logo, where can I get it? ¶

The following versions of the Subversion logo are available:

Some additional artwork is available in Subversion’s source tree under notes/logo and in this Web site.

I have other questions. Where can I get more information? ¶

If you don’t find an answer after browsing this FAQ, there are several other resources available:

  • The Subversion Book (free to read online)
  • The Subversion Users mailing listusers@subversion.apache.org (full details including public archives, subscribe, unsubscribe; moderated)
  • The Subversion Users IRC channel #svn on irc.libera.chat (use the web interface or Matrix or any IRC software; archived here). (The IRC channel was hosted on freenode.net until May 2021. It may still exist but it is no longer recognized as an official channel.)
  • svnforum.org, an unofficial web-based forum with approximately the same target audience as the mailing list

Why isn’t my post showing up on the mailing list? ¶

Our mailing lists are moderated to prevent spam from getting through, so your first post to any list may be delayed, until the moderator has a chance to let it through. Once that post is allowed through, all subsequent posts from the same address are automatically approved, so you should experience no more delay. Of course, if your sending address changes, then you’ll have to go through moderation again.

How is Subversion affected by changes in Daylight Savings Time (DST)? ¶

Changes to DST do not require any special changes or fixes to the Subversion code. Subversion primarily uses dates/times to record when changes have been committed to the repository. This code runs on the server and gets the current date/time from the operating system and converts it to UTC using routines provided by the operating system. The Subversion client receives these dates from the server and converts them to the local time zone for display using routines provided by the client operating system. As such, you should only need to install the patches provided for your operating system and really you should only need to make sure the time on the server is properly adjusted for DST.

How is Subversion affected by SHA-1 hash collisions? ¶

Publication of the first known SHA-1 collision by Google and CWI unveiled a couple of related issues in Subversion’s use of SHA-1. Subversion’s core does not rely on SHA-1 for content indexing, but it was being used for such purposes in the following supplementary features:

  • repository data deduplication feature (the «rep cache»), and
  • content deduplication feature in the working copy.

Speaking of the repository data deduplication feature, this can result in inability to access files with colliding SHA-1 values or cause data loss for such files. To prevent different content with identical SHA-1 from being stored in a repository, upgrade to 1.9.6 or 1.8.18 which, by default, prevent storing data with such collisions. See our SHA-1 advisory for details.

Until the upgrade to these new releases is available, Unix-based servers can use the pre-commit hook found here. As an aside, we welcome Windows developers to submit a pre-commit script for the Windows platform. More information on submission can be found here.

The working copy uses SHA-1 for deduplication of the stored content, and for performance reasons a client will avoid fetching content with the same SHA-1 checksum. The workaround for this issue is to prevent storage of the colliding objects in the first place, via upgrade to 1.9.6 or installation of the aforementioned pre-commit script.

Storing content with SHA-1 collisions is not a supported use case. If you have content with colliding SHA-1 hash values, we suggest you transform it via gzip before committing it to avoid the collision altogether. Moreover, an upgrade to 1.9.6 to prevent future insertion of duplicates is highly recommended.

How-to: ¶

How do I check out the Subversion code? ¶

Use the Subversion client:

That will check out a copy of the Subversion source tree into a directory named subversion on your local machine.

How do I create a repository? How do I import data into it? ¶

For even more detail about repository setup and administration, read chapter 5 in The Subversion Book.

How do I convert an existing CVS repository into a Subversion repository? ¶

The cvs2svn conversion tool seems to be what most people use. The sources are hosted at https://github.com/mhagger/cvs2svn. If you are running a Linux or BSD-based system, your distribution might have a cvs2svn package.

If cvs2svn doesn’t meet your needs, you might try refinecvs written by Lev Serebryakov at http://lev.serebryakov.spb.ru/refinecvs/.

What if I’m behind a proxy? ¶

The Subversion client can go through a proxy, if you configure it to do so. First, edit your «servers» configuration file to indicate which proxy to use. The files location depends on your operating system. On Linux or Unix it is located in the directory «

/.subversion». On Windows it is in «%APPDATA%Subversion». (Try «echo %APPDATA%», note this is a hidden directory.)

There are comments in the file explaining what to do. If you don’t have that file, get the latest Subversion client and run any command; this will cause the configuration directory and template files to be created.

Next, you need to make sure the proxy server itself supports all the HTTP methods Subversion uses. Some proxy servers do not support these methods by default: PROPFIND, REPORT, MERGE, MKACTIVITY, CHECKOUT. In general, solving this depends on the particular proxy software. For Squid, the config option is

(Squid 2.4 and later already knows about PROPFIND.)

See also «What are all the HTTP methods Subversion uses?» for advice on additional HTTP methods to allow through your proxy.

If it’s difficult or impossible to get the proxy to allow Subversion traffic, but you want to check out the Subversion sources, you may be able to go around the proxy. Some proxies that filter port 80 nevertheless allow anything on port 81. In many other cases proxies don’t filter https as strict as they filter http. The svn.apache.org repository server listens on https as well as http. Try:

and maybe the proxy will let you through.

Of course, your svn client will have to have been built with ssl support. You can check to see whether the ‘https’ scheme is supported by running svn —version.

My admins don’t want me to have a HTTP server for Subversion. What can I do if I still want remote usage? ¶

A simple option is to use the svnserve server instead of Apache. See chapter 6 in the Subversion book for details.

However, if your admins don’t want you to run Apache, it’s very likely they don’t want you to run a custom server process on port 3690 either! So the rest of this answer assumes that your admins are okay with you using an existing SSH infrastructure.

If you previously used CVS, you may have used SSH to login to the CVS server. The ra_svn Subversion access method is the equivalent way of doing this with Subversion. Just use the «svn+ssh» prefix to your Subversion repository URL.

This makes your SSH program launch a private ‘svnserve’ process on the remote box, which accesses the repository as your UID and tunnels the information back over the encrypted link.

However, another solution that can be used instead is to leverage SSH port forwarding to connect to the protected server via ra_dav. You would connect via SSH to a machine behind your firewall that can access your Subversion server. Note that this SSH server does not have to be the same as where Subversion is installed. It can be, but it doesn’t have to be.

Then, you create a local port forward that connects to the HTTP server that houses your Subversion repository. You would then ‘connect’ to the Subversion repository via this local port. Then, the request will be sent ‘tunneled’ via SSH server to your Subversion server.

An example: a Subversion ra_dav setup is behind your company firewall at 10.1.1.50 (call it svn-server.example.com). Your company allows SSH access via publicly accessible ssh-server.example.com. Internally, you can access the Subversion repository via http://svn-server.example.com/repos/ours.

Example: client connecting to ssh-server with port-forwarding and checking out via the port forward

Note that your svn-server.example.com could also have its httpd instance running on an unprivileged port by a non-trusted user. This will allow your Subversion server not to require root access.

Joe Orton notes

Some links on SSH port forwarding

How do I manage several different projects under Subversion? ¶

It depends upon the projects involved. If the projects are related, and are likely to share data, then it’s best to create one repository with several subdirectories like this:

If the projects are completely unrelated, and not likely to share data between them, then it’s probably best to create separate and unrelated repositories.

The difference between these two approaches is this (as explained by Ben Collins-Sussman ):

  • In the first case, code can easily be copied or moved around between projects, and the history is preserved. (‘svn cp/mv’ currently only works within a single repository.)
  • Because revision numbers are repository-wide, a commit to any project in the first case causes a global revision bump. So it might seem a bit odd if somebody has ‘projB’ checked out, notices that 10 revisions have happened, but projB hasn’t changed at all. Not a big deal, really. Just a little weird at first. This used to happen to svn everytime people committed to rapidsvn, when rapidsvn was in the same repository. 🙂
  • The second case might be easier to secure; it’s easier to insulate projects from each other (in terms of users and permissions) using Apache’s access control. In the 1st case, you’ll need a fancy hook script in the repository that distinguishes projects («is this user allowed to commit to this particular subdir?») Of course, we already have such a script, ready for you to use.

How do I merge two completely separate repositories? ¶

If you don’t care about retaining all the history of one of the repositories, you can just create a new directory under one project’s repository, then import the other.

If you care about retaining the history of both, then you can use ‘svnadmin dump’ to dump one repository, and ‘svnadmin load’ to load it into the other repository. The revision numbers will be off, but you’ll still have the history.

also explains a method using svn’s equivalent to CVS modules:

As long as the merging takes place in separate directory trees, you can use svn’s version of CVS modules.

Set the svn:externals property on a directory to checkout directories from other repositories whenever the original directory is checked out. The repository remains separate, but in the working copy it appears that they have been merged. If you commit to the imported directory, it will affect the external repository.

The merge isn’t completely clean: the import only affects working copies, so you won’t be able to use a URL in the first repository to access modules imported from the second. They remain separate URLs.

There are also some helpful tools floating around on the internet, to select and reorder revisions when merging several repositories. For instance the svn-merge-repos.pl perl script for basic operations and the SvnDumpTool python classes for advanced reorganisations.

Should I store my repository / working copy on a NFS server? ¶

If you are using the FSFS repository back end (which has been the default since Subversion 1.2), then storing the repository on a modern NFS server (i.e., one that supports locking) should be fine.

If you are using a repository with the Berkeley DB back end (default for repositories created with Subversion 1.0 and 1.1, not the default thereafter), we recommend not storing the repository on a remote filesystem (for example, NFS). While Berkeley DB databases and log files can be stored on remote filesystems, the Berkeley DB shared region files cannot be stored on a remote filesystem, so the repository may be safely accessed by only a single filesystem client, and not all Subversion functionality will be available to even that one client.

Working copies can be stored on NFS (one common scenario is when your home directory is on a NFS server). On Linux NFS servers, due to the volume of renames used internally in Subversion when checking out files, some users have reported that ‘subtree checking’ should be disabled (it’s enabled by default). Please see NFS Howto Server Guide and exports(5) for more information on how to disable subtree checking.

We’ve had at least one report of working copies getting wedged after being accessed via SMB. The server in question was running a rather old version of Samba (2.2.7a). The problem didn’t recur with a newer Samba (3.0.6).

How do I set repository permissions correctly? ¶

Try to have as few users access the repository as possible. For example, run apache or ‘svnserve -d’ as a specific user, and make the repository wholly owned by that user. Don’t allow any other users to access the repository via file:/// urls, and be sure to run ‘svnlook’ and ‘svnadmin’ only as the user which owns the repository.

If your clients are accessing via file:/// or svn+ssh://, then there’s no way to avoid access by multiple users. In that case, read the last section in chapter 6, and pay particular attention to the «checklist» sidebar at the bottom. It outlines a number of steps to make this scenario safer.

Note for SELinux / Fedora Core 3+ / Red Hat Enterprise users:

In addition to regular Unix permissions, under SELinux every file, directory, process, etc. has a ‘security context’. When a process attempts to access a file, besides checking the Unix permissions the system also checks to see if the security context of the process is compatible with the security context of the file.

Fedora Core 3, among other systems, comes with SELinux installed by default, configured so that Apache runs in a fairly restricted security context. To run Subversion under Apache, you have to set the security context of the repository to allow Apache access (or turn off the restrictions on Apache, if you think all this is overkill). The chcon command is used to set the security context of files (similarly to how the chmod sets the traditional Unix permissions). For example, one user had to issue this command

to set the security context to be able to successfully access the repository.

How do I completely remove a file from the repository’s history? ¶

There are special cases where you might want to destroy all evidence of a file or commit. (Perhaps somebody accidentally committed a confidential document.) This isn’t so easy, because Subversion is deliberately designed to never lose information. Revisions are immutable trees which build upon one another. Removing a revision from history would cause a domino effect, creating chaos in all subsequent revisions and possibly invalidating all working copies.

The project has plans, however, to someday implement an svnadmin obliterate command which would accomplish the task of permanently deleting information. (See issue 516.)

In the meantime, your only recourse is to svnadmin dump your repository, then pipe the dumpfile through svndumpfilter (excluding the bad path) into an svnadmin load command. See chapter 5 of the Subversion book for details about this.

An alternative approach is to replicate the repository with svnsync after configuring path-based authorization rules that deny read access to any paths that need to be filtered from history. Unlike svndumpfilter, svnsync will automatically translate copy operations with an unreadable source path into normal additions, which is useful if history involving copy operations needs to be filtered.

How do I change the log message for a revision after it’s been committed? ¶

Log messages are kept in the repository as properties attached to each revision. By default, the log message property (svn:log) cannot be edited once it is committed. That is because changes to revision properties (of which svn:log is one) cause the property’s previous value to be permanently discarded, and Subversion tries to prevent you from doing this accidentally. However, there are a couple of ways to get Subversion to change a revision property.

The first way is for the repository administrator to enable revision property modifications. This is done by creating a hook called «pre-revprop-change» (see this section in the Subversion book for more details about how to do this). The «pre-revprop-change» hook has access to the old log message before it is changed, so it can preserve it in some way (for example, by sending an email). Once revision property modifications are enabled, you can change a revision’s log message by passing the —revprop switch to svn propedit or svn propset, like either one of these:

where N is the revision number whose log message you wish to change, and URL is the location of the repository. If you run this command from within a working copy, you can leave off the URL.

The second way of changing a log message is to use svnadmin setlog. This must be done by referring to the repository’s location on the filesystem. You cannot modify a remote repository using this command.

where REPOS_PATH is the repository location, N is the revision number whose log message you wish to change, and FILE is a file containing the new log message. If the «pre-revprop-change» hook is not in place (or you want to bypass the hook script for some reason), you can also use the —bypass-hooks option. However, if you decide to use this option, be very careful. You may be bypassing such things as email notifications of the change, or backup systems that keep track of revision properties.

How do I submit a patch for Subversion? ¶

Once you’ve digested that, send a mail to the dev list with the word [PATCH] and a one-line description in the subject, and include the patch inline in your mail (unless your MUA munges it up totally). Then a committer will pick it up, apply it (making any formatting or content changes necessary), and check it in.

The basic process looks like this:

Of course, the email you send should contain a nice long explanation about what the patch does, as per the Subversion Community Guide, but you already know that, since you read and completely understood it before actually hacking the code, right? 🙂

Looking for something to do? Take a look at our ideas page.

How can I do an in-place ‘import’ (i.e. add a tree to Subversion such that the original data becomes a working copy directly)? ¶

Suppose, for example, that you wanted to put some of /etc under version control inside your repository:

This takes advantage of a not-immediately-obvious feature of svn checkout: you can check out a directory from the repository directly into an existing directory. Here, we first make a new empty directory in the repository, and then check it out into /etc, transforming /etc into a working copy. Once that is done, you can use normal svn add commands to select files and subtrees to add to the repository.

If the entire contents of the directory shall be imported, rather than a subset of contents, this shorter sequence of commands can be used to perform the import and then transform the directory into a Subversion working copy:

There is an issue filed for enhancing svn import to be able to convert the imported tree to a working copy automatically; see issue 1328.

What is this «dump/load cycle» people sometimes talk about when upgrading a Subversion server? ¶

Subversion’s repository database schema has changed occasionally during development. To take advantage of new features, you may have to dump and load the repository to recreate the back-end database. However, most upgrades of Subversion do not involve a dump and load. When one is required, the release notes and the CHANGES file for the new version will carry prominent notices about it. If you don’t see such a notice, then there has been no schema change, and no dump/load is necessary.

An alternative to dump/load is using svnsync to replicate the repository into a new one. This is a bit slower, but is more flexible, and has some extra normalization-features which are not (yet) available with dump/load (svnsync normalizes properties to LF line-endings on the fly and has a —source-prop-encoding option to convert them to UTF-8, which is required in newer repository formats — see below for how to handle this with dump/load).

Note: Both dump/load and svnsync only cover the repository database, not the repository hook scripts, configuration files and locks. These need to be copied over manually from source to target (see below in the «complex procedure»). If you need to copy the complete repository, without rebuilding the back-end database, svnadmin hotcopy may be a better option.

For small repositories that can afford some downtime, this is a simple dump/load procedure to upgrade from Subversion version X to Y ( see below for a more complex procedure with minimal downtime for larger repositories):

  1. Shut down svnserve, Apache, and anything else that might be accessing the repository.
  2. svnadmin dump /path/to/repository > dumpfile.txt, using version X of svnadmin.
  3. mv /path/to/repository /path/to/saved-old-repository
  4. Now upgrade to Subversion Y (i.e., build and install Y, replacing X).
  5. svnadmin create /path/to/repository, using version Y of svnadmin.
  6. svnadmin load /path/to/repository NEXTREV is this last revision + 1)
  7. svnadmin dump —incremental -rNEXTREV:HEAD -M 1024 | svnadmin load -M 1024 NEWRPOS
  8. Make OLDREPOS read-only or completely unavailable C:Program FilesPosix Toolsbinvi you would want to set the variable as follows:

Note that there is no need to escape the quotes in the Windows shell as they are not part of the syntax for the set command.

On UNIX systems you would need to follow your shell’s specific methods for setting the variable. For example, in a bash shell, the following should work:

In case a command line option would be needed for the invocation of the editor, just add that after the editor name in the SVN_EDITOR environment variable just like you would use on the command line. For example, if the options -nx -r would be wanted for the above editors, the following will provide those options:

Note that SVN_EDITOR is the Subversion specific environment variable setting for the editor selection. Subversion also supports using the more generic EDITOR variable but if you need special behaviors with Subversion it is best to use the SVN_EDITOR variable.

I’m managing a website in my repository. How can I make the live site automatically update after every commit? ¶

This is done all the time, and is easily accomplished by adding a post-commit hook script to your repository. Read about hook scripts in Chapter 5 of the book. The basic idea is to make the «live site» just an ordinary working copy, and then have your post-commit hook script run ‘svn update’ on it.

In practice, there are a couple of things to watch out for. The server program performing the commit (svnserve or apache) is the same program that will be running the post-commit hook script. That means that this program must have proper permissions to update the working copy. In other words, the working copy must be owned by the same user that svnserve or apache runs as — or at least the working copy must have appropriate permissions set.

If the server needs to update a working copy that it doesn’t own (for example, user joe’s

/public_html/ area), one technique is create a +s binary program to run the update, since Unix won’t allow scripts to run +s. Compile a tiny C program:

. and then chmod +s the binary, and make sure it’s owned by user ‘joe’. Then in the post-commit hook, add a line to run the binary.

If you have problems getting the hook to work, see «Why aren’t my repository hooks working?».

Also, you’ll probably want to prevent apache from exporting the .svn/ directories in the live working copy. Add this to your httpd.conf:

Finally, if the working copy to be updated isn’t on the same machine as the Subversion server, svnpubsub can be used on the Subversion server to advertise the commit to a listening svnwcsub client on the Web server.

How do I check out a single file? ¶

Subversion does not support checkout of a single file, it only supports checkout of directory structures.

However, you can use ‘svn export’ to export a single file. This will retrieve the file’s contents, it just won’t create a versioned working copy.

How do I detect adds, deletes, copies and renames in a working copy after they’ve already happened? ¶

You don’t. It’s a bad idea to try.

The basic design of the working copy has two rules: (1) edit files as you please, and (2) use a Subversion client to make any tree-changes (add, delete, move, copy). If these rules are followed, the client can sucessfully manage the working copy. If renames or other rearrangements happen outside of Subversion, then the UI has been violated and the working copy might be broken. The client cannot guess what happened.

People sometimes run into this problem because they want to make version control «transparent». They trick users into using a working copy, then have a script run later that tries to guess what happened and run appropriate client commands. Unfortunately, this technique only goes a short distance. ‘svn status’ will show missing items and unversioned items, which the script can then automatically ‘svn rm’ or ‘svn add’. But if a move or copy has happened, you’re out of luck. Even if the script has a foolproof way of detecting these things, ‘svn mv’ and ‘svn cp’ can’t operate after the action has already occurred.

In summary: a working copy is wholly under Subversion’s control, and Subversion wasn’t designed to be transparent. If you’re looking for transparency, try setting up an apache server and using the «SVNAutoversioning» feature described in appendix C of the book. This will allow users to mount the repository as a network disk, and any changes made to the volume cause automatic commits on the server.

How do I run svnserve as a service on Windows? ¶

For versions 1.4.0 and later, you can find instructions here.

How do I convert my repository from using BDB to FSFS or from FSFS to BDB? ¶

There are three steps:

  1. A dump/load from the old format to the new one.
  2. Copy the hook scripts.
  3. Copy the configuration files.

Say you have a repository /svn/myrepos which is using the BDB backend and you would like to switch to using the FSFS backend:

  1. Close down your server so that the data cannot change during this procedure.
  2. Make a new repository specifying the fsfs backend (it is the default from 1.2 onwards), e.g., svnadmin create /svn/myreposfsfs —fs-type fsfs.
  3. Pipe the output of a dump from /svn/myrepos to the input of a load into /svn/myreposfsfs, e.g., svnadmin dump /svn/myrepos -q | svnadmin load /svn/myreposfsfs. Windows users should dump to a file and load from that file in two separate steps.
  4. Copy any hook scripts which are active in /svn/myrepos/hooks into /svn/myreposfsfs/hooks. Don’t mindlessly copy everything, the templates generated by Subversion may have changed.
  5. Compare the template scripts which the svnadmin create command put in /svn/myreposfsfs/hooks with those in /svn/myrepos/hooks and incorporate any changes which you would like into your active hook scripts.
  6. Copy configuration files from /svn/myrepos/conf into /svn/myreposfsfs/conf (and don’t forget a password file, if you use one). Or you might instead want to merge the changes that you made to your configuration files into the new default ones.
  7. Rename /svn/myrepos to /svn/myreposbdb and then /svn/myreposfsfs to /svn/myrepos ensuring that the file permissions are the same as those that the BDB version had.
  8. Restart the server.

Once you are happy that all is well with your new repository delete the old one.

To do the reverse and migrate from FSFS to BDB change the svnadmin create command to specify BDB.

How does Subversion handle binary files? ¶

When you first add or import a file into Subversion, the file is examined to determine if it is a binary file. Currently, Subversion just looks at the first 1024 bytes of the file; if any of the bytes are zero, or if more than 15% are not ASCII printing characters, then Subversion calls the file binary.

If Subversion determines that the file is binary, the file receives an svn:mime-type property set to «application/octet-stream». (You can always override this by using the auto-props feature or by setting the property manually with svn propset.)

Subversion 1.7 and later can optionally be compiled with support for libmagic to detect MIME types of binary files which are added to version control. This feature is used only for binary files for which no MIME type is found via auto-props or the mime-types-file configuration option. If libmagic identifies a file as a text file, Subversion will treat the file as a text file by default.

Subversion treats the following files as text:

  • Files with no svn:mime-type
  • Files with a svn:mime-type starting «text/»
  • Files with a svn:mime-type equal to «image/x-xbitmap»
  • Files with a svn:mime-type equal to «image/x-xpixmap»

All other files are treated as binary, meaning that Subversion will:

  • Not attempt to automatically merge received changes with local changes during svn update or svn merge
  • Not show the differences as part of svn diff
  • Not show line-by-line attribution for svn blame

In all other respects, Subversion treats binary files the same as text files, e.g. if you set the svn:keywords or svn:eol-style properties, Subversion will perform keyword substitution or newline conversion on binary files.

Note that whether or not a file is binary does not affect the amount of repository space used to store changes to that file, nor does it affect the amount of traffic between client and server. For storage and transmission purposes, Subversion uses a diffing method that works equally well on binary and text files; this is completely unrelated to the diffing method used by the ‘svn diff’ command.

How can I make svn diff show me just the names of the changed files, not their contents? ¶

svn diff doesn’t have an option to do this, but

  • If you only are interested in the diffs between, say, revision 10 and the revision just before it, does exactly what you want;
  • otherwise, if you’re using Unix, this works for any range of revisions:

Version 1.4 of the svn diff command will have a «—summarize» option.

How can I use wildcards or globbing to move many files at once? ¶

You want to do something like

but it fails with

. or some other inscrutable error message.

Subversion doesn’t expand wildcards like «*» in URL arguments. (Technically speaking, Subversion does not expand wildcards in local paths either, but on most operating systems the shell expands wildcards in local paths in the command line before passing the resulting list to Subversion.)

You have to generate the list of source URLs yourself. You could do it like this (in Bash):

In Subversion v1.4 and earlier, Subversion did not allow you to «cp» and «mv» multiple paths or URLs in one command. You have to issue multiple commands. If you happen to have a working copy that contains all the source files as well as the destination directory, then you can exploit your shell’s wildcard feature to do the move, like this (for Bash):

In any case, you can always accumulate a list of the names of the source files, and then run «svn mv» on each item in that list, like this:

Note, however, that this will generate one commit per source file; that’s in contrast to the above method (using a working copy) which generates just one commit total.

There is a program called «svnmucc» (previously «mucc»), whose source is distributed with Subversion, that enables you to combine multiple commands into one commit. See the Tools and Contrib page.

How can I maintain a modified version (a «vendor branch») of third-party software using Subversion? ¶

People frequently want to use Subversion to track their local changes to third-party code, even across upgrades from the third-party — that is, they want to maintain their own divergent branch, while still incorporating new releases from the upstream source. This is commonly called a vendor branch (the term long predates Subversion), and the techniques for maintaining one in Subversion are described here.

If the vendor code is hosted in a remote Subversion repository, then you can use Piston to manage your copy of the vendor’s code.

As a last resort, if using svn_load_dirs.pl is taking too much time or you’re looking for the lazy solution, see also Jon Stevens’ step-by-step explanation at Subversion Vendor Branches Howto. This solution does not make use of the space saving features in the Subversion backend when you copy new code over old code; in this solution, each import of a vendor code gets an entire new copy and there is no space savings for identical files.

How do I make the contents of a previous revision become HEAD again? ¶

Troubleshooting: ¶

Every time I try to run a svn command, it says my working copy is locked. Is my working copy corrupt? ¶

Your working copy is not corrupt, nor is your data lost. Subversion’s working copy is a journaling system, meaning that it logs everything it is about to do before it does so. If the svn client program is interrupted violently (segfault or killed, not with Control-C), then one or more lockfiles are left behind, along with logfiles describing unfinished business. (The `svn status’ command will show an ‘L’ next to locked directories.) Any other process that attempts to access the working copy will fail when it sees the locks. To awaken your working copy, you need to tell the svn client to finish the work. Simply run:

I’m trying to commit, but Subversion says my working copy is out of date? ¶

Three kinds of situation that can cause this:

Debris from a failed commit is littering your working copy.

You may have had a commit that went sour between the time the new revision was added in the server and the time your client performed its post-commit admin tasks (including refreshing your local text-base copy). This might happen for various reasons including (rarely) problems in the database back end or (more commonly) network dropouts at exactly the wrong time.

If this happens, it’s possible that you have already committed the very changes you are trying now to commit. You can use ‘svn log -rHEAD’ to see if your supposed-failed commit actually succeeded. If it did, run ‘svn revert’ to revert your local changes, then run ‘svn update’ to get your own changes back from the server. (Note that only ‘svn update’ brings your local copies up-to-date; revert doesn’t do that.)

When Subversion commits, the client only bumps the revision numbers of the nodes the commit touches, not all nodes in the working copy. This means that in a single working copy, the files and subdirectories might be at different revisions, depending on when you last committed them. In certain operations (for example, directory property modifications), if the repository has a more recent version of the node, the commit will be rejected, to prevent data loss. See Mixed revisions have limitations in the Version Control with Subversion book for details.

You can fix the problem by running ‘svn update’ in the working copy.

You might be genuinely out of date — that is, you’re trying to commit a change to a file that has been changed by someone else since you last updated your copy of that file. Again, ‘svn update’ is the way to fix this.

I’ve contributed a patch to a project and the patch added a new file. Now svn update does not work. ¶

In order to include your new file in the patch you likely ran the svn add command so that the svn diff command would include the new file in the patch. If your patch is committed to the code base and you run an svn update, then you might receive an error message of: «svn: Failed to add file ‘my.new.file’: object of the same name already exists».

The reason that you received this error is that you still have your local copy of the file in your working copy. The steps to correct this problem are:

  1. Run the svn revert command to remove the scheduled add within Subversion.
  2. Delete the file or move it to a location outside your working copy.
  3. Now you should be able to run the svn update command.

You might want to compare the new file from the repository with your original file.

I just built the distribution binary, and when I try to check out Subversion, I get an error about an «Unrecognized URL scheme.» What’s up with that? ¶

Subversion uses a plugin system to allow access to repositories. Currently there are three of these plugins: ra_local allows access to a local repository, ra_neon or ra_serf which allow access to a repository via WebDAV, and ra_svn allows local or remote access via the svnserve server. When you attempt to perform an operation in Subversion, the program tries to dynamically load a plugin based on the URL scheme. A `file://’ URL will try to load ra_local, and an `http://’ URL will try to load ra_neon or ra_serf.

The error you are seeing means that the dynamic linker/loader can’t find the plugins to load. For `http://’ access, this normally means that you have not linked Subversion to neon or serf when compiling it (check the configure script output and the config.log file for information about this). It also happens when you build Subversion with shared libraries, then attempt to run it without first running ‘make install’. Another possible cause is that you ran make install, but the libraries were installed in a location that the dynamic linker/loader doesn’t recognize. Under Linux, you can allow the linker/loader to find the libraries by adding the library directory to /etc/ld.so.conf and running ldconfig. If you don’t wish to do this, or you don’t have root access, you can also specify the library directory in the LD_LIBRARY_PATH environment variable.

I’m getting errors finding or opening a repository, but I know my repository URL is correct. What’s wrong? ¶

When I run `configure’, I get errors about subs-1.sed line 38: Unterminated `s’ command. What’s wrong? ¶

You probably have old copies of /usr/local/bin/apr-config and /usr/local/bin/apu-config on your system. Remove them, make sure the apr/ and apr-util/ that you’re building with are completely up-to-date, and try again.

I’m having trouble building Subversion under Windows with MSVC++ 6.0. What should I do? ¶

Probably you just need to get the latest platform SDK. The one that ships with VC++ 6.0 is not recent enough.

How can I specify a Windows drive letter in a file: URL? ¶

See Subversion Repository URLs in the Subversion Book for more details.

Microsoft Visual Studio 2002 and 2003 seem to have a problem with the «.svn» directory name. What should I do? ¶

Visual Studio can use a web subsystem for ASP.Net, which uses frontpage server extensions to do remote publishing through IIS. This subsystem rejects any pathname that starts with «.». This causes a problem when you try to remotely publish a Subversion working copy, because of the «.svn» subdirectories. The error message says something like «unable to read project information».

To work around this, set the environment variable SVN_ASP_DOT_NET_HACK to any value — this will tell Windows clients to use «_svn» as a directory name in your working copy. See the relevant section of the Subversion 1.3 release notes for more details, and see this question for other ways to customize the administrative directory name.

I’m having trouble doing write operations to a Subversion repository over a network. ¶

For example, one user reported that imports worked fine over local access:

But not from a remote host:

We’ve seen this when the REPOS/dav/ directory is not writable by the httpd process. Check the permissions to ensure Apache can write to the dav/ directory (and to db/, of course).

What is the best method of doing a network trace of the conversation between a Subversion client and server? ¶

Why does the svn revert require an explicit target? Why is it not recursive by default? These behaviors differ from almost all the other subcommands. ¶

The short answer: it’s for your own good.

Subversion places a very high priority on protecting your data, and not just your versioned data. Modifications that you make to already-versioned files, and new files scheduled for addition to the version control system, must be treated with care.

Making the svn revert command require an explicit target—even if that target is just ‘.’—is one way of accomplishing that. This requirement (as well as requiring you to supply the —recursive (-R) flag if you want that behavior) is intended to make you really think about what you’re doing, because once your files are reverted, your local modifications are gone forever.

If you allow anonymous write access to the repository via Apache, the Apache server never challenges the SVN client for a username, and instead permits the write operation without authentication. Since Subversion has no idea who did the operation, this results in a log like this:

See the Subversion book to learn about configuring access restrictions in Apache.

I’m getting occasional «Access Denied» errors on Windows. They seem to happen at random. Why? ¶

These appear to be due to the various Windows services that monitor the filesystem for changes (anti-virus software, indexing services, the COM+ Event Notification Service). This is not really a bug in Subversion, which makes it difficult for us to fix. A summary of the current state of the investigation is available here. A workaround that should reduce the incidence rate for most people was implemented in revision 7598; if you have an earlier version, please update to the latest release.

On FreeBSD, certain operations (especially svnadmin create) sometimes hang. Why? ¶

This is usually due to a lack of available entropy on the system. You probably need to configure the system to gather entropy from sources such as hard-disk and network interrupts. Consult your system manpages, specifically random(4) and rndcontrol(8) on how to effect this change.

I can see my repository in a web browser, but ‘svn checkout’ gives me an error about «301 Moved Permanently». What’s wrong? ¶

It means your httpd.conf is misconfigured. Usually this error happens when you’ve defined the Subversion virtual «location» to exist within two different scopes at the same time.

For example, if you’ve exported a repository as , but you’ve also set your DocumentRoot to be /www, then you’re in trouble. When the request comes in for /www/foo/bar, apache doesn’t know whether to find a real file named /foo/bar within your DocumentRoot, or whether to ask mod_dav_svn to fetch a file /bar from the /www/foo repository. Usually the former case wins, and hence the «Moved Permanently» error.

The solution is to make sure your repository does not overlap or live within any areas already exported as normal web shares.

It’s also possible that you have an object in the web root which has the same name as your repository URL. For example, imagine your web server’s document root is /var/www and your Subversion repository is located at /home/svn/repo. You then configure Apache to serve the repository at http://localhost/myrepo. If you then create the directory /var/www/myrepo/ this will cause a 301 error to occur.

Compiling with xlc on AIX, I get compilation errors. What’s wrong? ¶

Adding -qlanglvl=extended to the environment variable CFLAGS for configuration and build will make xlc a bit more flexible and the code should compile without error. See https://svn.haxx.se/dev/archive-2004-01/0922.shtml and its associated thread for more details.

I checked out a directory non-recursively (with -N), and now I want to make certain subdirectories «appear». But svn up subdir doesn’t work. ¶

See issue 695. The current implementation of svn checkout -N is quite broken. It results in a working copy which has missing entries, yet is ignorant of its «incompleteness». Apparently a whole bunch of CVS users are fairly dependent on this paradigm, but none of the Subversion developers were. For now, there’s really no workaround other than to change your process: try checking out separate subdirectories of the repository and manually nesting your working copies.

I am trying to use mod_dav_svn with Apache on Win32 and I’m getting an error saying that the module cannot be found, yet the mod_dav_svn.so file is right there in Apachemodules. ¶

The error message in this case is a little misleading. Most likely Apache is unable to load one or more DLLs that mod_dav_svn.so relies on. If Apache is running as a service it will not have the same PATH as a regular user. Make sure that libdb4*.dll, intl3_svn.dll, libeay32.dll and ssleay32.dll are present in either Apachebin or Apachemodules. You can copy them from your Subversion installation directory if they are not there.

If this still does not resolve the problem, you should use a tool like Dependency Walker on mod_dav_svn.so to see if there are any other unresolved dependencies.

Why aren’t my repository hooks working? ¶

They’re supposed to invoke external programs, but the invocations never seem to happen.

Before Subversion calls a hook script, it removes all variables — including $PATH on Unix, and %PATH% on Windows — from the environment. Therefore, your script can only run another program if you spell out that program’s absolute name.

Make sure the hook script is named correctly: for example, the post-commit hook should be named post-commit (without extension) on Unix, and post-commit.bat or post-commit.exe on Windows.

If you’re using Linux or Unix, try running the script «by hand», by following these steps:

  1. Use «su», «sudo», or something similar, to become the user who normally would run the script. This might be httpd or www-data, for example, if you’re using Apache; it might be a user like svn if you’re running svnserve and a special Subversion user exists. This will make clear any permissions problems that the script might have.
  2. Invoke the script with an empty environment by using the «env» program. Here’s an example for the post-commit hook:

Why does my —diff-cmd complain about ‘-u’? I tried to override it with —extensions, but it’s not working. ¶

When using an external diff command, Subversion builds a fairly complicated command line. First is the specified —diff-cmd. Next comes the specified —extensions (although empty —extensions are ignored), or ‘-u’ if —extensions is unspecified (or specified as »). Third and fourth, Subversion passes a ‘-L’ and the first file’s label (e.g. «project_issues.html (revision 11209)»). Fifth and sixth are another ‘-L’ and the second label. Seventh and eighth are the first and second file names (e.g. «.svn/text-base/project_issues.html.svn-base» and «.svn/tmp/project_issues.html.tmp»).

If your preferred diff command does not support these arguments, you may need to create a small wrapper script to discard arguments and just use the last couple file paths.

Warning: Beware that Subversion does not expect the external diff program to change the files it receives, and doing so may scramble the working copy.

For further information, see issue #2044.

How does Subversion cache credentials (plaintext and encrypted)? ¶

To avoid having to type a password for each server operation, Subversion can cache credentials.

Passwords may have been cached unencrypted by older versions of Subversion («grandfathered in») and Subversion always supports reading these. Whether and how Subversion caches new credentials depends on several factors, including the access method, operating system, compile-time options, and settings in the client’s run-time config file.

To show the credentials in your cache, use svn auth. Credentials are never removed automatically but may be removed manually using svn auth —remove.

Windows

On Windows, Subversion uses standard Windows APIs to encrypt the data, so only the user can decrypt the cached password. (Since Subversion 1.2.)

macOS (formerly Mac OS X)

On macOS, Subversion uses the system Keychain facility to encrypt/store the user’s svn password. (Since Subversion 1.4.)

UNIX/Linux

On UNIX/Linux, Subversion supports up to four credential caches:

  • GNOME Keyring
  • KWallet
  • GPG-Agent
  • Plaintext cache in

To determine which credential caches your Subversion client supports, run the svn —version command and look for «The following authentication credential caches are available» toward the end of its output.

GNOME Keyring and KWallet both facilitate storing passwords on disk encrypted. For Subversion to support these programs (since Subversion 1.6), they need to be available at compile-time and at run-time.

TODO: Discuss GPG-Agent.

Depending on a compile-time option (—enable-plaintext-password-storage) and runtime configurations (see below) Subversion may fallback to storing passwords in the Plaintext cache.

The default value of —enable-plaintext-password-storage was changed from True to False in Subversion 1.12, thus disabling the Plaintext cache unless explicitly enabled.

The directory which contains cached Plaintext passwords (usually

/.subversion/auth/) has permissions of 700, meaning only the user (and root) can read them.

«Subversion was compiled with support for Plaintext password cache but I want to prevent writing passwords to the Plaintext cache.»

The following options are available in your run-time config file (per user

/.subversion/servers, systemwide /etc/subversion/config and /etc/subversion/servers):

  • To allow encrypted stores like GNOME Keyring and KWallet, but not the Plaintext cache, set store-plaintext-passwords = no.
  • To allow caching server certs but not passwords (encrypted or not), set store-passwords = no.
  • To disable storing any kind of credentials (encrypted or not) set store-auth-creds = no.

«I want to use the Plaintext cache but it wasn’t enabled at compile time.»

In response to various questions and requests, the Subversion developers have written a Python script that can store a plain-text password to the cache. If you understand the security implications, have ruled out other alternatives, and still want to cache your password in plain-text on disk, you may find the script in the tools/client-side/ directory in (as of this writing) our trunk.

Additional Information

More information on password caching is in Chapter 6 of the Subversion book, under «Client Credentials Caching».

I can’t hotbackup my repository, svnadmin fails on files larger than 2Gb! ¶

Early versions of APR on its 0.9 branch, which Apache 2.0.x and Subversion 1.x use, have no support for copying large files (2Gb+). A fix which solves the ‘svnadmin hotcopy’ problem has been applied and is included in APR 0.9.5+ and Apache 2.0.50+. The fix doesn’t work on all platforms, but works on Linux.

I cannot see the log entry for the file I just committed. Why? ¶

Assume you run ‘svn checkout‘ on a repository and receive a working copy at revision 7 (aka, r7) with one file in it called foo.c. You spend some time modifying the file and then commit it successfully. Two things happen:

  • The repository moves to a new HEAD revision on the server. The number of the new HEAD revision depends on how many other commits were made since your working copy was checked out. For example, the new HEAD revision might be r20.
  • In your working copy, only the file foo.c moves to r20. The rest of your working copy remains at r7.

You now have what is known as a mixed revision working copy. One file is at r20, but all other files remain at r7 until they too are committed, or until ‘svn update‘ is run.

If you run the ‘svn log‘ command without any arguments, it prints the log information for the current directory (named ‘.‘ in the above listing). Since the directory itself is still at r7, you do not see the log information for r20.

To see the latest logs, do one of the following:

  1. Run ‘svn log -rHEAD‘.
  2. Run ‘svn log URL‘, where URL is the repository URL. If the current directory is a working copy you can abbreviate the URL to the repository root as ^/ to save some typing. Note that on Windows the «^» symbol is special and must be quoted. E.g.: svn log «^/» —limit 10
  3. Run ‘svn log URL‘, where URL is the URL of the subdirectory you want to see the log for, for example: svn log ^/trunk
  4. Ask for just that file’s log information, by running ‘svn log foo.c‘.
  5. Update your working copy so it’s all at r20, then run ‘svn log‘.

Why do I get occasional, seemingly inconsistent errors when checking out over http:// from a repository running on MacOS X 10.4 (Tiger)? ¶

Note: this assumes the repository is being served by Apache 2.0.x.

There is a bug in APR 0.9.6 that is present when it is running on Tiger, and shows up when you attempt to check out a file larger than 64Kb. The resulting checkout fails, often with unpredictable error messages. Here are some examples of what you might see on the client side, the specific errors may differ for you:

There may also be errors in the Apache error_log, such as:

To confirm the presence of this bug — assuming you have access to the machine that the repository is being served from — try checking out using a file:// URL, which will access the filesystem directly instead of going through Apache. If the resulting checkout completes successfully, then it is almost certain that this is the problem.

Currently, the best solution is to upgrade to APR 1.2.0+.

Alternately, you can rebuild Apache and Subversion from their respective sources, setting the following environment variable before running configure for Apache:

or in Bourne shell syntax, like this:

If you built APR / APRUTIL separately (i.e., you did not use the ones that come as part of the Apache tarball), you must set that environment variable before running configure for APR, as this is where the problem lies.

I can’t build Subversion from working copy source on Debian GNU/Linux; I get errors at the final link stage. What’s wrong? ¶

If you see errors like this in the final link stage of a Subversion trunk source build:

it might be because you’re on a Debian GNU/Linux system and need to upgrade ‘libtool’. (I’ve also heard that the Debian packagers had to tweak ‘libtool’ and that this may cause some problems for Subversion builds. But that’s hearsay — I didn’t have time to verify the details before writing this FAQ entry. However, see https://svn.haxx.se/dev/archive-2006-02/1214.shtml and the thread it spawned for a detailed discussion.)

In any case, after encountering this problem on a Debian GNU/Linux system running a newly-dist-upgraded ‘testing’ distribution on 15 Nov 2005, the solution was to build libtool 1.5.20 from source, using the standard «./configure && make && sudo make install» recipe. After that, I did a ‘make clean’ in my Subversion working copy tree, ‘./autogen.sh’, ‘./configure’, ‘make’, and everything worked fine.

Note that another report of these symptoms appeared at https://svn.haxx.se/dev/archive-2003-01/1125.shtml, though the solution described here was not mentioned in that thread.

I’ve started svnserve, but it doesn’t seem to be listening on port 3690. ¶

Invoke svnserve with the —listen-host=0.0.0.0 option. Svnserve does not properly support IPv4/IPv6 dual-stack operation. See issue #2382.

I can’t add a directory because Subversion says it’s «already under version control». ¶

The directory you’re trying to add already contains a .svn subdirectory — it is a working copy — but it’s from a different repository location than the directory to which you’re trying to add it. This probably happened because you used your operating system’s «copy» command (instead of svn copy) to copy a subdirectory in this working copy, or to copy some other working copy into this one.

The quick and dirty solution is to delete all .svn directories contained in the directory you’re trying to add; this will let the «add» command complete. If you’re using Unix, this command will delete .svn directories under dir:

However, if the copy was from the same repository, you should ideally delete or move aside the copy, and use svn copy to make a proper copy, which will know its history and save space in the repository.

If it was from a different repository, you should ask yourself why you made this copy; and you should ensure that by adding this directory, you won’t be making an unwanted copy of it in your repository.

Accessing non-public repositories via svnserve is really slow sometimes. ¶

This often happens when APR is compiled to use /dev/random and the server is unable to gather enough entropy. If Subversion is the only application using APR on the server, you can safely recompile APR with the —with-devrandom=/dev/urandom option passed to configure. This should not be done on systems that use APR for other processes, however, as it could make other services insecure.

When performing Subversion operations involving a lot of data over SSL, I get the error SSL negotiation failed: SSL error: decryption failed or bad record mac. ¶

This can occur due to a problem with OpenSSL 0.9.8. Downgrading to an older version (or possibly upgrading to a newer version) is known to fix this issue.

I get an error that says «This client is too old». ¶

Why doesn’t svn switch work in some cases? ¶

In some cases where there are unversioned (and maybe ignored) items in the working copy, svn switch can get an error. The switch stops, leaving the working copy half-switched.

Unfortunately, if you take the wrong corrective action you can end up with an unusable working copy. Sometimes with these situations, the user is directed to do svn cleanup. But the svn cleanup may also encounter an error. See issue #2505.

The user can manually remove the directories or files causing the problem, and then run svn cleanup, and continue the switch, to recover from this situation.

Note that a switch from a pristine clean checkout always works without error. There are three ways of working if you are using svn switch as part of your development process:

    Fully clean your working copy of unversioned (including ignored) files before switching.
    WARNING! This deletes all unversioned dirs/files. Be VERY sure that you do not need anything that will be removed.

Some examples are detailed here in issue 2505. The problem is that the svn client plays it safe and doesn’t want to delete anything unversioned.

Two specific examples are detailed here to illustrate a problem like this. There are also other svn switch errors, not covered here, which you can avoid by switching only from a pristine checkout.

    If any directory has been moved or renamed between the branches, then anything unversioned will cause a problem. In this case, you’ll see this error:

Removing all unversioned files, and continuing the switch will recover from this.

If a temporary build file has ever been added and removed, then a switch in a repository with that unversioned file (likely after a build) fails. You’ll see the same error:

In this case, just removing the unversioned items will not recover. A cleanup fails, but «svn switch» directs you to run «svn cleanup».

Removing the directory (and all other unversioned files, to prevent «switch» from breaking on a similar error repeatedly), and continuing the switch will recover from this.

The TortoiseSVN cleanup error is a bit different. You might encounter this:

In each case here, the «svn switch» breaks leaving you with a half-switched working copy. «svn status» will show items with S for switched items (different from top directory), ! for directories with problems, and

for the files that are the problem (and with maybe L for locked). Like this:

In Windows, when doing an update with the command-line client, I get an error saying «The system cannot find the path specified» and suggesting that my working copy might be corrupt. But I can update with TortoiseSVN just fine. What’s going on? ¶

A careful examination of the Windows API documentation regarding Naming a File reveals the most common reason why this happens. In short, you can address significantly longer path names when using the Unicode versions of the Windows path functions, and providing absolute path specifiers instead of relative path specifiers. Fortunately, the Apache Portable Runtime (APR) library that Subversion uses transparently converts absolute paths (like C:WorkingCopyfile.txt) into the form required by the Windows APIs (\?C:WorkingCopyfile.txt), and back again. Unfortunately, you only get these long-path benefits when using absolute paths.

To see if path length is the reason for the problem you’re seeing, try providing an absolute target path to the Subversion command-line client instead of a relative one (or none at all). In other words, instead of doing this:

If the problem goes away, congratulations — you’ve hit a Windows path length limitation. And now you know the workaround.

Why does this problem not affect TortoiseSVN? Because TortoiseSVN always provides absolute paths to the Subversion APIs.

Why, then, does the Subversion command-line client not always convert its input into absolute paths and use those? It does, as of Subversion 1.7.

I got an error saying «This client is too old to work with working copy ‘. ‘ «. How can I fix it without upgrading Subversion? ¶

Sometimes the working copy metadata format changes incompatibly between minor releases. For example, say you have a working copy created with Subversion 1.4.4, but one day you decide to try out Subversion 1.5.0. Afterwards, you attempt to switch back to 1.4.4, but it doesn’t work — it just gives the above error.

This is because 1.5.0 upgraded your working copy format to support some new features (in this case, changelists, the keep-local flag, and variable-depth directories). Although 1.4.4 doesn’t know anything about these new features, it can at least recognize that the working copy format has been upgraded to something higher than it can handle.

1.5.0 upgraded the working copy for a good reason: it realizes that 1.4.4 does not know about these new features, and that if 1.4.4 were to meddle with the working copy metadata now, important information might be lost, possibly causing corruption (see issue #2961, for example).

Subversion 1.7.0 and newer will not upgrade working copies unless you explicitly ask them to do so. (Upgrading the working copies is, however, required; Subversion 1.7.0 cannot operate on working copies created or used by earlier Subversions.)

Subversion 1.6.x and earlier automatically upgrade working copies when they first touch them. This behavior can be annoying, if you just want to try out a new release of Subversion without installing it permanently. For this reason, we distribute a script that can downgrade working copies when doing so is safe:

Run that script with the «—help» option to see how to use it. (It can downgrade 1.6.x working copies to formats usable by Subversion 1.4.x and 1.5.x, but cannot downgrade 1.7.x working copies.)

As future versions of Subversion are released, we will try to keep this FAQ entry up-to-date with potential downgrade scenarios and their implications.

I got an error saying «relocation R_X86_64_32 against `a local symbol’ can not be used when making a shared object» when building the Neon library on 64-bit Linux. ¶

The Neon library, used for communication between a Subversion server and client over HTTP, is usually built as a static library. But it is subsequently linked into a different shared library. This causes an error during the build process on 64-bit AMD systems similar to this:

There was a thread on the developers’ list about this.

The solution is to supply the «—enable-shared» option to Subversion’s configure script.

Why am I getting an error saying «Could not read response body: Secure connection truncated» when doing a checkout from Apache? ¶

In short, this error is representative of a class of problems which can occur when Apache erroneously believes that your Subversion client is no longer tending to the network connection it has made with Apache. Other error messages have been reported in similar circumstances, depending on whether or not SSL was in use for the connection, or when exactly Apache decided that the connection should be terminated.

The Subversion client tries to keep working copies in a sane state at all times. One way it does this during checkouts is by squirreling away the pristine versions of checked-out files until all the files and subdirectories for a given directory have been fetched. Once all the data for a directory has been downloaded, the client «finalizes» that directory, copying the pristine versions of files out into the working area, diddling administrative data, and so on. While this directory finalization is happening, the client is focused on that task and is not tending to the checkout network stream. Sometimes — typically in situations where a versioned directory contains an abnormally large number of files, or a bunch of abnormally large files — the client can spend so much time finalizing a directory (and ignoring the network stream) that Apache thinks the client has gone away for good, so Apache terminates the connection. When the client finally turns its attention back to the network stream, it finds that the server has given up on the connection, and it reports this as an error.

One workaround for this situation is to increase the amount of time Apache is willing to wait for a client to prove it is still listening to the network stream. You do this by adjusting upward the Apache Timeout configuration value. You are encouraged, however, to evaluate your data set. If having a huge number of files in a single directory is causing problems for you during checkouts, there is some chance that it will cause additional problems elsewhere, too. If it is possible for you to split your collection of files up into a few subdirectories with smaller file counts, this could prove universally beneficial.

Why am I getting a tree conflict upon update even though no one else has committed conflicting changes? ¶

When you commit, only the files/directories that are actually changed by the commit get their base revisions bumped to HEAD in the working copy. The other files/directories (possibly including the directory you committed from!) don’t get their base revisions bumped, which means Subversion still considers them to be based on outdated revisions. See also this question and this section of the Subversion book.

This can be confusing, in particular because of tree conflicts you can inflict upon yourself. E.g. if you add a file to a directory and commit, and then locally move that directory somewhere else, and then try to commit, this second commit will fail with an out-of-date error since the directory itself is still based on an out-of-date revision. When updating, a tree conflict will be flagged.

Subversion has currently no way of knowing that you yourself just committed the change which caused the directory to be out-of-date during the second commit. And allowing an out-of-date directory to be committed may cause certain tree conflicts not to be detected, so Subversion can’t allow you to do this.

To avoid this problem, make sure to update your entire working copy before making structural changes such as deleting, adding, or moving files or directories.

When performing Subversion operations over SSL, I get the error SSL handshake failed: SSL error code -1/1/336032856. ¶

This can happen when the hostname reported by the server does not the match hostname given in the SSL certificate. Make sure your server configuration uses correct values for ServerName and NameVirtualHost.

A client-side fix is to update OpenSSL to version 1.0.0d. See this post to the Subversion developer mailing list for details.

I get «Error validating server certificate» error even though I configure the SSL certificates correctly in the server. ¶

This error occurs if the certificate issuer is not recognized as ‘Trusted’ by the SVN client. Subversion will ask you whether you trust the certificate and if you want to store this certificate.

In some cases, even if you accept this by entering ‘p’ option, the next time you access SVN, the same error appears again. There can be multiple reasons. The problem may be your

/.subversion directory has wrong permissions, so that each time you want to permanently add the credentials, svn actually cannot do so, and also doesn’t inform you that it can’t.

This can be solved by either fixing the permissions with chmod 644 in

directory or by deleting the directory contents. If deleted, the directory gets populated automatically the next time you access the repository.

After importing files to my repository, I don’t see them in the repository directory. Where are they? ¶

The files are in the repository; you can verify this by running commands such as svn ls -R, or by trying to checkout a working copy from the repository:

The versioned files and directories are simply not stored on-disk in a tree format (like CVS repositories used to), but instead are stored in database files. The BDB backend uses Berkeley DB databases, and the FSFS backend uses both a custom file format and may in the future use SQLite databases.

When does svn copy create svn:mergeinfo properties? ¶

In general, to avoid some kinds of spurious merge conflicts, the following rules can be kept in mind:

  • When copying/renaming a file or directory within the trunk or a branch, perform the copy/rename in a working copy. For renames, the working copy should not be a mixed-revision working copy.
  • When copying/renaming an entire branch, perform the copy/rename in the repository (i.e. via URLs).

During copies where the source is a URL, and the target is either a URL or in a working copy, explicit mergeinfo is created on the copy target. This is done so that when a branch is created with and later an ancestrally unrelated subtree is copied into the branch using an invocation such as the directory /branches/mybranch/bar does not inherit mergeinfo from its parent /branches/mybranch. Mergeinfo inherited from the parent might not reflect the factually correct merge history of the new child.

During copies where both the source and the target are within a working copy, no mergeinfo is created on the copy target (as of Subversion 1.5.5). This assumes the case where a new child is added on the trunk (or a branch), and this addition is merged to another branch which is kept in sync using periodic catch-up merges. In this case, the inherited mergeinfo of the branch’s new child is correct, and the creation of explicit mergeinfo could cause spurious merge conflicts due to apparent, but factually inaccurate, differences in the child’s and parent’s merge histories.

For additional details and discussion about this behaviour, see this post on the users mailing list.

Passwords which contain some special characters do not seem to be working? ¶

Passwords which contain non-ASCII characters may not work reliably with the basic authentication mechanisms Subversion supports. This is due to potential character encoding differences between the client and server systems. See this mailing list post for details.

As a workaround, you can configure your Subversion server to use a single-sign-on mechanism, such as Kerberos or SSPI. See the Apache HTTPD server documentation for details. If you are using svnserve, see the ‘Using svnserve with SASL’ chapter in the Subversion book.

When using svnserve with SSH authentication SSH keys can be used to work around this limitation of passwords.

Why does an HTTP(S) URL-to-URL copy or branch/tag operation take a long time? ¶

If you are seeing slow server-side copying (a.k.a. branching or tagging) with a Subversion repository served over HTTP(S), you might be running into issue 4531. This problem is caused by a crawl of the “tree-to-copy” by httpd’s mod_dav module on the server (giving the copy a performance cost of O(sizeof(tree)) instead of SVN’s usual O(1) for branching/tagging). This behaviour is present in Apache httpd version 2.2.25 (or higher) and 2.4.6 (or higher) – older versions of httpd are not affected. Branching/tagging a large tree may take several minutes because of this.

This problem has been fixed in mod_dav_svn in Subversion 1.8.14. You can also use the following workaround to make mod_dav skip the unnecessary work; add the following directives to the Apache configuration on the server, preferably only inside the Location blocks configured for SVN:

This adds a request header «Depth» with value 0 to each COPY request. This makes mod_dav avoid the crawl of the tree being copied (yet still lets Subversion perform a normal recursive copy).

When performing Subversion operations over SSL, I get the error An error occurred during SSL communication ¶

SSL communication errors can have various reasons. You can use the openssl binary to debug the ssl connection. If you use a client certificate, then you need to convert Subversion’s client certificate from pkcs12 to pem first: Then you can use: If you are using ssl-authority-files in .subversion/servers to verify the server cert you can get s_client to do the same with the additional parameter: The s_client output may indicate what problem is occurring.

For example, if s_client reports then creating new CA keys with sha256 instead of md5 should solve the problem.

Developer questions: ¶

How do I run the regression tests in a RAM disk? ¶

How do I run a debugger on dynamic Subversion binaries without having to install them? ¶

Before the make install step on unix-y systems, dynamically built «executables» in a Subversion source tree are actually libtool-generated shell scripts which re-link and run the real binary. As shown below, this complicates debugging:

You can work around this by running gdb via the libtool command. The libtool command in execute mode will detect that the svn command is a libtool wrapper script and handle setting the appropriate environment variables and replace the script with the path to the real file before running gdb..

Your command line would look something like this:

How do I run a debugger on Subversion binaries without compiler inlining obfuscating the source? ¶

By default, gcc will often optimize away private variables and functions, inlining the associated operations. This can complicate stepping through the code in a debugger.

Work around this by turning off optimization during the make step on unix-y systems:

(That’s «dash ohh zero».) Alternately, you can make this change more permanent by running configure as follows:

For a production install, remember to undo this operation before installing Subversion from source, by re-running make or configure without the extra flag.

References: ¶

What are all the HTTP methods Subversion uses? ¶

The Subversion client speaks a subset the WebDAV/DeltaV protocol to the mod_dav_svn server module. The short answer is:

Note that this list may grow over time: Subversion 1.7+ started using the POST method when speaking to 1.7+ servers, and it’s possible that Subversion 1.9+ might start using yet another method when talking to 1.9+ servers.

The details of the protocol are documented here:

What’s a ‘bikeshed’? ¶

How do you pronounce «Subversion»? ¶

Jim Blandy, who gave Subversion both its name and repository design, pronounces «Subversion» «Subversion».

What’s a ‘baton’? ¶

Throughout Subversion’s source code there are many references to ‘baton’ objects. These are just void * data structures that provide context to a function. In other APIs, they’re often called void *ctx or void *userdata Subversion developers call the structures «batons» because they’re passed around quite a bit.

What do you mean when you say that repository is ‘wedged’? ¶

A Subversion repository consists of two different internal parts, a working compartment and a storage compartment. A wedged repository is a repository where the working compartment is unaccessible for some reason, but the storage compartment is intact. Therefore, a wedged repository has not suffered any loss of data, but the working compartment has to be corrected before you can access the repository. See this entry for details how to do that.

A corrupted Subversion repository is a repository where the storage compartment has been damaged, and therefore there is some degree of real data loss in the repository.

You might also like to check The Jargon File’s definition for ‘wedged’.

What is CVSSv3 and what do the score and vector mean? ¶

Subversion is using CVSSv3 in our security advisories so you will see a CVSSv3 Base Score and Vector in the Severity section of our advisories. CVSSv3 is the current version of the Common Vulnerability Scoring System which is an open industry standard for assessing the severity of computer system security vulnerabilities. FIRST maintains the documentation for the standard.

The score is a number in the range of 0 to 10 with less risky vulnerabilities scoring lower and more risky vunerabilities scoring higher. The score is calculated by determining the metrics of the vunerability and then calculating the score based on those metrics. If you want to understand how a score was determined you would need the vector and an understanding of the formula as specified by the standard.

The vector is an abbreviated description of the metrics that apply to the vulnerability.

CVSSv3 provides for 3 types of metrics and scores; base, temporal and environmental. The Subversion project will only ever provide the base score and metrics. As a project we cannot determine the environmental risks of the various installations so it is not possible for us to calculate the environmental metrics. The temporal metrics are for factors that may change over time. We do not update our advisories once published so it’s not possible for us to track these changing values.

Some vulnerabilities require specific configurations or environmental factors in order to be exploited. CVSSv3 specifies that the Access Complexity metric consider how common such a configuration is. As a result, a vulnerability that requires an unusual configuration will have a low score. The scores can help you prioritize how quickly you need to react to an advisory but as a result of the Access Complexity metric you should still consider how the vulnerability impacts your installation.

When calculating the Availability Impact metric of server vulnerabilities the Subversion project will use the value of Complete within the context of Subversion and not the host system. For example when considering a Denial of Service attack the Availability Impact metric will be calculated as High if the vulnerability allows an attacker to make the Subversion server completely inaccessible. On the other hand if the attack only made the Subversion server slow or limited the number of successful connections it would be rated as Low.

When calculating the Integrity Impact metric of server vulnerabilities the Subversion project will use the value of High when history of the Subversion repositories may be changed or when the ability to modify any file on the host system occurs. The ability to change any file (while leaving the appropriate history trail) in violation of any authentication or authorization requirements will be treated as Low.

When calculating the Confidentiality Impact metric of server vulnerabilities the Subversion project will use the value of High when all files in the repository may be read regardless of any authentiation or authorizaiton requirements. If only some files may be read it will be considered Low.

As a result of how we calculate these impact metrics you may see advisories in vulnerability databases or vendor advisories that have a different score. For instance an Linux distribution that provides a binary package of Subversion may score the full exposure of the contents of the Subversion repository hosted on the system as only a Low Confidentiality Impact, resulting in a lower score.

Источник

drem1lin

Всем привет, меня попросили настроить сервер Subversion и я начал творить, я использовал guide. Но я прям чувствую что он не полный, во первых мне не удалось сделать

svn import -m «testing over https» https://example.com/svn_wombat ~/TEMP/

в которой перепутаны параметры местами, это я поправил, но все равно, при попытке сделать коммит получаю

svn: E170013: Unable to connect to a repository at URL ‘https://cryptosvn.pk/svn_wombat’
svn: E120171: Error running context: An error occured during SSL communication

Понятное дело все настроено как в мануале

DAV svn
SVNPath /var/svn-repos/project_wombat
AuthType Basic
AuthName «Subversion Repository»
AuthUserFile /etc/apache2/dav_svn.passwd
Require valid-user
SSLRequireSSL

Но по svn+ssh import -m я сделал.
Далее я перешел к настройке WebSVN и тоже столкнулся с непредвиденными трудностями. Я отредактировал 000-default.conf и ssl-default.conf и http и https версиb сайта заработали, но пишет мне ошибку

Ошибка при выполнении команды: svn —non-interactive —config-dir /tmp log —xml —quiet ‘file:///var/svn_repos/@’ —limit 1
svn: E180001: Unable to connect to a repository at URL ‘file:///var/svn_repos/’
svn: E180001: Unable to open an ra_local session to URL
svn: E180001: Unable to open repository ‘file:///var/svn_repos/’

Может у кого то есть актуальный мануал по этому делу??

При установке WebSVN apt-get выдал ошибку

failed to create symbolic link ‘/etc/apache2/conf.d/websvn’: No such file or directory

я сам создал папку conf.d и конфиг оттуда скопировал по инструкции


  • Вопрос задан

    более трёх лет назад

  • 965 просмотров

В общем проблема оказалась в настройке WebSVN, там я ошибся в параметрах которые запрашивает конфигуратор. Когда первый раз запрашивает папку я указал путь до репозиториев, и когда второй раз запросил, тоже указал эту папку, чего делать не стоило

Пригласить эксперта

Если сервер SVN нужно поднять в локалке, подразумевается, что хранилище тоже должно быть в локалке, то есть у вас должен быть сам репозиторий в виде набора файлов и каталогов или дампа.

Начать надо с того, что поместить репозиторий в нужное место простым копированием или развернуть из дампа или командами svnadmin create и svnadmin load. Дамп внешнего хранилища можно снять командой svnrdump.

В созданном хранилище нужно настроить права или хотя бы проверить conf-файл хранилища. После этого можно настраивать Apache или поднимать выделенный сервер Subversion, работающий по протоколу svn://. Я использую второй вариант, поэтому по Apache не подскажу.

WebSVN может работать через прямой доступ к хранилищу или как обычный клиент, то есть через svn:// или https://. Это настраивается правкой его include/config.php, где куча примеров и объяснений в комментариях.


  • Показать ещё
    Загружается…

09 февр. 2023, в 18:09

3500 руб./за проект

09 февр. 2023, в 18:08

5000 руб./за проект

09 февр. 2023, в 17:54

1000 руб./за проект

Минуточку внимания

SVN checkout using TortoiseSVN causes «An error occurred during SSL communication» to appear whenever client certificates are required in conjunction with our new server, if the client certificate is​ already present in the local Windows certificate store. The client certificates are issued by a local CA, the CA certificate is present in the local Windows certificate store, and the CA certificate has not expired.

The problem appears to be 100% reproducible when attempting to checkout from the new server when the client certificate is present in the local Windows certificate store. The problem was not observed before attempting to use the new server. That is, SVN checkout using TortoiseSVN was working fine with the old server with client certificates present in the local Windows certificate store.

Question: Is there any way to modify how the new server is configured, or how clients are configured, to eliminate the problem, without bypassing client certificate authentication?

We used svnadmin dump and svnadmin load to migrate 33 Subversion repositories from one server to another. The directory structure is /Dirname/Reponame1/SVN, /Dirname/Reponame2/SVN, and so forth. This problem was not observed with the old server—only with the new one.

Both hosts are Linux systems running Apache.

Both hosts require client certificates and login via Apache Basic authentication.

The client certificates are issued by a CA that is trusted locally by virtue of the CA certificate loaded in the local Windows certificate store.

Using Tortoise SVN, whenever users attempt to run SVN Checkout, or connect to the new server, they see

«Error: Unable to connect to a repository at URL ‘https://…'» and «Error running context: An error occurred during SSL communication.»

The action creates the local folder, but fails to checkout any content.

When client certificate authentication is bypassed by commenting out the «SSLVerifyClient require» directive, the error is not observed.

It is currently a business requirement to enforce both client certificate authentication and login (Apache Basic Authentication).

When the client certificate is removed from the local Windows certificate store, the error does not occur.

As a short-term workaround, browser-based access to the new server is happening by importing the CA certificate and client certificate into Firefox’s certificate store.

We’re trying to find a way back to supporting browser-based access to the SVN repos on the new server by way of Chrome and MS Edge. For this to happen, the client certificate must be present in the local Windows certificate store. But when the client certificate is present in the local Windows certificate store, SVN Checkout referencing the new server produces the error.

Client systems are running Windows 10 TortoiseSVN 1.14.1.29085 — 64 bit, 2021/02/09 16:17:02 ipv6 enabled Subversion 1.14.1, -release apr 1.6.5 serf 1.3.9 OpenSSL 1.1.1i 8 Dec 2020 zlib 1.2.11 SQLite 3.29.0

Old Server cat /etc/redhat-release CentOS release 6.10 (Final)

rpm -qa|grep subv subversion-1.6.11-15.el6_7.x86_64

Repositories accessed via apache using HTTPS. httpd -v Server version: Apache/2.2.15 (Unix) Server built: Jun 19 2018 15:45:13

<Location /svn/Generic> SSLRequireSSL Dav On DAV svn SVNPath /Projects/Generic/SVN AuthType Basic AuthName «Generic» AuthUserFile /etc/httpd/conf/htpasswd AuthGroupFile /etc/httpd/conf/Groups Require group W2 Contractors SetHandler mod_python 

The ssl.conf file contains SSLProtocol all -SSLv2 -SSLv3 SSLVerifyClient require SSLVerifyDepth 1

Powered by Subversion version 1.6.11 (r934486).

New Server Debian GNU/Linux 10 (buster)

apache2 -v Server version: Apache/2.4.38 (Debian) Server built: 2020-08-25T20:08:29

<Location /svn/Generic> SSLRequireSSL Dav On DAV svn SVNPath /Projects/Generic/SVN AuthType Basic AuthName «Generic» AuthUserFile /etc/apache2/htpasswd AuthGroupFile /etc/apache2/Groups Require group W2 Contractors SetHandler mod_python 

The ssl.conf file contains SSLVerifyClient require SSLVerifyDepth 1

Powered by Apache Subversion version 1.10.4 (r1850624).

The ssl.conf file originally contained this, and the problem was present. SSLProtocol All -SSLv2 -SSLv3 -TLSv1 -TLSv1.1

In an effort to make both servers as similar as possible, the SSLProtocol directive was changed to this: SSLProtocol all -SSLv3 +TLSv1.2

According to packet capture of traffic analyzed with Wireshark, packet protocol of new server traffic is listed at the top level as TLSv1.3, but the Server Hello, Change Cipher Spec, Application Data packet and packets that follow it list Version: TLS 1.2 (0x0303) inside the record layer.

Changing the SSLProtocol had no observable effect on the problem.

  • #1

HI,

I need to access a SVN repository that has an https:// url (not SSH). When I try to access it, I get:

Code:

svn: E120171: Unable to connect to a repository at URL 'https://xxxxxxxxx/trunk'
svn: E120171: Error running context: An error occurred during SSL communication

The URL is right, it works with other systems and I even copied a working repository from another machine and did «update».

I think it is failing to get WebDAV support? The

serf

library is installed. I have:

Code:

serf-1.3.2_1        Serf HTTP client library
subversion-1.8.5    Version control system

What could be missing?

neon

? Does

subversion

have options in the build?

Thanks.

  • #2

That the required library is installed on your system isn’t proof that Subversion is actually using it ;)

Which brings me to the important question here: how did you install Subversion on this machine? And also; which version of FreeBSD are you using?

The most common way to determine if Subversion is up to the challenge is to use this command: # make -C /usr/ports/devel/subversion showconfig. That should at least list the following line:

Code:

     SERF=on: WebDAV/Delta-V (HTTP/HTTPS) repo access module

However, if you installed Subversion using binary packages then my guess is that it doesn’t support this feature. I’m not sure because I don’t use binary packages myself, but I do know that they often don’t provide the full amount of features.

  • Thread Starter

  • #3

Hi,

I am running FreeBSD 9.2-RELEASE. Packages are installed by compiling from current ports, updated as today with

portsnap

. My configuration is as follows:

Code:

     BDB=off: Berkeley DB support
     DOCS=on: Build and/or install documentation
     FREEBSD_TEMPLATE=on: FreeBSD Project log template
     GNOME_KEYRING=off: Build with GNOME Keyring auth support
     KDE_KWALLET=off: Build with KDE KWallet auth support
     MAINTAINER_DEBUG=off: Build debug version
     MOD_DAV_SVN=off: mod_dav_svn module for Apache 2.X
     NLS=on: Native Language Support
     P4_STYLE_MARKERS=on: Perforce-style conflict markers
     SASL=off: SASL support
     SERF=on: WebDAV/Delta-V (HTTP/HTTPS) repo access module
     STATIC=off: Build static version (no shared libs)
     SVNSERVE_WRAPPER=off: Enable svnserve wrapper (umask setter)
     TEST=off: Run subversion test suite
     TOOLS=off: Install several tools (svnauthz-validate and mod_dontdothat are among them)

Serf itself has no meaningful configuration. Which tells me the SERF module should be there, thus I wonder even more why it is not working.

Thanks.

wblock@


  • #4

multix said:

HI,

I need to access a SVN repository that has an https:// url (not SSH). When I try to access it, I get:

Code:

svn: E120171: Unable to connect to a repository at URL 'https://xxxxxxxxx/trunk'
svn: E120171: Error running context: An error occurred during SSL communication

The URL is right, it works with other systems and I even copied a working repository from another machine and did «update».

That may not be an HTTPS problem. It could caused by a firewall on the local or remote machine, or some other connection problem. If the repository supports it, try

svn://

to see if the same error occurs.

  • Thread Starter

  • #5

It is not a firewall problem. It works from the same place, from a computer in the same subnet using HTTPS with other OSs (I got it to work con NetBSD, OpenBSD, Linux and even

mingw

!).

wblock@


  • #6

It could be a firewall on the FreeBSD client itself. If it the plain

svn://

works, it would verify that the problem is with HTTPS.

  • Thread Starter

  • #7

The repository works HTTPS only, sadly. I use SVN successfully with other repositories which have SSH. Firewall, like what? I don’t have installed anything willingly on my laptop. Perhaps it is there and I don’t know, does it come from base? I didn’t install anything explicitly from ports.

  • #8

Then my guess is that something went wrong somewhere in the past with the upgrade of some of your ports. This is an assumption mind you, but some of the Subversion dependencies required specific steps to upgrade:

Code:

root@smtp2:/usr/ports/devel/subversion # make run-depends-list
/usr/ports/databases/db42
/usr/ports/databases/sqlite3
/usr/ports/devel/apr1
/usr/ports/devel/gettext
/usr/ports/textproc/expat2
/usr/ports/www/serf
root@smtp2:/usr/ports/devel/subversion # make -C ../../www/serf run-depends-list
/usr/ports/devel/apr1

And when looking at

devel/apr1

in

/usr/ports/UPDATING

:

Code:

20130706:                                                                         AFFECTS: users of devel/apr1
  AUTHOR: ohauer@FreeBSD.org

  APR was updated to 1.4.8 and APR-util was updated to 1.5.2.

  Please rebuild all ports which are using functions from APR/APR-util
  such as Apache, Subversion, etc.

  # portmaster -r apr
    or
  # portupgrade -r devel/apr1
    or
  # pkg install -fR devel/apr1

Note that I’m not claiming that

devel/apr1

is the cause of all this, but it is most certainly a very reasonable assumption. Because this port provides HTTPS support for several other programs (like

www/apache22

for example).

As such my question: how well have you been paying attention to

/usr/ports/UPDATING

as of late?

When all else fails my suggestion, though it is a bit drastic, would be to enforce a rebuild of Subversion and everything it depends on. So basically using a command such as this: # portmaster -f devel/subversion.

However, if you haven’t been following the instructions which I quoted above then that would be a better approach. Because that will also rule out any issues which other ports might run into.

  • #9

multix said:

The repository works HTTPS only, sadly. I use SVN successfully with other repositories which have SSH. Firewall, like what? I don’t have installed anything willingly on my laptop. Perhaps it is there and I don’t know… does it come from base? I didn’t install anything explicitly from ports.

Does this mean that you have successfully connected to these «other repositories» from this laptop? If the answer is yes, then I would suspect you might be dealing with an SSL certificate problem.

  • Thread Starter

  • #10

Well, since I had problems with

seamonkey

crashing, I removed with pkg_delete ALL packages, I removed

/usr/local

,

/var/db/pkg

and

/var/db/ports

and reinstalled everything from scratch, thus the current

subversion

client is clean (

seamonkey

is still building, as it apparently pulls in whole

gcc

4.6)

SVN wasn’t working before, but isn’t yet either, but it is a clean build and shouldn’t be an upgrade problem.

  • Thread Starter

  • #11

ljboiler said:

Does this mean that you have successfully connected to these «other repositories» from this laptop? If the answer is yes, then I would suspect you might be dealing with a SSL certificate problem.

The certificate is most certainly self-signed. On other OS’s I get asked if I want to permanently accept it and then if I want to save my password.
I

  • #12

Then I can think of only one option to determine what is happening here. Install

www/lynx

and be sure to enable support for SSL. Then use

lynx

to access the HTTPS URL. If that also fails then the cause of the problem isn’t so much Subversion but lies elsewhere.

wblock@


  • #13

multix said:

The repository works HTTPS only, sadly. I use SVN successfully with other repositories which have SSH. Firewall, like what? I don’t have installed anything willingly on my laptop. Perhaps it is there and I don’t know, does it come from base? I didn’t install anything explicitly from ports.

ipfw(8) and

pf

are installed by default, and can be enabled with a single setting in

/etc/rc.conf

. (It doesn’t happen often, but sometimes.)

How about using an HTTPS-capable browser on the FreeBSD client to connect to the repository?

www/lynx

can do it if a graphical browser is not available.

  • Thread Starter

  • #14

Thanks for the support, investigation is continuing.

  1. I don’t have ipfwor pf enabled in /etc/rc.conf, checked.
  2. I was able to connect to the repository using Seamonkey, this means that 1) is confirmed and the problem is on the svnside.

Before connecting though, Seamonkey asked to add the certificate with a security exception (it is self-signed, I suppose, internal server). Perhaps SVN needs a way to do that too? On other systems I got asked about the certificate and if to accept it permanently, on FreeBSD not. Perhaps there is a configuration to change somewhere, a different default?

wblock@


  • Thread Starter

  • #16

wblock@ said:

If svn does not already know the server’s certificate, it will prompt as shown in http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/svn-mirrors.html. If accepted permanently, that information is stored in

~/.subversion

. Maybe that directory is not readable or writable for the user?

It is. I touched a file inside and I can do that. Everything is correctly user:group owned. Could it be possible that for some reason SVN is not using or detecting the module I need? Is there a command to print out at runtime? That would also allow me to check against Linux and NetBSD where I have it working.

  • #17

multix said:

Before connecting though, Seamonkey asked to add the certificate with a security exception (it is self-signed, I suppose, internal server).

Now we’re getting somewhere!

This does indeed put the focus completely on Subversion and it’s apparent inability to use the HTTP protocol. First of all; there is more to the

~/.subversion

directory than merely the entry itself. Start by checking if there are any entries in the

~/.subversion/auth/svn.ssl.server

directory (where

~

is of course an alias for your home directory).

Be sure to check the right directory ;) I’m just mentioning this because I started to check my personal home directory for this message (

~peter

) while in fact I should have been looking at

/root/.subversion

instead ;).

If there are any entries there: remove them and try again.

But at this stage I think your best option to get rid of this problem is to rebuild Subversion and the ports it depends on, as I already mentioned in an earlier message.

Change History
(42)



in reply to:  1



comment:2

by martinl, 6 years ago

Priority: normalcritical



comment:3

by strk, 6 years ago

It looks like it’d take manually compiling libssl and mod_ssl.
Or upgrade to a still supported Debian version (even backports repository has been obsoleted)



comment:6

by strk, 6 years ago

For the record: Ubuntu 17.04 does not ship mod_ssl anymore, but it does ship mod_gnutls.



comment:7

by mlennert, 5 years ago

Just a ping, confirming the same issue for me. And yes, this happens after the Debian OpenSSL upgrade.



comment:9

by strk, 5 years ago

For those like me who receive comments by mail: the suggested workaround is for clients, not server (post-submit edit of trac comments are not notified by mail, the info was added later)



comment:10

by mlennert, 5 years ago

Thanks for the workaround. Are there any plans of upgrading the server so it supports 1.2+ ?



comment:11

by martinl, 5 years ago

Any chance to get svn server fixed to support 1.2+?



comment:12

by strk, 5 years ago

I don’t have time to work on it, but if anyone else does
I suggest to look at GNU-lts module (is avalable as packaged
for the version of OS on that system).



comment:13

by rduivenvoorde, 5 years ago

During OSGeo-NL GRASS-intro, we were hit with this one too :-(



comment:16

by robe, 5 years ago

I have run into similar issues when using Caddy (for proxying). This just highlights the fact we are desperately in need of upgrading the trac server. The OS is just too old. It’s running Debian 6 which at this point is ancient.



comment:18

by strk, 5 years ago

Great news, thank you !
Please make sure to update the VM information on the wiki
at the end of the upgrade process.



comment:19

by martin, 5 years ago

Upgrade to Debian7 on TracSVN VM is almost complete, please report features which might have gone lost.



comment:20

by martin, 5 years ago

Upgrade to Debian7 on Download VM is almost complete, please report features which might have gone lost.



comment:27

by strk, 5 years ago

BTW, this discussion about badges should go in a separate ticket, this ticket was just about SSL



comment:29

by strk, 5 years ago

Martin Landa: can we close this as fixed now ?



comment:32

by martin, 5 years ago

Owner: changed from sac@… to martin
Status: newassigned



comment:33

by martin, 5 years ago

Milestone: Sysadmin Contract 2018-I



comment:40

by strk, 5 years ago

I find the idea of setting up a read only clone useful
in general, we could keep it ready and document how
to do it again next time it will be needed, for any
reason.



comment:41

by robe, 4 years ago

is this still an issue or can we close?



comment:42

by robe, 4 years ago

Resolution: worksforme
Status: assignedclosed

Note:
See TracTickets
for help on using tickets.

Понравилась статья? Поделить с друзьями:
  • Error running adb exe droidcam
  • Error run failed please update the board
  • Error run as root maybe error code 78
  • Error ru сервисный центр отзывы
  • Error ru centerinform transport pki key keymaster ошибка инициализации криптопровайдера rsa