Kallithea , uwsgi and nginx

Adi Kriegisch adi at cg.tuwien.ac.at
Tue Jun 13 11:24:39 UTC 2017


Hi!

> Ok, enabling debugging now reveals:
> 
> *Traceback (most recent call last):
>    File
> "/opt/kallithea/kallithea-venv/lib/python2.7/site-packages/mercurial/hgweb/h
> gweb_mod.py", line 306, in run_wsgi
>      for r in self._runwsgi(req, repo):
>    File
> "/opt/kallithea/kallithea-venv/lib/python2.7/site-packages/mercurial/hgweb/h
> gweb_mod.py", line 319, in _runwsgi
>      req.url = req.env['SCRIPT_NAME']
> KeyError: 'SCRIPT_NAME'
> [pid: 8501|app: 0|req: 339/536*
Ok, add the following to your nginx config:
         uwsgi_param     SCRIPT_NAME "";
and you're fine... ;-)

-- Adi

PS: Forgot the link in my last mail:
    https://lists.sfconservancy.org/pipermail/kallithea-general/
2015q1/000130.html
    ...maybe you want to compare that config with yours?


More information about the kallithea-general mailing list