Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. Howto install openproject with an external svn server

Howto install openproject with an external svn server

Added by Florian Seybold almost 10 years ago

We have an external svn server here. External means svn is running not on the openproject server.
It can be contacted under https://svn.servername.
How do I configure openproject not to use its internal svn instead of the existing external svn server?

Any advice?
Unfortunately, no documentation nor hints on google about that.


Replies (3)

RE: Howto install openproject with an external svn server - Added by Oliver Günther almost 10 years ago

Hi Florian,

The following conditions have to be met in order for this to work:

  1. The Repository Web Service has been enabled and an API key was generated (cf. Administration > Settings > Repository)
  2. Your server running OpenProject is configured to allow connections from the SVN server to the ‘/sys’ API endpoint.
  3. Your SVN server runs Apache2 in order to use the included OpenProjectAuthentication.pm perl module.
  4. The repositories you want to authorize through OpenProject are named identical to the surrounding project in OpenProject (e.g., project ‘Project with repository’ with an identifier ‘project-with-repository’. The repository must also be named ‘project-with-repository’ on your external SVN server.
  5. Your SVN repositories are structured as follows:
  • <SVN root directory (e.g. /opt/subversion/>
    • …

Then you can directly use the following guide regarding authorization of project repositories which is available at:
https://github.com/opf/openproject/blob/dev/doc/subversion_and_git_integration.md

You’ll need to change a few bits in that exemplary configuration, which is targeted at servers running OpenProject and mod_dav_svn on the same machine:

  • Depending on your setup on the server that runs OpenProject, use LocationMatch to allow the SVN server access to the /sys API.
  • Change the <Location /svn> to <Location />, as your message implies you’re using a subdomain for SVN.

Please reply to this post with any questions you might have regarding that configuration.

Best regards,
Oliver Günther

RE: Howto install openproject with an external svn server - Added by Florian Seybold almost 10 years ago

So finally, our external snv server is able to communicate with openproject.
Thanks Oliver for your effort, but your answer and the link was not useful.

In our case, the repository has a different name than the openproject project.
…and it works. ;-)

The problem I ran into, was that the history - or count of revisions - for this repository was to much for openproject.
So, the configuration was just fine, but after you click on repository insinde openproject a proxy error message appears after some time.
The result was, that openproject did not react anymore to any input.
After a restart, under the activity option, some revisions were added (but not all).
A tip from here https://community.openproject.org/topics/4943?r=5002 and here https://community.openproject.org/topics/4129?page=1&per_page=100 led me to the solution of setting the WEB_TIMEOUT parameter to 1000000.
After a long time and many timeouts and openproject restarts we finally have all revisions available in openproject for this repository/project.

After importing, I set WEB_TIMEOUT to a more normal value of 3600.
Now openproject works just fine and as expected.
I guess the same problem will appear if we try to add another existing large repository.

So, should I post a BUG?

RE: Howto install openproject with an external svn server - Added by Oliver Günther almost 10 years ago

Hi Florian,

thanks for the update! I will update the documentation with the specific project identifier requirement.
If you have other suggestions regarding improvements to the documentation (perhaps making it more visible at some other page), please let me know!

Concerning your follow-up issue:

Florian Seybold wrote:

I guess the same problem will appear if we try to add another existing large repository.

So, should I post a BUG?

If you can spare the time, a bug report from you would be awesome. I think we can find a way to work around that limit (e.g., by fetching the changesets asynchronously).
I will continue the discussion on that report.

Best,
Oliver

  • (1 - 3/3)
Loading...