1. Marcin Kuzminski
  2. RhodeCode

Issues

Issue #534 resolved

wsgi and git

Gilles Bouthenot
created an issue

When setting up Rhode code as described here: http://packages.python.org/RhodeCode/setup.html#setup

Everything works, but as soon as a git repo is created, or scanned, the following error occurs: {{{ File "/var/www/rhodecode-venv/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 247, in loadapp return loadobj(APP, uri, name=name, kw) File "/var/www/rhodecode-venv/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 272, in loadobj return context.create() File "/var/www/rhodecode-venv/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create return self.object_type.invoke(self) File "/var/www/rhodecode-venv/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 146, in invoke return fix_call(context.object, context.global_conf, context.local_conf) File "/var/www/rhodecode-venv/lib/python2.7/site-packages/paste/deploy/util.py", line 56, in fix_call val = callable(args, *kw) File "/var/www/rhodecode-venv/lib/python2.7/site-packages/rhodecode/config/middleware.py", line 40, in make_app config = load_environment(global_conf, app_conf) File "/var/www/rhodecode-venv/lib/python2.7/site-packages/rhodecode/config/environment.py", line 87, in load_environment repo2db_mapper(ScmModel().repo_scan(repos_path)) File "/var/www/rhodecode-venv/lib/python2.7/site-packages/rhodecode/model/scm.py", line 205, in repo_scan repos[name] = klass(path[1]) File "/var/www/rhodecode-venv/lib/python2.7/site-packages/rhodecode/lib/vcs/backends/git/repository.py", line 67, in init abspath(get_user_home(), '.gitconfig'), File "/var/www/rhodecode-venv/lib/python2.7/site-packages/rhodecode/lib/vcs/utils/paths.py", line 9, in <lambda>

File "/usr/lib/python2.7/posixpath.py", line 68, in join elif path == '' or path.endswith('/'): AttributeError: 'NoneType' object has no attribute 'endswith' }}}

I checked that /var/www/.gitconfig exists and is writable by www-data

Comments (6)

  1. Log in to comment