Project

General

Profile

Problems Trying to setup Automated Subversion

Added by Greg Stevenson almost 9 years ago

I'm trying to follow http://www.redmine.org/projects/redmine/wiki/HowTo_Automate_repository_creation
on a Debian jessie VM.

RAILS_ENV=production bin/about

sh: 1: darcs: not found
sh: 1: hg: not found
sh: 1: cvs: not found
sh: 1: bzr: not found
sh: 1: git: not found
Environment:
Redmine version 3.0.3.stable
Ruby version 2.1.5-p273 (2014-11-13) [x86_64-linux-gnu]
Rails version 4.2.1
Environment production
Database adapter Mysql2
SCM:
Subversion 1.8.10
Filesystem
Redmine plugins:
no plugin installed

Although the repository resides on the same server as Redmine I would like to setup the svn:// option as opposed to file:///

Issuing as a normal user

ruby reposman.rb --redmine redmine.my.domain --svn-dir /var/www/virtual.host.name/svn --owner www-data --url http://virtual.host.name/svn/ --key=7kjhe0TxmfTMn936GDm7

Where redmine.my.domain is my fully qualified hostname
and virtual.host.name is my named virtual host in apaches sites-enabled
and the key is the API key I have generated in administration:settings:repositories

As this doesn't give the response of
querying Redmine for projects...
retrieved 2 projects
treating project myproject
svnadmin: Repository creation failed

as per the instructions

It actually gives
querying Redmine for projects...
No project found, perhaps you forgot to "Enable WS for repository management"

However I have Enabled WS for repository management and there is one test project in the system.

I assume I have set something up wrong.
Can anyone point me in the right direction please?

Regards
Greg

furtherconfig.txt (5.05 KB) furtherconfig.txt additional apache config that doesn't cut and paste well

Replies (5)

RE: Problems Trying to setup Automated Subversion - Added by Pavel Potcheptsov almost 9 years ago

Have you resolved subversion integration?
Show next output:
$ ls -la /var/svn
$ cat /etc/hosts
$ ip r
$ ping redmine.my.domain
$ ping virtual.host.name

This --svn-dir /var/www/virtual.host.name/svn must be equal to SVNParentPath "/var/svn"

RE: Problems Trying to setup Automated Subversion - Added by Greg Stevenson almost 9 years ago

Thank you for your reply. No I haven't resolved it

redmine@psredmine:/$ ls -la /var/svn
total 8
drwxr-xr-x 2 www-data www-data 4096 Jun 17 08:08 .
drwxr-xr-x 13 root root 4096 Jun 12 09:19 ..

redmine@psredmine:/$ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 psredmine.my.domain psredmine
10.0.0.49 redmine.my.domain redmine

  1. The following lines are desirable for IPv6 capable hosts
    ::1 localhost ip6-localhost ip6-loopback
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters

redmine@psredmine:/$ ip r
default via 10.0.0.254 dev eth0
10.0.0.0/24 dev eth0 proto kernel scope link src 10.0.0.49

redmine@psredmine:/$ ping redmine.my.domain
PING redmine.primesoft.co.nz (10.0.0.49) 56(84) bytes of data.
64 bytes from redmine.my.domain (10.0.0.49): icmp_seq=1 ttl=64 time=0.074 ms
64 bytes from redmine.my.domain (10.0.0.49): icmp_seq=2 ttl=64 time=0.050 ms
64 bytes from redmine.my.domain (10.0.0.49): icmp_seq=3 ttl=64 time=0.048 ms
^C
--- redmine.my.domain ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2001ms
rtt min/avg/max/mdev = 0.048/0.057/0.074/0.013 ms

redmine@psredmine:/$ ping psredmine.my.domain
PING psredmine.my.domain (127.0.1.1) 56(84) bytes of data.
64 bytes from psredmine.my.domain (127.0.1.1): icmp_seq=1 ttl=64 time=0.034 ms
64 bytes from psredmine.my.domain (127.0.1.1): icmp_seq=2 ttl=64 time=0.049 ms
^C
--- psredmine.my.domain ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.034/0.041/0.049/0.009 ms

I've tried all sorts of combinations of the ruby reposman.rb command and have even created a symbolic link between the redmine/public/svn and /var/svn to see if that works. I have tried using http: as opposed to https: as opposed to svn: but.....

Still get

ruby reposman.rb --redmine psredmine.my.domain --svn-dir /var/svn --owner www-data --url https://redmine.my.domain/svn --key=7kjhe0TxmfTMn936GDm7 --verbose
querying Redmine for projects...
No project found, perhaps you forgot to "Enable WS for repository management"

No matter which way I structure that command I get the same. Do you know if there is a level of debug I can turn on to get a little more information on why I get this result?

RE: Problems Trying to setup Automated Subversion - Added by Pavel Potcheptsov almost 9 years ago

Let's check step by step:
- check if you have link to Remine.pm in /usr/lib/perl5/vendor_perl/Apache
- make sure you have Enable WS for repository management option enabled
- make sure API key string is equal to one in reposman.rb command line, regenerate it
- make sure that Repositories Tab in Settings reports that you have Subversion enabled and version is shown
- create new project, in settings under Modules Tab tick Repository and save
- then execute reposman.rb

RE: Problems Trying to setup Automated Subversion - Added by Greg Stevenson almost 9 years ago

Thanks Pavel
I eventually resorted to some paid sys admin support out of Ukraine.
I have it sorted, I'll try to post the solution when I fully figure out exactly how he fixed it.
I appreciate your voluntary time and thought on the issue.
Cheers
Greg

RE: Problems Trying to setup Automated Subversion - Added by dah woo over 8 years ago

Greg Stevenson wrote:

Thanks Pavel
I eventually resorted to some paid sys admin support out of Ukraine.
I have it sorted, I'll try to post the solution when I fully figure out exactly how he fixed it.
I appreciate your voluntary time and thought on the issue.
Cheers
Greg

Hi Greg, I am in the same boat as you. Any way you can steer me in the right direction?

Thanks

    (1-5/5)