troubleshooting.rst
81 lines
| 2.6 KiB
| text/x-rst
|
RstLexer
r2601 | .. _troubleshooting: | |||
=============== | ||||
Troubleshooting | ||||
=============== | ||||
:Q: **Missing static files?** | ||||
Michael V. DePalatis
|
r4955 | :A: Make sure either to set the ``static_files = true`` in the .ini file or | ||
r3224 | double check the root path for your http setup. It should point to | |||
r2601 | for example: | |||
Mads Kiilerich
|
r8089 | ``/home/my-virtual-python/lib/python3.7/site-packages/kallithea/public`` | ||
r3224 | ||||
| | ||||
r2601 | ||||
:Q: **Can't install celery/rabbitmq?** | ||||
Michael V. DePalatis
|
r4955 | :A: Don't worry. Kallithea works without them, too. No extra setup is required. | ||
Try out the great Celery docs for further help. | ||||
r2601 | ||||
| | ||||
r3224 | ||||
r2601 | :Q: **Long lasting push timeouts?** | |||
Michael V. DePalatis
|
r4955 | :A: Make sure you set a longer timeout in your proxy/fcgi settings. Timeouts | ||
are caused by the http server and not Kallithea. | ||||
r3224 | ||||
| | ||||
r2601 | ||||
:Q: **Large pushes timeouts?** | ||||
Michael V. DePalatis
|
r4955 | :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 | ||||
r2601 | body. | |||
| | ||||
:Q: **Apache doesn't pass basicAuth on pull/push?** | ||||
Michael V. DePalatis
|
r4955 | :A: Make sure you added ``WSGIPassAuthorization true``. | ||
r2601 | ||||
| | ||||
:Q: **Git fails on push/pull?** | ||||
Michael V. DePalatis
|
r4955 | :A: Make sure you're using a WSGI http server that can handle chunked encoding | ||
such as ``waitress`` or ``gunicorn``. | ||||
r2601 | ||||
| | ||||
Mads Kiilerich
|
r4902 | :Q: **How can I use hooks in Kallithea?** | ||
Mads Kiilerich
|
r8629 | :A: If using Mercurial, use *Admin > Settings > Hooks* to install | ||
global hooks. Inside the hooks, you can use the current working directory to | ||||
control different behaviour for different repositories. | ||||
If using Git, install the hooks manually in each repository, for example by | ||||
creating a file ``gitrepo/hooks/pre-receive``. | ||||
Note that Kallithea uses the ``post-receive`` hook internally. | ||||
Kallithea will not work properly if another post-receive hook is installed instead. | ||||
You might also accidentally overwrite your own post-receive hook with the Kallithea hook. | ||||
Mads Kiilerich
|
r8630 | Instead, put your post-receive hook in ``post-receive-custom``, and the Kallithea hook will invoke it. | ||
Mads Kiilerich
|
r8629 | |||
You can also use Kallithea-extensions to connect to callback hooks, | ||||
for both Git and Mercurial. | ||||
r2601 | ||||
| | ||||
Mads Kiilerich
|
r4902 | :Q: **Kallithea is slow for me, how can I make it faster?** | ||
:A: See the :ref:`performance` section. | ||||
r2601 | ||||
r3240 | | | |||
:Q: **UnicodeDecodeError on Apache mod_wsgi** | ||||
Mads Kiilerich
|
r4902 | :A: Please read: https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/modwsgi/#if-you-get-a-unicodeencodeerror. | ||
r3337 | ||||
| | ||||
:Q: **Requests hanging on Windows** | ||||
timeless@gmail.com
|
r5785 | :A: Please try out with disabled Antivirus software, there are some known problems with Eset Antivirus. Make sure | ||
Michael V. DePalatis
|
r4955 | you have installed the latest Windows patches (especially KB2789397). | ||
r3337 | ||||
r3240 | ||||
r2601 | .. _python: http://www.python.org/ | |||
r6297 | .. _mercurial: https://www.mercurial-scm.org/ | |||
r2601 | .. _celery: http://celeryproject.org/ | |||
.. _rabbitmq: http://www.rabbitmq.com/ | ||||
.. _python-ldap: http://www.python-ldap.org/ | ||||