Project

General

Profile

SVN and Authentication error

Added by Sean Whitney over 16 years ago

I'm running redmine in a openvz instance running ubuntu 8.04.
Rails and gem are installed from ubuntu.
All other required ruby packages are installed from gem.

I have mongrel_clusters successfully working, and I can create an account, add a project and have reposman.rb successfully create the SVN respository.

I running the latest dev version, however I had the same error when I tried this with the production release
I set up Redmine.pm following the directions in the file itself (which now differs from the wiki page)

Running this RAILS_ENV=production script/about gives me:
/var/lib/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:275:in `load_missing_constant': uninitialized constant Rails::Info (NameError)
from /var/lib/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:467:in `const_missing'
from /var/lib/gems/1.8/gems/rails-2.1.0/lib/commands/about.rb:2
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'
from script/about:3

However running script/about gives me

About your application's environment
Ruby version 1.8.6 (i486-linux)
RubyGems version 1.1.1
Rails version 2.1.0
Active Record version 2.1.0
Action Pack version 2.1.0
Active Resource version 2.1.0
Action Mailer version 2.1.0
Active Support version 2.1.0
Application root /var/www/rails_apps/redmine
Environment development
Database adapter mysql
Database schema version 0

I'm not a ruby person so I don't understand why this doesn't work....

Everything in the installation goes smoothly until I get to the last line in

http://www.redmine.org/wiki/redmine/Repositories_access_control_with_apache_mod_dav_svn_and_mod_perl

svn ls http://my.svn.server/svn/myproject for my svn repository produces

Authentication realm: <http:// redmine
Password for 'sean':
Authentication realm: <http:// redmine
Username: sean
Password for 'sean':
Authentication realm: <http:// redmine
Username: sean
Password for 'sean':
svn: PROPFIND request failed on '/svn/test'
svn: PROPFIND of '/svn/test': authorization failed (<removed>)

The account sean is a administrative account I created.

Apache's error log shows nothing, and the access log shows
<host IP removed> - sean [21/Aug/2008:13:28:52 \-0700] "PROPFIND /svn/test HTTP/1.1" 401 556 "-" "SVN/1.4.6 (r28521) neon/0.27.2"

When I tried to access the repository in redmine I get a red banner stating

The entry or revision was not found in the repository.

access.log shows

> /var/log/apache2/access.log <
<client IP removed> - - [21/Aug/2008:13:31:27 -0700] "GET /repositories/show/test HTTP/1.1" 500 2892 "http://<server name removed>/projects/list_files/test" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1"

the production log show

> /var/www/rails_apps/redmine/log/production.log <

Processing RepositoriesController#show (for <client IP removed> at 2008-08-21 13:31:27) [GET]
Session ID: fa1d0c570357b79ed22141fc865620f4
Parameters: {"action"=>"show", "id"=>"test", "controller"=>"repositories"}
Rendering template within layouts/base
Completed in 0.04832 (20 reqs/sec) | Rendering: 0.00639 (13%) | DB: 0.00076 (1%) | 500 Internal Server Error [http://&lt;server name removed>/repositories/show/test]


Replies (1)

RE: SVN and Authentication error - Added by Sean Whitney over 16 years ago

Ok, by watching the mysql log I determined that I wasn't assigned as a member of the test svn project. So I added myself.

Now I'm getting a new error.

From the command line:
svn ls http://&lt;host removed>/svn/test
Authentication realm: <<host removed>:80> redmine
Password for 'sean':
svn: Server sent unexpected return value (501 Not Implemented) in response to OPTIONS request for 'http://<host removed>/svn/test'

> /var/log/apache2/access.log <

<client removed> - - [21/Aug/2008:17:05:26 \-0700] "OPTIONS /svn/test HTTP/1.1" 401 556 "-" "SVN/1.5.1 (r32289) neon/0.26.4"
<client removed> - sean [21/Aug/2008:17:05:30 \-0700] "OPTIONS /svn/test HTTP/1.1" 501 1 "-" "SVN/1.5.1 (r32289) neon/0.26.4"

> /var/www/rails_apps/redmine/log/production.log <

Processing ApplicationController#index (for 24.20.92.49 at 2008-08-21 17:05:30) [OPTIONS]
Session ID: 8e8034fcc48a6cc4a674e50da8fce6b5
Parameters: {}

ActionController::NotImplemented (Only requests are allowed.):
/var/lib/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/routing/recognition_optimisation.rb:63:in `recognize_path'
/var/lib/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/routing/route_set.rb:384:in `recognize'
/var/lib/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:148:in `handle_request'
/var/lib/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:107:in `dispatch'
/var/lib/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:104:in `synchronize'
/var/lib/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:104:in `dispatch'
/var/lib/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi'
/var/lib/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:35:in `dispatch'
/var/lib/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:76:in `process'
/var/lib/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:74:in `synchronize'
/var/lib/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:74:in `process'
/var/lib/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:159:in `process_client'
/var/lib/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:158:in `each'
/var/lib/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:158:in `process_client'
/var/lib/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in `run'
/var/lib/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in `initialize'
/var/lib/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in `new'
/var/lib/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in `run'
/var/lib/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:268:in `initialize'
/var/lib/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:268:in `new'
/var/lib/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:268:in `run'
/var/lib/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:282:in `run'
/var/lib/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:281:in `each'
/var/lib/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:281:in `run'
/var/lib/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:128:in `run'
/var/lib/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/command.rb:212:in `run'
/var/lib/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281
/usr/bin/mongrel_rails:19:in `load'
/usr/bin/mongrel_rails:19

A http request to the repository through redmine results in

> /var/log/apache2/access.log <
<client IP removed> - - [21/Aug/2008:17:11:24 \-0700] "GET /repositories/show/test HTTP/1.1" 500 3148 "http://<host removed>/projects/settings/test" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1" > /var/www/rails_apps/redmine/log/production.log <

Processing RepositoriesController#show (for 24.20.92.49 at 2008-08-21 17:11:24) [GET]
Session ID: fa1d0c570357b79ed22141fc865620f4
Parameters: {"action"=>"show", "id"=>"test", "controller"=>"repositories"}
Rendering template within layouts/base
Completed in 0.05623 (17 reqs/sec) | Rendering: 0.00922 (16%) | DB: 0.00135 (2%) | 500 Internal Server Error [http://&lt;host removed>/repositories/show/test]

    (1-1/1)