Project

General

Profile

Redmine can't find subversion or git binary

Added by Tomas Åberg about 11 years ago

Hello everyone.
I've followed these guides to install redmine on my Ubuntu 12.04 server. I also want to integrate redmine with subversion, and the easiest way I think is with the redmine_scm plugin.
I've followed :

I've deployed servers with this setup before without any problems, now however if i go to Administration -> Settings -> Repositories both subversion and git are marked with an ! and says it's unable to find the binary. I think this is the problem when i try to do a commit with subversion, I get the following error:

svn: Server sent unexpected return value (500 Internal Server Error) in response to OPTIONS request for 'http://server/svn/test3'

If I go to Project -> Test 3 -> Repository i get a 404 error code.
Tailing in production.log

Processing by RepositoriesController#show as HTML
Parameters: {"id"=>"test3"}
Current user: tomas (id=1)
Error parsing svn output: undefined method `[]' for nil:NilClass
Output was:

Rendered common/error.html.erb within layouts/base (0.7ms)
Completed 404 Not Found in 226ms (Views: 66.1ms | ActiveRecord: 2.4ms)

And I guess this is the problem that redmine can't find "svn"?

I tried changing the SVN_BIN in subversion_adapter.rb to BIN_ENV = "/usr/bin/svn" but it didn't work.

I'm all out of ideas, could someone please help me? :-)


Replies (3)

RE: Redmine can't find subversion or git binary - Added by Tomas Åberg about 11 years ago

Okay, so it seems there are two problems here.
  1. redmine can't find the subversion binary
  2. Server sent unexpected return value (500 Internal Server Error) in response to OPTIONS request for 'http://10.0.0.100/svn/test3'

The 2:nd problem I'd guess is due to this problem in apache2/error.log

[Thu Mar 21 08:00:21 2013] [error] [client 10.0.6.5] AuthUserFile not specified in the configuration

This is how my sites-enabled files looks like

redmine

<Directory /var/www/redmine>
RailsBaseURI /redmine
PassengerResolveSymlinksInDocumentRoot on
</Directory>

svn

  1. /svn location for users
    PerlLoadModule Apache::Redmine
    <Location /svn>
    DAV svn
    SVNParentPath "/var/svn-repos"
    Order deny,allow
    Deny from all
    Satisfy any

PerlAccessHandler Apache::Authn::Redmine::access_handler
PerlAuthenHandler Apache::Authn::Redmine::authen_handler
AuthType Basic
AuthName "Redmine Subversion Repository"

#read-only access

Require valid-user
Allow from localhost
  1. Allow from another-ip
    Satisfy any
  1. write access

Require valid-user

  1. for mysql
    RedmineDSN "DBI:mysql:database=redmine_default;host=localhost"
    RedmineDbUser "redmine"
    RedmineDbPass "mypassword"

</Location>

~

RE: Redmine can't find subversion or git binary - Added by Tomas Åberg about 11 years ago

Alright, I'm close to get it to work now.
I reverted to a old snapshot and got the plugin to work with redmine.
My problem now is that I can't commit to project.

Server sent unexpected return value (500 Internal Server Error) in response to OPTIONS request for 'http://10.0.0.100/svn/test3'

And the problem in apache2/error.log still shows:

[Thu Mar 21 08:00:21 2013] [error] [client 10.0.6.5] AuthUserFile not specified in the configuration

But as far as I know I shouldn't have to specify AuthUserFile because Redmine is used as authenticator?

RE: Redmine can't find subversion or git binary - Added by Tomas Åberg about 11 years ago

Alright, got it to work now.

PerlLoadModule Apache::Redmine
<Location /svn>
DAV svn
SVNParentPath "/var/lib/svn"

AuthType Basic
AuthName "Redmine SVN"
Require valid-user

PerlAccessHandler Apache::Authn::Redmine::access_handler
PerlAuthenHandler Apache::Authn::Redmine::authen_handler
#PerlSetVar dsn DBI:mysql:database=redmine;host=localhost
#PerlSetVar db_user redmine
#PerlSetVar db_pass lolproj

RedmineDSN "DBI:mysql:database=redmine_default;host=localhost"

RedmineDbUser "redmine"
RedmineDbPass "mypass"

</Location>

Also had to add my self as a member of the project >.<

    (1-3/3)