When setting up Redmine as a project management system you might run into an issue after configuring the SVN repository for a project. If the SVN project already exists and there are a bunch of commits typically when browsing to the repository for the first time it will time out. Usually when it does time out it will display in your browser as a 503 error. Below I discuss configuring the SVN repository and then running a rake task to resolve the browser time out issue.
First lets set up the SVN repository following the directions below.
- Open Redmine Project: After you have created a Redmine project that the SVN repository will belong to browse to that project in a browser.
- Turn on Repository Module: Click the Settings tab underneath the project. Once the settings sub section has been opened click on Modules. If there is not a check next to Repository then check it and click save at the bottom as shown below.
- Open Repository Settings: Now that the Repository module is turned on there will be a Repository tab underneath Settings for this specific project. Click on the Repository tab underneath settings and a new configuration window will be displayed as shown below.
- Modify SVN Repo Settings: Now choose Subversion from the drop down and fill in the details. You will need to add the URL to the subversion project, the login, and the password as shown below.
Once the settings have been entered click the Create button below the settings.
Now that the subversion project has been configured do not yet click on the new Repository tab located underneath the project. Instead login to the server using the Ruby user to run a rake task. Inside the project head enter the below command.
- ruby script/runner "Repository.fetch_changesets" -e production
This command will not produce any output and it can take a long time to execute so be patient. Once you are back to a shell prompt you can now click on the Repository tab underneath the project and you will be able to browse your subversion project.