[MapProxy] eventlet error (Märt Reose)

BERÉNYI Attila aberenyi at gislab.hu
Thu Feb 9 12:21:23 PST 2017


For reference it works just fine for me using aiohttp (-k gaiohttp) and
gunicorn verison 19.6.0.

Additionally, try to start gunicorn with the  --preload argument -
sometimes it helps to pin down an issue.

Cheers,
Attila

Andrew Terry <andrew.terry at centremaps.co.uk> ezt írta (időpont: 2017. febr.
9., Cs, 14:39):

> Hi Märt
>
> There's definitely an issue with gunicorn 19 which has been picked up
> previously. You should find switching to 18.0 helps.
>
> 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.
>
> Cheers
>
> Andy
>
>
>
> Message: 1
> Date: Wed, 8 Feb 2017 22:10:14 +0000
> From: Märt Reose <Mart.Reose at smit.ee>
> To: "MapProxy at lists.osgeo.org" <MapProxy at lists.osgeo.org>
> Subject: Re: [MapProxy] eventlet error
> Message-ID:
>         <
> 2841D7977834174EBD3BCC102C914FD50121E6F564 at EX-MB1.meie.politsei.ee>
> Content-Type: text/plain; charset="utf-8"
>
> Funny, I am having issues with demo site with gevent and without it. Using
> mapproxy 1.9.0 and gunicorn 19.6.0.
>
> From browser:
> GET http://mapservice.smit.dev/mapproxy/demo/static/site.css
> net::ERR_CONTENT_LENGTH_MISMATCH
> (index):12 GET http://mapservice.smit.dev/mapproxy/demo/static/logo.png
> net::ERR_CONTENT_LENGTH_MISMATCH
> favicon.ico:1 GET http://mapservice.smit.dev/favicon.ico 404 (Not Found)
>
> From log:
> [2017-02-08 23:48:26 +0000] [24056] [CRITICAL] WORKER TIMEOUT (pid:24062)
> [2017-02-08 23:48:26 +0000] [24056] [CRITICAL] WORKER TIMEOUT (pid:24063)
>
> Tried with keeping only wms and demo service. But same thing.
> Installed mime types, still the same thing.
>
> Strace is attached. (strace and the log are done at different times, the
> pids wont match, but contents are the same)
>
>
> About systemd, gunicorn-s manual has an example using unix sockets:
> http://docs.gunicorn.org/en/stable/deploy.html
>
> 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.
>
>
>
> Märt
>
> From: MapProxy [mailto:mapproxy-bounces at lists.osgeo.org
> <mapproxy-bounces at lists.osgeo.org>] On Behalf Of Andrew Terry
> Sent: Wednesday, February 08, 2017 8:48 PM
> To: MapProxy at lists.osgeo.org
> Subject: Re: [MapProxy] eventlet error
>
> 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.
>
> Much appreciated, might be a useful update to the documentation for others?
>
> Andy
>
>
> Subject: Re: [MapProxy] eventlet error
>
> Pretty basic setup
>
> cat /etc/systemd/system/mapproxy.service
> [Unit]
> Description=Gunicorn instance to serve MapProxy
> After=network.target
>
> [Service]
> User=nginx
> Group=nginx
> WorkingDirectory=/opt/mapproxy_conf/conf
> ExecStart=/usr/bin/gunicorn -t 60 -k eventlet -w 5 -b localhost:8080
> config:application
>
> [Install]
> WantedBy=multi-user.target
>
>
> On 7 February 2017 at 17:13, Andrew Terry <andrew.terry at centremaps.co.uk
> <mailto:andrew.terry at centremaps.co.uk>> wrote:
> Hi, thanks for the response. Yes, I’m using 1.9.
>
> 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.
>
> Would greatly appreciate an example of a systemd service config if you
> have one you can share
>
> Andy
>
> Subject: Re: [MapProxy] eventlet error
>
> Are you using mapproxy 1.9?  Could the issue be this -
> https://github.com/mapproxy/mapproxy/issues/239
>
> BTW centos 7+ is the same requiring the use of systemd instead of upstart
>
> On 7 February 2017 at 07:44, Andrew Terry <andrew.terry at centremaps.co.uk
> <mailto:andrew.terry at centremaps.co.uk>> wrote:
> Hi,
>
> 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”.
>
> 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.
>
> Also now creating a systemd startup as it seems the old init is
> discontinued in xenial (without installing upstart).
>
> Andy
>
>
> _______________________________________________
> MapProxy mailing list
> MapProxy at lists.osgeo.org<mailto:MapProxy at lists.osgeo.org>
> https://lists.osgeo.org/mailman/listinfo/mapproxy
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.osgeo.org/pipermail/mapproxy/attachments/20170208/004f552f/attachment.html
> >
> -------------- next part --------------
> An embedded and charset-unspecified text was scrubbed...
> Name: mapproxy-demo-strace.txt
> URL: <
> http://lists.osgeo.org/pipermail/mapproxy/attachments/20170208/004f552f/attachment.txt
> >
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> MapProxy mailing list
> MapProxy at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapproxy
>
> ------------------------------
>
> End of MapProxy Digest, Vol 84, Issue 9
> ***************************************
>
>
> _______________________________________________
> MapProxy mailing list
> MapProxy at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapproxy

-- 
BERÉNYI Attila, PhD
ügyvezető

GISLab Consulting Kft.
H-1031 Budapest, Kadosa utca 59.

M: +36 20 457 1800
W: http://gislab.hu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20170209/3fa006aa/attachment.html>


More information about the MapProxy mailing list