1
|
I'm trying to follow http://www.redmine.org/projects/redmine/wiki/HowTo_Automate_repository_creation
|
2
|
on a Debian jessie VM.
|
3
|
|
4
|
RAILS_ENV=production bin/about
|
5
|
|
6
|
sh: 1: darcs: not found
|
7
|
sh: 1: hg: not found
|
8
|
sh: 1: cvs: not found
|
9
|
sh: 1: bzr: not found
|
10
|
sh: 1: git: not found
|
11
|
Environment:
|
12
|
Redmine version 3.0.3.stable
|
13
|
Ruby version 2.1.5-p273 (2014-11-13) [x86_64-linux-gnu]
|
14
|
Rails version 4.2.1
|
15
|
Environment production
|
16
|
Database adapter Mysql2
|
17
|
SCM:
|
18
|
Subversion 1.8.10
|
19
|
Filesystem
|
20
|
Redmine plugins:
|
21
|
no plugin installed
|
22
|
|
23
|
Although the repository resides on the same server as Redmine I would like to setup the svn:// option as opposed to file:///
|
24
|
|
25
|
Issuing as a normal user
|
26
|
|
27
|
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
|
28
|
Unable to connect to http://redmine.my.domain/sys/: getaddrinfo: Name or service not known
|
29
|
|
30
|
Where redmine.my.domain is my fully qualified hostname
|
31
|
and virtual.host.name is my named virtual host in apaches sites-enabled
|
32
|
and the key is the API key I have generated in administration:settings:repositories
|
33
|
|
34
|
As this doesn't give the response of
|
35
|
querying Redmine for projects...
|
36
|
retrieved 2 projects
|
37
|
treating project myproject
|
38
|
svnadmin: Repository creation failed
|
39
|
|
40
|
as per the instructions
|
41
|
|
42
|
It actually gives
|
43
|
querying Redmine for projects...
|
44
|
No project found, perhaps you forgot to "Enable WS for repository management"
|
45
|
|
46
|
However I have Enabled WS for repository management and there is one test project in the system.
|
47
|
|
48
|
I assume I have set something up wrong.
|
49
|
Can anyone point me in the right direction please?
|
50
|
|
51
|
Listing of apache2 mods enabled
|
52
|
|
53
|
redmine@psredmine:/etc/apache2/mods-enabled$ ls
|
54
|
access_compat.load authn_file.load autoindex.conf dav_svn.conf dir.load mime.load passenger.conf setenvif.load status.load
|
55
|
alias.conf authz_core.load autoindex.load dav_svn.load env.load mpm_event.conf passenger.load socache_shmcb.load
|
56
|
alias.load authz_host.load dav_fs.conf deflate.conf filter.load mpm_event.load perl.load ssl.conf
|
57
|
auth_basic.load authz_svn.load dav_fs.load deflate.load headers.load negotiation.conf rewrite.load ssl.load
|
58
|
authn_core.load authz_user.load dav.load dir.conf mime.conf negotiation.load setenvif.conf status.conf
|
59
|
|
60
|
redmine@psredmine:/etc/apache2/mods-enabled$ cat passenger.conf
|
61
|
<IfModule mod_passenger.c>
|
62
|
PassengerUser www-data
|
63
|
PassengerRoot /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini
|
64
|
PassengerDefaultRuby /usr/bin/ruby
|
65
|
</IfModule>
|
66
|
|
67
|
redmine@psredmine:/etc/apache2/conf-enabled$ ls
|
68
|
charset.conf javascript-common.conf localized-error-pages.conf other-vhosts-access-log.conf security.conf serve-cgi-bin.conf svn.conf
|
69
|
redmine@psredmine:/etc/apache2/conf-enabled$ cat svn.conf
|
70
|
# /svn location for users
|
71
|
PerlLoadModule Apache::Redmine
|
72
|
<Location /svn>
|
73
|
DAV svn
|
74
|
SVNParentPath "/var/svn"
|
75
|
Order deny,allow
|
76
|
Deny from all
|
77
|
Satisfy any
|
78
|
|
79
|
PerlAccessHandler Apache::Authn::Redmine::access_handler
|
80
|
PerlAuthenHandler Apache::Authn::Redmine::authen_handler
|
81
|
AuthType Basic
|
82
|
AuthName "Projectwerk Subversion Repository"
|
83
|
|
84
|
#read-only access
|
85
|
<Limit GET PROPFIND OPTIONS REPORT>
|
86
|
Require valid-user
|
87
|
# Allow from [my server ip]
|
88
|
Allow from xxx.xxx.xxx.xxx
|
89
|
Allow from 127.0.0.1
|
90
|
# Allow from another-ip
|
91
|
Satisfy any
|
92
|
</Limit>
|
93
|
# write access
|
94
|
<LimitExcept GET PROPFIND OPTIONS REPORT>
|
95
|
Require valid-user
|
96
|
</LimitExcept>
|
97
|
ErrorDocument 404 default
|
98
|
|
99
|
## for mysql
|
100
|
RedmineDSN "DBI:mysql:database=redmine;host=localhost"
|
101
|
RedmineDbUser "User"
|
102
|
RedmineDbPass "XXXXXXXXXX"
|
103
|
</Location>
|
104
|
|
105
|
redmine@psredmine:/etc/apache2/sites-enabled$ ls
|
106
|
master.conf redmine.my.domain.conf
|
107
|
redmine@psredmine:/etc/apache2/sites-enabled$ cat redmine.my.domain.conf
|
108
|
NameVirtualHost *:80
|
109
|
<VirtualHost *:80>
|
110
|
ServerName redmine.my.domain
|
111
|
Redirect permanent / https://redmine.my.domain/
|
112
|
</VirtualHost>
|
113
|
|
114
|
<VirtualHost *:443>
|
115
|
ServerAdmin greg@my.domain
|
116
|
DocumentRoot /var/www/html/redmine
|
117
|
ServerName redmine.my.domain
|
118
|
|
119
|
SSLEngine On
|
120
|
|
121
|
SSLCertificateFile /etc/apache2/ssl/redmine.crt
|
122
|
SSLCertificateKeyFile /etc/apache2/ssl/redmine.key
|
123
|
SSLCertificateChainFile /etc/apache2/ssl/redmine.crt
|
124
|
|
125
|
<Directory /var/www/html/redmine>
|
126
|
RailsBaseURI /
|
127
|
PassengerResolveSymlinksInDocumentRoot on
|
128
|
# http://httpd.apache.org/docs/current/misc/perf-tuning.html
|
129
|
AllowOverride None
|
130
|
</Directory>
|
131
|
|
132
|
ErrorLog /var/log/apache2/error.log
|
133
|
|
134
|
# Possible values include: debug, info, notice, warn, error, crit,
|
135
|
# alert, emerg.
|
136
|
LogLevel warn
|
137
|
|
138
|
CustomLog /var/log/apache2/access.log combined
|
139
|
</VirtualHost>
|
140
|
|
141
|
|
142
|
|
143
|
Regards
|
144
|
Greg
|
145
|
|