allura-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniele Niero <>
Subject Setting up Git and svn
Date Wed, 12 Nov 2014 20:53:32 GMT

I'm trying to follow the instruction here
<> to activate support
for git and svn, however I'm not having much success...

First I want to stress how I'm not a web technology expert, not to justify
myself but just to ask to be a little patient if I'm missing something
obvious or making any clear mistake.

So I followed those instructions but I changed the location of my
repositories. Also I have to say that my installation of allura is served
through a subdomain (, if this is important I don't

I didn't activate any ldap thinking that it is an optional step. If instead
it's a required step to serve Git and svn through http/https you can stop
to read now and simply reply me back to configure it :)

I have copied "development.ini" and called "production.ini" and the part
relative to SCM looks like:

# SCM settings for local development = /home/daniele/repos/git$path = /home/daniele/repos/git$path = /home/daniele/repos/hg$path = /home/daniele/repos/hg$path = file:///home/daniele/repos/svn$path/ = file:///home/daniele/repos/svn$path/

# SCM settings for https (sorry no docs for setting these up)
# these settings are currently required by the template, no matter what = https://$$path =$path = https://$$path =$path =$path/ =$path/

scm.clone.git = git clone $source_url $dest_path
scm.clone.hg = hg clone $source_url $dest_path = svn checkout $source_url $dest_path
scm.clone.https_anon.svn = svn checkout $source_url $dest_path
scm.clone.svn = svn checkout --username=$username $source_url $dest_path

scm.repos.root = /home/daniele/repos
scm.repos.tarball.enable = false
scm.repos.tarball.root = /usr/share/nginx/www/
scm.repos.tarball.url_prefix = http://localhost/
scm.repos.tarball.zip_binary = /usr/bin/zip

<$path>* looks suspicious to me
but again, I have no idea...

then I have my VirtualHost configuration:

<VirtualHost *:80>

DocumentRoot /var/www/html/allura

# Logfiles
ErrorLog  /home/daniele/logs/allura/error.log
CustomLog /home/daniele/logs/allura/access.log combined

# Proxy
ProxyPass / http://localhost:8080/ retry=5
ProxyPassReverse / http://localhost:8080/
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all

# git setup
SetEnv GIT_PROJECT_ROOT /home/daniele/repos/git
ProxyPass /git/ !
ScriptAlias /git/ /usr/lib/git-core/git-http-backend/

# no authentication required at all - for testing purposes
#SetEnv REMOTE_USER=git-allura

<LocationMatch "^/(git|svn|hg)/">
AddHandler mod_python .py
# Change this path if needed:
PythonAccessHandler /home/daniele/src/allura/scripts/
AuthType Basic
AuthName "SCM Access"
AuthBasicAuthoritative off
# Change this path if needed:
PythonOption ALLURA_VIRTUALENV /home/daniele/env-allura
# This routes back to the allura webapp, port 8080 if running with paster
server (~/start_allura)
# In a production environment, run allura with a real WSGI server, and
# change the IP address and port number as appropriate.
# And use https if possible, since the username and password are otherwise
# sent in the clear to Allura.

the file that is called when I connect to is called and it looks like this:


activate_this = '/home/daniele/env-allura/bin/'
execfile(activate_this, dict(__file__=activate_this))

import wsgiref.handlers
from paste.deploy import loadapp

myapp = loadapp('config:/home/daniele/src/allura/Allura/production.ini')


and finally, when I launched this commands:

echo "Activate the Allura environment"
cd ~
. env-allura/bin/activate

echo "Start Solr"
cd ~/src/solr-4.2.1/example/
nohup java -jar start.jar > ~/logs/solr.log &

echo "Start Allura task processing with production.ini"
cd ~/src/allura/Allura
nohup paster taskd production.ini > ~/logs/taskd.log &

echo "Serve Allura with production.ini"
nohup paster serve --reload production.ini > ~/logs/tg.log &

sudo service apache2 restart

Unfortunatly it's clear I have make some mistakes because when I connect to I have a 500 Internal Server Error.
The error.log reports this:

[Wed Nov 12 15:37:56.910479 2014] [:warn] [pid 1968] [client] Allura Access: AccessHandler
[Wed Nov 12 15:37:57.216641 2014] [:warn] [pid 1968] [client] Allura Access: checking auth for: None
[Wed Nov 12 15:37:58.624654 2014] [:warn] [pid 1968] [client] Allura Access:
-> {u'allow_write': False, u'allow_read': True, u'allow_create': False} ->
allow_read -> authorized:True
[Wed Nov 12 15:37:58.625380 2014] [authz_core:error] [pid 1968] [client] AH01627: AuthType configured with no corresponding
authorization directives

I hope an expert can spot what I'm doing wrong.
Thanks in advance.

View raw message