Project

General

Profile

Question about redmine svn repository access with https

Added by Peter Mueller almost 16 years ago

Hi All,

this is my configuration:

Environment:
Debian Lenny
Ruby version 1.8.6 (x86_64-linux)
RubyGems version 1.3.1
Rails version 2.1.2
Active Record version 2.1.2
Action Pack version 2.1.2
Active Resource version 2.1.2
Action Mailer version 2.1.2
Active Support version 2.1.2
Application root /var/www/redmine
Environment development
Database adapter mysql

I'm using the mongrel cluster and the appache2 as load balancer. (Pretty much a standard configuration.)
The apache as www-data user and www-data group member runs redmine.

I do have some problems to browse the svn repository within redmine.
This is the error message (redmine web interface repository view): The entry or revision was not found in the repository.
My svn repo is at https://localhost/sandbox_svn/

As far as I understood the FAQ right I must accept the ssl certificate manually before viewing from redmine.

so I did: (www-data user home is /var/www.)

su www-data
cd /tmp
svn --config-dir ./redmine/.svn/.subversion co https://localhost/sandbox_svn/ sandbox

and accepted the certificate permanentely.

But the svn browsing with https repository, https://localhost/sandbox_svn/, still not work. (Works only with http repository, http://localhost/sandbox_svn/.)

Are there any suggestions what else could be wrong?

Best regards peter


Replies (5)

RE: Question about redmine svn repository access with https - Added by Teddy L almost 16 years ago

I think it should be svn --config-dir /home/redmine/.subversion co https://localhost/sandbox_svn/ sandbox if redmine is the user running your service.

RE: Question about redmine svn repository access with https - Added by Peter Mueller almost 16 years ago

Hi Teddy L,

thank you for your help.

My redmine is under /var/www/redmine

permissions: $ls -all
$drwxr-xr-x 18 www-data www-data 4096 2009-01-27 13:36 redmine

so I tryed:
#su www-data
$cd /tmp
$svn --config-dir /var/www/redmine/.subversion co https://localhost/sandbox_svn/ sandbox

and also

$sudo mkdir /home/redmine
$svn --config-dir /home/redmine/.subversion co https://localhost/sandbox_svn/ sandbox

without success. The redmine log file is also not really helpfully about this.

Is there a way to look where redmine searches for the accepted ssl certificate?

Best regards peter

RE: Question about redmine svn repository access with https - Added by Teddy L almost 16 years ago

Redmine does'nt use --config-dir parameter to run svn binary. So, if the user running Redmine service is www-data, i guess svn is looking for /home/www-data/.subversion directory.

RE: Question about redmine svn repository access with https - Added by Peter Mueller almost 16 years ago

Solution,

I did create a new user redmine. (User www-data did not work.) Redmine is located now at \home\redmine\redmine. User redmine runs the mongrel cluster. The www-data user runs the apache server (standard at Debian).

Do
$cd /home/redmine
$svn co https://localhost/sandbox_svn/
to accept the ssl certificate permanentely.

The web interface now accepts https subversion repositories.

Thanks for all help. peter

RE: Question about redmine svn repository access with https - Added by Teddy L almost 16 years ago

But you should use file:///path/to/repositories/sandbox_svn (with no user/pwd) instead of https protocol for local access if it wasn't only for testing.

    (1-5/5)