Kallithea , uwsgi and nginx
Mads Kiilerich
mads at kiilerich.com
Thu Jun 15 01:20:04 UTC 2017
On 06/14/2017 10:48 AM, Jani Tiainen wrote:
> On 14.06.2017 11:30, Mads Kiilerich wrote:
>> On 06/13/2017 12:27 PM, Jani Tiainen wrote:
>>> Hi,
>>>
>>> I'm trying to get Kallithea to work with uwsgi and nginx.
>>> Unfortunately for some reasons HG pull requests seem to fail from
>>> time to time, specially if there is nothing to pull.
>>>
>>> Logs do indicate following:
>>>
>>> 2017/06/13 13:23:58 [error] 12111#0: *3294 recv() failed (104:
>>> Connection reset by peer) while reading response header from
>>> upstream, client: 10.121.7.75, server: kallithea.local, request:
>>> "GET /myrepo?cmd=getbundle HTTP/1.1", upstream:
>>> "http://127.0.0.1:5000/myreoicmd=getbundle", host: "kallithea.local"
>>>
>>
>> Can you say more about your setup? That message is from the nginx log
>> ... which serve as a proxy?
>>
>> It indicates you have a WSGI server running on port 5000 - is that
>> uwsgi?
>>
>> To locate where the problem is: Does it work if you access port 5000
>> directly?
>>
>> /Mads
>>
> Hi,
>
> It worked directly from port 5000. So I really suspect it being
> something in/with nginx. Specially since problem appeared with both,
> uwsgi and gunicorn setups and there was no (at least not visible)
> errors in logs. (other than nginx logs)
Then I would use something like wireshark to look at how the getbundle
request and response look in the different cases ... and if they in some
way are different in these different cases.
/Mads
More information about the kallithea-general
mailing list