<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div dir="auto">
<div dir="auto"></div>
<div>Hi <span style="font-family: sans-serif; font-size: 13.696px;">Märt</span></div>
<div dir="auto"><font face="sans-serif"><span style="font-size: 13.696px;"><br>
</span></font></div>
<div dir="auto"><font face="sans-serif"><span style="font-size: 13.696px;">There's definitely an issue with gunicorn 19 which has been picked up previously. You should find switching to 18.0 helps.</span></font></div>
<div dir="auto"><font face="sans-serif"><span style="font-size: 13.696px;"><br>
</span></font></div>
<div dir="auto"><font face="sans-serif"><span style="font-size: 13.696px;">Thanks for the systemd note, I did get it working in the end (with gevent). I'm using Ubuntu xenial in case that's any use.</span></font></div>
<div dir="auto"><font face="sans-serif"><span style="font-size: 13.696px;"><br>
</span></font></div>
<div dir="auto"><font face="sans-serif"><span style="font-size: 13.696px;">Cheers</span></font></div>
<div dir="auto"><font face="sans-serif"><span style="font-size: 13.696px;"><br>
</span></font></div>
<div dir="auto"><font face="sans-serif"><span style="font-size: 13.696px;">Andy<br>
</span></font>
<div class="elided-text" dir="auto"> 
<blockquote style="margin:0 0 0 0.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div><br>
Message: 1<br>
Date: Wed, 8 Feb 2017 22:10:14 +0000<br>
From: Märt Reose <Mart.Reose@smit.ee><br>
To: "MapProxy@lists.osgeo.org" <MapProxy@lists.osgeo.org><br>
Subject: Re: [MapProxy] eventlet error<br>
Message-ID:<br>
        <2841D7977834174EBD3BCC102C914FD50121E6F564@EX-MB1.meie.politsei.ee><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Funny, I am having issues with demo site with gevent and without it. Using mapproxy 1.9.0 and gunicorn 19.6.0.<br>
