Project

General

Profile

Some problems with svn repository

Added by George Crawford over 16 years ago

Hi,

The Redmine interface to my svn repository is not yet behaving as expected.

With a clean install of Readmine, I set up a project and configured a Sourceforge SVN repository. Clicking the Repository tab in the project gave the error
The entry or revision was not found in the repository.

Using the command
ruby script/runner "Repository.fetch_changesets" -e production;
I have been able to load the repository data into the Redmine database. Now when I click Repository I get a list of "Latest revisions", but no repository browser as can be seen here: http://www.redmine.org/repositories/show/redmine. Also, viewing differences gives the same error:
The entry or revision was not found in the repository.

I am a complete Ruby and RoR newbie, so I apologise for any stupid questions. The only log file I've found is at log/mongrel.log, and it gives a number of error lines as follows:
sh: svn: command not found
I guess the path is not set up to include my svn binary, which is at /usr/local/svn/bin/svn.

I've done some Google searching, and found one potential solution. I added the line
ENV['PATH'] = ENV['PATH'] + '/usr/local/svn/bin'
to the top of the /config/environment.rb file, then restarted the server, but it made no difference. The error persists.

Can you please give me an idea what's wrong? If it is a paths issue, how can I correctly set up the svn path in Redmine?

Thanks!


Replies (15)

RE: Some problems with svn repository - Added by George Crawford over 16 years ago

I've discovered a bit more info on this.

The problem occurs when i start the application using the cPanel RoR interface. However, if I start the application using:
ruby script/server -e production -p 12001
the problem is gone - I can browse the repository and view diffs as expected.

Does this help at all? I would much prefer to be able to start and stop the app from within cPanel if possible.

Thanks

RE: Some problems with svn repository - Added by Bradford W over 16 years ago

+1, I'm having a similar problem but when using mongrel_rails cluster to start the redmine application AND my svn repository is on the same server.

RE: Some problems with svn repository - Added by Bradford W over 16 years ago

All I get from the logs in production mode is an internal server error on the SOAP URL:
Completed in 0.11779 (8 reqs/sec) | Rendering: 0.01436 (12%) | DB: 0.00000 (0%) | 500 Internal Server Error [http://<servername>/repositories/show/btrue]

I used the reposman as follows:
ruby reposman.rb -r <servername> -s /var/svn/repos -u file:///var/svn/repos --owner mongrel

Is there a way to revert it? I don't care so much about the management, I just wish to view the repository.

RE: Some problems with svn repository - Added by Bradford W over 16 years ago

Even when implementing a new project and entering the path to the repositories on the same server still won't result in it browsing.
Repo path was file:///var/svn/repos
I left the username/password fields blank and I also added mongrel to my svnusers group but still no luck; weird.

RE: Some problems with svn repository - Added by Matthew Williams over 16 years ago

I'm having the same issue here...

Fresh instance of the latest Redmine running with Mongrel+Jruby

From the command line I can do a svn list svn://host just fine but from Redmine on the same box I get the "The entry or revision was not found in the repository." error. Not too many details in my production log aside from a bunch of 500 errors.

Any thoughts or strides made to correct this issue?

RE: Some problems with svn repository - Added by Matthew Williams over 16 years ago

Update:

I found my issue to simply be an unsupported version of the Subversion client. I had to drop down to development mode and see what commands it was passing to the shell because as far as I could tell svn was working correctly.

I submitted a ticket for a more meaningful error message when you're running an early version of Subversion....

RE: Some problems with svn repository - Added by Bradford W over 16 years ago

What version of subversion did you upgrade to in order to get it to work? I'll try updating mine

RE: Some problems with svn repository - Added by Bradford W over 16 years ago

I was using subversion 1.4.6, now upgrading to 1.5.0 - will report back with findings.

RE: Some problems with svn repository - Added by Bradford W over 16 years ago

1.5.0 did the trick!

RE: Some problems with svn repository - Added by John Nelson over 16 years ago

Using svn client 1.4.2...
Connecting via https to a remote svn server...

I found the issue to be an "invalid" ssl certificate (the stock one installed with the CentOS distribution). Once I had run svn from the command line and accepted (permanently) the certificate, Redmine could connect to the repo without another hitch.

We will shortly be moving all of our repos to the same host were Redmine runs, and accessing via the file system. Will report any problems/fixes.

RE: Some problems with svn repository - Added by Ramesh Nair about 16 years ago

Just had this exact same issue. After hours of trying different things, upgrading to Subversion 1.5 (from 1.4.4) on my server fixed it for me too.

RE: Some problems with svn repository - Added by Tim Davis almost 16 years ago

Sorry to bring up a dead post but I wanted to share my all day trials with anyone that may experience them again:

I've installed SVN and Redmine on a Hostmonster account.

I was having the same problem of diffs not working AND the browser now showing anything.

What I did to fix it was goto redmine/lib/redmine/scm/adapters and edit the file called subversion_adapter.rb.

There is a line in there that says this: -> SVN_BIN = "svn"
I had to change that to my absolute path: -> SVN_BIN = "/home/<username>/usr/bin/bin/svn"

Now it works perfectly!

RE: Some problems with svn repository - Added by Jan Paricka about 15 years ago

I have the same problem - diffs not working. I am on a svn version 1.6.6 - I did pay a special attention to spacing in configs as adviced somewhere on the forum - nothing helped. I very much appreciate any help I can get with this. Thanks!

RE: Some problems with svn repository - Added by burkino fasso almost 15 years ago

hi Jan,
is everything working correctly now on your hostmonster account ?
I am looking for a really cheap hosting solution, and i definitely would love to use redmine on it.

Would anyone have a redmine site hosted by hostmonster or justhost.com so i can see it work ??

RE: Some problems with svn repository - Added by Jan Paricka almost 15 years ago

I'm on GoGrid. I was able to work out the problem in the end but I do not remember what it was.. Wish I can help. All the best.

    (1-15/15)