[MapProxy] eventlet error
Andrew Terry
andrew.terry at centremaps.co.uk
Wed Feb 8 10:47:40 PST 2017
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/2c70fac6/attachment-0001.html>
More information about the MapProxy
mailing list