|
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
|
|
Unable to connect to http://redmine.my.domain/sys/: getaddrinfo: Name or service not known
|
|
|
|
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?
|
|
|
|
Listing of apache2 mods enabled
|
|
|
|
redmine@psredmine:/etc/apache2/mods-enabled$ ls
|
|
access_compat.load authn_file.load autoindex.conf dav_svn.conf dir.load mime.load passenger.conf setenvif.load status.load
|
|
alias.conf authz_core.load autoindex.load dav_svn.load env.load mpm_event.conf passenger.load socache_shmcb.load
|
|
alias.load authz_host.load dav_fs.conf deflate.conf filter.load mpm_event.load perl.load ssl.conf
|
|
auth_basic.load authz_svn.load dav_fs.load deflate.load headers.load negotiation.conf rewrite.load ssl.load
|
|
authn_core.load authz_user.load dav.load dir.conf mime.conf negotiation.load setenvif.conf status.conf
|
|
|
|
redmine@psredmine:/etc/apache2/mods-enabled$ cat passenger.conf
|
|
<IfModule mod_passenger.c>
|
|
PassengerUser www-data
|
|
PassengerRoot /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini
|
|
PassengerDefaultRuby /usr/bin/ruby
|
|
</IfModule>
|
|
|
|
redmine@psredmine:/etc/apache2/conf-enabled$ ls
|
|
charset.conf javascript-common.conf localized-error-pages.conf other-vhosts-access-log.conf security.conf serve-cgi-bin.conf svn.conf
|
|
redmine@psredmine:/etc/apache2/conf-enabled$ cat svn.conf
|
|
# /svn location for users
|
|
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 "Projectwerk Subversion Repository"
|
|
|
|
#read-only access
|
|
<Limit GET PROPFIND OPTIONS REPORT>
|
|
Require valid-user
|
|
# Allow from [my server ip]
|
|
Allow from xxx.xxx.xxx.xxx
|
|
Allow from 127.0.0.1
|
|
# Allow from another-ip
|
|
Satisfy any
|
|
</Limit>
|
|
# write access
|
|
<LimitExcept GET PROPFIND OPTIONS REPORT>
|
|
Require valid-user
|
|
</LimitExcept>
|
|
ErrorDocument 404 default
|
|
|
|
## for mysql
|
|
RedmineDSN "DBI:mysql:database=redmine;host=localhost"
|
|
RedmineDbUser "User"
|
|
RedmineDbPass "XXXXXXXXXX"
|
|
</Location>
|
|
|
|
redmine@psredmine:/etc/apache2/sites-enabled$ ls
|
|
master.conf redmine.my.domain.conf
|
|
redmine@psredmine:/etc/apache2/sites-enabled$ cat redmine.my.domain.conf
|
|
NameVirtualHost *:80
|
|
<VirtualHost *:80>
|
|
ServerName redmine.my.domain
|
|
Redirect permanent / https://redmine.my.domain/
|
|
</VirtualHost>
|
|
|
|
<VirtualHost *:443>
|
|
ServerAdmin greg@my.domain
|
|
DocumentRoot /var/www/html/redmine
|
|
ServerName redmine.my.domain
|
|
|
|
SSLEngine On
|
|
|
|
SSLCertificateFile /etc/apache2/ssl/redmine.crt
|
|
SSLCertificateKeyFile /etc/apache2/ssl/redmine.key
|
|
SSLCertificateChainFile /etc/apache2/ssl/redmine.crt
|
|
|
|
<Directory /var/www/html/redmine>
|
|
RailsBaseURI /
|
|
PassengerResolveSymlinksInDocumentRoot on
|
|
# http://httpd.apache.org/docs/current/misc/perf-tuning.html
|
|
AllowOverride None
|
|
</Directory>
|
|
|
|
ErrorLog /var/log/apache2/error.log
|
|
|
|
# Possible values include: debug, info, notice, warn, error, crit,
|
|
# alert, emerg.
|
|
LogLevel warn
|
|
|
|
CustomLog /var/log/apache2/access.log combined
|
|
</VirtualHost>
|
|
|
|
|
|
|
|
Regards
|
|
Greg
|
|
|