<div dir="ltr"><div>Are you running gunicorn on a specific port and proxy request via nginx?</div><div><br></div><div>docs</div><div><a href="https://mapproxy.org/docs/nightly/deployment.html">https://mapproxy.org/docs/nightly/deployment.html</a><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 7 September 2016 at 11:57, Andrew Terry <span dir="ltr"><<a href="mailto:andrew.terry@centremaps.co.uk" target="_blank">andrew.terry@centremaps.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-GB" link="#0563C1" vlink="#954F72">
<div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I’ve been following the mapproxy, gunicorn, eventlet, nginx demo and have a sticking point.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Direct calls to mapproxy tms demo work fine but when I do this via nginx/gunicorn I can get everything to work (e.g. WMS requests) but the tms is slow and regularly fails workers.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">At the moment, I’m using proxy through nginx with an additional:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"> location /mapproxy/demo/static {<u></u><u></u></p>
<p class="MsoNormal"> try_files $uri $uri/;<u></u><u></u></p>
<p class="MsoNormal"> }<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Which allows me to load the demo site including html and css. I presume this is necessary to combat gunicorn static file issues but perhaps this is my first error.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">From the gunicorn logging I see:<u></u><u></u></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal">[2016-09-07 15:20:42 +0000] [2325] [DEBUG] GET /mapproxy/tms/1.0.0/test_wms_<wbr>cache/EPSG27700/0/1/1.jpeg<u></u><u></u></p>
<p class="MsoNormal">[2016-09-07 15:21:11 +0000] [2319] [CRITICAL] WORKER TIMEOUT (pid:2325)<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Whereas just mapproxy dev running direct works fine for:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">[info] XXX.XXX.XXX.XXX - - [07/Sep/2016 14:52:19] "GET /tms/1.0.0/test_wms_cache/<wbr>EPSG27700/0/1/1.jpeg HTTP/1.1" 200 –<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Any pointers or prompts to where I can read more gratefully appreciated.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Andy<u></u><u></u></p>
</div>
</div>
<br>______________________________<wbr>_________________<br>
MapProxy mailing list<br>
<a href="mailto:MapProxy@lists.osgeo.org">MapProxy@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapproxy" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/mapproxy</a><br></blockquote></div><br></div>