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. Repository Integration (Subversion)

Repository Integration (Subversion)

Added by mab internet over 9 years ago

I have been trying to configure Subversion (with configuration.yml) to be able to manage the repositories form OpenProject 5.0.13 but I still do not have good results. The link to repository integration guide on the site of OpenProject is broken, but I found it somewhere else. I am wondering if this functionality is really active in OpenProject 5 or not.

This is the configuration I set in config/configuration.yml:
scm:
subversion:
client_command: /usr/bin/svn
manages: /home/openproject50dev/openproject/repositories/svn

The path for the repositories is owned by the user openproject50dev, the subversion version I have is 1.6.17, I tried with Ubuntu 12.04 and 14.04. I have a manual installation of OpenProject.
When I want to create a repository for a project I only see the option Existing Subversion repository to link an existing repository. I also tried some settings in System settings | Repositories. Am I missing something in the configuration?

Cheers
Luis


Replies (4)

RE: Repository Integration (Subversion) - Added by Oliver Günther over 9 years ago

The configuration.yml is only read upon server startup. Did you restart the application server after changing the configuration?
The rest looks good, it should show you the ‘managed’ option in the Project settings > Repository tab.

For good measure, you can also whether the configuration is parsed correctly by running the following command

RAILS_ENV=production bundle exec rails runner "puts OpenProject::Configuration['scm']['subversion']"

It should output the hash:
{"manages"=>"/home/openproject50dev/...", ...}

BTW: The repository integration guide is available here: https://github.com/opf/openproject/blob/stable/5/doc/operation_guides/manual/repository-integration.md
Please let me know which link was invalid so we can fix it, thanks!

Best,
Oliver

RE: Repository Integration (Subversion) - Added by mab internet over 9 years ago

Thank you very much for the help. I found the problem and OpenProject is now working with Subversion.

I was getting an error (“undefined method `[]’ for nil:NilClass (NoMethodError)”) with:
RAILS_ENV=production bundle exec rails runner “puts OpenProject::Configuration[‘scm’][‘subversion’]”

Then I used a online YAML validator and found errors in my configuration.yml due to blank spaces.

My configuration file looks like this after correcting errors (without commented text):

rails_force_ssl: false
session_store: :cache_store
disable_password_choice: false
production:
email_delivery_method: “smtp”
smtp_address: “example.com”
smtp_port: 25
smtp_authentication: :plain
smtp_domain: ‘example.com’
smtp_user_name: ‘myaccount’
smtp_password: ‘password’
scm:
subversion:
client_command: /usr/bin/svn
manages: /home/openproject50dev/openproject/repositories/svn
rails_cache_store: :memcache

Regarding the broken link
On this page:
https://www.openproject.org/open-source/manual-installation/manual-installation-guide/
Section:
Repository Integration
The broken link to “repository integration guide” points to:
https://www.openproject.org/open-source/manual-installation/manual-installation-guide/repository-integration.md

Thanks again Oliver

RE: Repository Integration (Subversion) - Added by Oliver Günther over 9 years ago

Yeah, YAML is a whiny child regarding whitespaces. I’ll think about if we can validate the YAML ourselves during startup without much effort.

Thanks for the follow up on the incorrect link, I’ll have that fixed.

Best,
Oliver

RE: Repository Integration (Subversion) - Added by Christopher Bonitz about 9 years ago

mab internet wrote:

Regarding the broken link
On this page:
https://www.openproject.org/open-source/manual-installation/manual-installation-guide/
Section:
Repository Integration
The broken link to “repository integration guide” points to:
https://www.openproject.org/open-source/manual-installation/manual-installation-guide/repository-integration.md

Thanks again Oliver

This is still not pointing to an existing page.

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