<br>
From browser:<br>
GET <a href="http://mapservice.smit.dev/mapproxy/demo/static/site.css">http://mapservice.smit.dev/mapproxy/demo/static/site.css</a> net::ERR_CONTENT_LENGTH_MISMATCH<br>
(index):12 GET <a href="http://mapservice.smit.dev/mapproxy/demo/static/logo.png">
http://mapservice.smit.dev/mapproxy/demo/static/logo.png</a> net::ERR_CONTENT_LENGTH_MISMATCH<br>
favicon.ico:1 GET <a href="http://mapservice.smit.dev/favicon.ico">http://mapservice.smit.dev/favicon.ico</a> 404 (Not Found)<br>
<br>
From log:<br>
[2017-02-08 23:48:26 +0000] [24056] [CRITICAL] WORKER TIMEOUT (pid:24062)<br>
[2017-02-08 23:48:26 +0000] [24056] [CRITICAL] WORKER TIMEOUT (pid:24063)<br>
<br>
Tried with keeping only wms and demo service. But same thing.<br>
Installed mime types, still the same thing.<br>
<br>
Strace is attached. (strace and the log are done at different times, the pids wont match, but contents are the same)<br>
<br>
<br>
About systemd, gunicorn-s manual has an example using unix sockets: <a href="http://docs.gunicorn.org/en/stable/deploy.html">
http://docs.gunicorn.org/en/stable/deploy.html</a><br>
<br>
I am running basically what gunicorn has specified, but without unix socket and with the -b localhost:8080. Everything works perfectly, but not the demo site.<br>
<br>
<br>
<br>
Märt<br>
<br>
From: MapProxy [<a href="mailto:mapproxy-bounces@lists.osgeo.org">mailto:mapproxy-bounces@lists.osgeo.org</a>] On Behalf Of Andrew Terry<br>
Sent: Wednesday, February 08, 2017 8:48 PM<br>
To: MapProxy@lists.osgeo.org<br>
Subject: Re: [MapProxy] eventlet error<br>
<br>
Thanks Travis, it’s very hard to know where you’re failing with that systemd until you’ve done it once. I almost had it sorted, just a permissions issue on the User/Group.<br>
<br>
Much appreciated, might be a useful update to the documentation for others?<br>
<br>
Andy<br>
<br>
<br>
Subject: Re: [MapProxy] eventlet error<br>
<br>
Pretty basic setup<br>
<br>
cat /etc/systemd/system/mapproxy.service<br>
[Unit]<br>
Description=Gunicorn instance to serve MapProxy<br>
After=network.target<br>
<br>
[Service]<br>
User=nginx<br>
Group=nginx<br>
WorkingDirectory=/opt/mapproxy_conf/conf<br>
ExecStart=/usr/bin/gunicorn -t 60 -k eventlet -w 5 -b localhost:8080 config:application<br>
<br>
[Install]<br>
WantedBy=multi-user.target<br>
<br>
<br>
On 7 February 2017 at 17:13, Andrew Terry <andrew.terry@centremaps.co.uk<mailto:andrew.terry@centremaps.co.uk>> wrote:<br>
Hi, thanks for the response. Yes, I’m using 1.9.<br>
<br>
If I’m reading that example correctly, the issue there shows as a failing of an osm layer. This however is that the openlayers implementation isn’t getting called through. Runs ok with gevent or no -k entry for gunicorn.<br>
<br>
Would greatly appreciate an example of a systemd service config if you have one you can share<br>
<br>
Andy<br>
<br>
Subject: Re: [MapProxy] eventlet error<br>
<br>
Are you using mapproxy 1.9?  Could the issue be this - <a href="https://github.com/mapproxy/mapproxy/issues/239">
https://github.com/mapproxy/mapproxy/issues/239</a><br>
<br>
BTW centos 7+ is the same requiring the use of systemd instead of upstart<br>
<br>
On 7 February 2017 at 07:44, Andrew Terry <andrew.terry@centremaps.co.uk<mailto:andrew.terry@centremaps.co.uk>> wrote:<br>
Hi,<br>
<br>
Just setting up on Ubuntu xenial and generally everything working fine. Oddly though, with gunicorn (18.0) and eventlet I get an error loading the openlayers in the browser demo. Shows “ReferenceError: OpenLayers is not defined”.<br>
<br>
However, using gevent instead of eventlet or not specifying anything does work. I plan to continue with gevent in place but happy to hear if anyone knows the issue.<br>
<br>
Also now creating a systemd startup as it seems the old init is discontinued in xenial (without installing upstart).<br>
<br>
Andy<br>
<br>
<br>
_______________________________________________<br>
MapProxy mailing list<br>
MapProxy@lists.osgeo.org<mailto:MapProxy@lists.osgeo.org><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapproxy">https://lists.osgeo.org/mailman/listinfo/mapproxy</a><br>
<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.osgeo.org/pipermail/mapproxy/attachments/20170208/004f552f/attachment.html">http://lists.osgeo.org/pipermail/mapproxy/attachments/20170208/004f552f/attachment.html</a>><br>
-------------- next part --------------<br>
An embedded and charset-unspecified text was scrubbed...<br>
Name: mapproxy-demo-strace.txt<br>
URL: <<a href="http://lists.osgeo.org/pipermail/mapproxy/attachments/20170208/004f552f/attachment.txt">http://lists.osgeo.org/pipermail/mapproxy/attachments/20170208/004f552f/attachment.txt</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
MapProxy mailing list<br>
MapProxy@lists.osgeo.org<br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapproxy">https://lists.osgeo.org/mailman/listinfo/mapproxy</a><br>
<br>
------------------------------<br>
<br>
End of MapProxy Digest, Vol 84, Issue 9<br>
***************************************<br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</body>
</html>