redmine 0.9 + svn + sqlite

Added by Vladimir Elizarov almost 10 years ago

Hello. I'm trying to configuration a redmine + sqlite + svn on howto: http://www.redmine.org/wiki/1/Repositories_access_control_with_apache_mod_dav_svn_and_mod_perl

my database.yml:
production:
adapter: sqlite3
database: /var/lib/dbconfig-common/sqlite3/redmine/instances/default/redmine_default
encoding: utf8

apache location conf:
PerlLoadModule Apache::Redmine
<Location /svn>
DAV svn
SVNParentPath "/var/svn"
Order deny,allow
Deny from all
Satisfy any

PerlAccessHandler Apache::Authn::Redmine::access_handler
PerlAuthenHandler Apache::Authn::Redmine::authen_handler
AuthType Basic
AuthName "Redmine SVN Repository"
#read-only access
<Limit GET PROPFIND OPTIONS REPORT>
Require valid-user
</Limit>
  1. write access
    <LimitExcept GET PROPFIND OPTIONS REPORT>
    Require valid-user
    </LimitExcept>
RedmineDSN "DBI:SQLite:dbname=/var/lib/dbconfig-common/sqlite3/redmine/instances/default/redmine_default" 
&lt;/Location&gt;

when checking the store (svn ls http://192.168.10.16:8080/svn/) I get this message:
svn: OPTIONS of 'http://192.168.10.16:8080/svn': authorization failed (http://192.168.10.16:8080)

username and password exactly correct. this happens for any account of redmine. What's the problem?

Replies (8)

RE: redmine 0.9 + svn + sqlite - Added by Felix Schäfer almost 10 years ago

You won't be able to access the store, because the auth provider can't tell apache to only selectively show you repositories you are allowed to see. Please create a repository in there and try with the address of the repository.

RE: redmine 0.9 + svn + sqlite - Added by Vladimir Elizarov almost 10 years ago

i'm create repository:
svnadmin create /var/svn/example

svn ls http://192.168.10.16:8080/svn/example
tried again to come and have the same problem.

RE: redmine 0.9 + svn + sqlite - Added by Felix Schäfer almost 10 years ago

Do you have a project with the identificator example?

RE: redmine 0.9 + svn + sqlite - Added by Vladimir Elizarov almost 10 years ago

Yes. I'm create project example with identificator example

RE: redmine 0.9 + svn + sqlite - Added by Felix Schäfer almost 10 years ago

I suppose you have tried with a user that has read rights to the repository? Anyway, turn on the perl debug output in the vhost config (can't remember the exact parameter name, but google is your friend) and see in your apache log what backfires.

RE: redmine 0.9 + svn + sqlite - Added by Vladimir Elizarov almost 10 years ago

Yes. I introduce the administrator account. Can you tell what exactly is required to enter in the vhost config? I found only PerlTrace (http://perl.apache.org/docs/2.0/user/config/config.html # Debug_Directives - here) but it does not work, apparently I have not compiled with mod_perl MP_TRACE = 1. And PerlWarn On which with LogLevel debug does not give anything new in error.log

RE: redmine 0.9 + svn + sqlite - Added by Felix Schäfer almost 10 years ago

Mmh, not sure the perl thing takes administratorhood into account, please make the test again with a user that has explicit access to the repository as per redmine permissions.

PerlWarn was the one I was thinking about, but I won't be able to help if it didn't yield any output either, sorry.

RE: redmine 0.9 + svn + sqlite - Added by Vladimir Elizarov almost 10 years ago

Thanks for your help! The problem was that I did not put the right account in the project.

(1-8/8)