view docs/usage/troubleshooting.rst @ 4815:64b1a2320bcb

docs: update Windows installation documentation for Windows 7/Server 2008 R2 and newer Update to the Windows installation documentation following my setup experience on our production server. Changes : * Use of Microsoft Visual C++ Compiler for Python 2.7 which simplifies matter versus installing Visual Studio 2008 Express, because it removes the need to use the Visual Studio 2008 command prompt. It is also a lot smaller to download and install. Unfortunately, this means the instruction will only work on the same platforms as those which are supported by the compiler. * For that reason, I split the documentation into newer and older Windows. * Added more explanations where I feel it was necessary based on my experience * Added explanation on Git (Warning : I did not try this part) * Instructions assumes x64 instead of Win32. * Clarified titles * Grammar Potential issues: * I have the user install pip system wide so that virtualenv installation is easier (especially if using Python 2.7.9 which already includes pip). One may prefer to install virtualenv and the pip in the virtual environment (I know of no good reason, but it could happen). * Removed some line feeds that I found useless. I do not know the .rst format, they might be needed. It makes no difference when the documentation is generated using make.bat, so I am not sure Potential improvements: * Instructions on using srvany.exe to install as a Windows service * Instructions to make a reverse proxy using Apache * Instructions to make a reverse proxy using IIS
author Denis Blanchette <dblanchette@coveo.com>
date Mon, 02 Feb 2015 17:20:08 -0500
parents a9a1560dad79
children 03bbd33bc084
line wrap: on
line source

.. _troubleshooting:


===============
Troubleshooting
===============

:Q: **Missing static files?**
:A: Make sure either to set the `static_files = true` in the .ini file or
   double check the root path for your http setup. It should point to
   for example:
   /home/my-virtual-python/lib/python2.7/site-packages/kallithea/public

|

:Q: **Can't install celery/rabbitmq?**
:A: Don't worry Kallithea works without them too. No extra setup is required.
    Try out great celery docs for further help.

|

:Q: **Long lasting push timeouts?**
:A: Make sure you set a longer timeouts in your proxy/fcgi settings, timeouts
    are caused by https server and not Kallithea.

|

:Q: **Large pushes timeouts?**
:A: Make sure you set a proper max_body_size for the http server. Very often
    Apache, Nginx or other http servers kill the connection due to to large
    body.

|

:Q: **Apache doesn't pass basicAuth on pull/push?**
:A: Make sure you added `WSGIPassAuthorization true`.

|

:Q: **Git fails on push/pull?**
:A: Make sure you're using an wsgi http server that can handle chunked encoding
    such as `waitress` or `gunicorn`

|

:Q: **How i use hooks in Kallithea?**
:A: It's easy if they are python hooks just use advanced link in hooks section
    in Admin panel, that works only for Mercurial. If you want to use githooks,
    just install proper one in repository eg. create file in
    `/gitrepo/hooks/pre-receive`. You can also use Kallithea-extensions to
    connect to callback hooks, for both Git and Mercurial.

|

:Q: **Kallithea is slow for me, how can i make it faster?**
:A: See the :ref:`performance` section

|

:Q: **UnicodeDecodeError on Apache mod_wsgi**
:A: Please read: https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/modwsgi/#if-you-get-a-unicodeencodeerror

|

:Q: **Requests hanging on Windows**
:A: Please try out with disabled Antivirus software, there are some known problems with Eset Anitivirus. Make sure
    you have installed latest windows patches (especially KB2789397)


.. _virtualenv: http://pypi.python.org/pypi/virtualenv
.. _python: http://www.python.org/
.. _mercurial: http://mercurial.selenic.com/
.. _celery: http://celeryproject.org/
.. _rabbitmq: http://www.rabbitmq.com/
.. _python-ldap: http://www.python-ldap.org/
.. _mercurial-server: http://www.lshift.net/mercurial-server.html
.. _PublishingRepositories: http://mercurial.selenic.com/wiki/PublishingRepositories
.. _Issues tracker: https://bitbucket.org/conservancy/kallithea/issues