Project

General

Profile

The entry or revision was not found in the repository.

Added by RDX RDX over 14 years ago

Hello,
I'm new with Redmine which I'm trying to setup on FreeBSD. So far everything works, but when I try to access my subversion repository I've got this one:
"The entry or revision was not found in the repository."

I'm using subversion and my repository is defined like this:
file:///path/to/repository

I checked the www user, which is used from apache and it has access to the repository itself. I even run the following command without problems:
su -m www -c '/usr/local/bin/svn list file:///path/to/repository'

I have to mention that I changed SVN_BIN to SVN_BIN = "/usr/local/bin/svn " in lib/redmine/scm/adapters/subversion_adapter.rb. In httpd-error log I found a lot of recors like this:
svn: not found
svn: not found
svn: not found

Any suggestions are welcome! Thanks in advance!


Replies (5)

RE: The entry or revision was not found in the repository. - Added by Felix Schäfer over 14 years ago

You write you are using Apache, I'd wager with passenger? Have a read at the user-switching security feature of passenger (http://www.modrails.com/documentation/Users%20guide%20Apache.html#user_switching), it might be that redmine runs as user nobody in the end. You can also check that by ps aux | grep -i redmine (or equivalent) after having loaded a page in redmine.

RE: The entry or revision was not found in the repository. - Added by RDX RDX over 14 years ago

This is the output from # ps -aux|grep redmine:
www 71176 0.3 4.4 77260 34396 ?? S Wed01PM 1:04.56 /usr/local/bin/ruby /var/www/redmine/public/dispatch.fcgi

So it runs with www user, which should have access to the repository. I checked the log directory, specially the production.log after trying to access the repository and here is the last row:
Processing RepositoriesController#show .... [GET]
Parameters: {"action"=>"show", "id"=>"zzz", "controller"=>"repositories"}
Rendering template within layouts/base
Completed in 2332ms (View: 1296, DB: 128) | 500 Internal Server Error

Do you know any way to get detailed info about which svn command is executed and with which user?
Thnaks!

RE: The entry or revision was not found in the repository. - Added by Felix Schäfer over 14 years ago

Ah, you have fcgi, not passenger.

You could try toggling the values for config.action_controller.consider_all_requests_local and config.action_controller.perform_caching in $REDMINE/config/environments/production.rb (lines 12-13) and restart the fcgi/apache, that should give you more verbosity (it will slow down redmine execution too as it disables some caching, but you can switch it back once it works), maybe you will find more of what you're looking for there.

RE: The entry or revision was not found in the repository. - Added by RDX RDX over 14 years ago

Finally I found the problem. After replacing mod_fastcgi with mod_fcgid everything start working just fine! I have to mention that I had similar problems with mod_fcgid, on some projects with a lot of files when I click on repository tab it loads too slow (probably because the number of files) and after 40 seconds stopped with "Internal Server Error". I solved the problem changing FcgidIOTimeout from 40 to 620. Probably the time out was the problem on mod_fastcgi but I'm not sure about that, mod_fcgid works well and I'm not going to replace it for now. I never worked with ruby applications before but have to mention that in my opinion they are heavier than php applications for example so if you plan to work with ruby apps - buy contemporary hardware.

RE: The entry or revision was not found in the repository. - Added by Felix Schäfer over 14 years ago

You can stop redmine from reloading new changesets on loading the repository tab, but you need to have a cron or a post-commit hook to load those changesets instead, see the FAQ for more info.

    (1-5/5)