Redmine can't find subversion or git binary
Added by Tomas Åberg almost 12 years ago
I've followed these guides to install redmine on my Ubuntu 12.04 server.
- http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_on_Ubuntu_step_by_step
and then followed this one to upgrade to 2.2.3 - http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_in_Ubuntu
I've followed :
- http://projects.andriylesyuk.com/projects/scm-creator/wiki/Install
(I'm using version in trunk.)
and - http://www.redmine.org/projects/redmine/wiki/Repositories_access_control_with_apache_mod_dav_svn_and_mod_perl
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 almost 12 years ago
- redmine can't find the subversion binary
- 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
- /svn location for users
PerlLoadModule Apache::Redmine
<Location /svn>
DAV svn
SVNParentPath "/var/svn-repos"
Order deny,allow
Deny from all
Satisfy anyPerlAccessHandler 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
- Allow from another-ip
Satisfy any
- write access
Require valid-user
- 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 almost 12 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 almost 12 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-userPerlAccessHandler 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 lolprojRedmineDSN "DBI:mysql:database=redmine_default;host=localhost"
RedmineDbUser "redmine"
RedmineDbPass "mypass"</Location>
Also had to add my self as a member of the project >.<