[mapserver-users] MapCache "missing a service" error
Jackey Cheung
cheung.jackey at gmail.com
Mon Jun 3 18:54:27 PDT 2013
Dear Rahkonen,
Thanks for your reply. It worked.
However, I was following the online documentation on installing mapcache.
The document says (
http://mapserver.org/mapcache/install.html#table-of-contents):
* In your web browser, goto the local MapCache demo page:
http://127.0.0.1/mapcache/demo/ You should see a clickable list of demo
links
It that I've misunderstood?
On Fri, May 31, 2013 at 12:49 PM, Rahkonen Jukka
<jukka.rahkonen at mmmtike.fi>wrote:
> Hi,
>
> Great, then you have made it. The message means that your URL connects
> Mapcache as WMS service but the message is missing the compulsory WMS
> parameters SERVICE and REQUEST because you only did
>
> http://192.168.56.101/mapcache/
>
> You will see the WMS 1.1.0 capabilities document by using
>
> http://192.168.56.101/mapcache?service=wms&version=1.1.1&request=GetCapabilities
> and you should be able to use your service and see the map layers as maps
> with some WMS client like OpenJUMP or QGis. If the demo is installed you
> can also test with http://192.168.56.101/mapcache/demo/wms
>
>
> -Jukka Rahkonen-
>
>
>
>
>
> ________________________________
> Jackey Cheung wrote
>
> > I'ved added the PATH_INFO to nginx location block, and using the sample
> mapcache.xml from the source package. Now it always returns
>
> > received wms with no service and request
>
>
> On Tue, May 28, 2013 at 2:45 PM, Eichner, Andreas - SID-NLKM <
> Andreas.Eichner at sid.sachsen.de<mailto:Andreas.Eichner at sid.sachsen.de>>
> wrote:
>
> You need to pass the path_info from nginx to mapcache. Use something like
>
> fastcgi_param PATH_INFO $fastcgi_path_info;
>
> in your location block.
>
> > -----Ursprüngliche Nachricht-----
> > Von: mapserver-users-bounces at lists.osgeo.org<mailto:
> mapserver-users-bounces at lists.osgeo.org>
> > [mailto:mapserver-users-bounces at lists.osgeo.org<mailto:
> mapserver-users-bounces at lists.osgeo.org>] Im Auftrag
> > von Jackey Cheung
> > Gesendet: Dienstag, 28. Mai 2013 04:12
> > An: mapserver-users at lists.osgeo.org<mailto:
> mapserver-users at lists.osgeo.org>
> > Betreff: [mapserver-users] MapCache "missing a service" error
> >
> > Hi,
> >
> > I'm trying to deploy a MapCache server. It compiles OK, but I
> > can't tell whether everything is working fine, since I can't
> > see any output from the server (command line and HTTP response, etc.)
> >
> > I've write up a config xml as below:
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <mapcache>
> > <cache name="test_cache" type="disk">
> > <base>/tmp/mapcache</base>
> > <symlink_blank />
> > </cache>
> >
> > <source name="test_lands" type="wms">
> > <getmap>
> > <params>
> > <FORMAT>image/png</FORMAT>
> > <LAYERS>BLD_BLDG</LAYERS>
> > </params>
> > </getmap>
> > <http>
> > <url>http://localhost/map/</url>
> > <headers>
> > <User-Agent>mapcache</User-Agent>
> > </headers>
> > <connection_timeout>30</connection_timeout>
> > </http>
> > </source>
> >
> > <format name="PNG" type ="PNG">
> > <compression>fast</compression>
> > </format>
> > <default_format>PNG</default_format>
> >
> > <tileset name="test_tileset">
> > <source>test_lands</source>
> > <cache>test_cache</cache>
> > <grid restricted_extent="113.816929 22.135340 114.504470
> > 22.567942">
> > WGS84
> > </grid>
> > <metadata>
> > <title>test web map.</title>
> > <abstract>Powered by MapKing.</abstract>
> > </metadata>
> > <format>PNG</format>
> > <metatile>10 10</metatile>
> > <metabuffer>10</metabuffer>
> > </tileset>
> >
> > <service type="wms" enabled="true">
> > <full_wms>assemble</full_wms>
> > <resample_mode>bilinear</resample_mode>
> > <format>PNG</format>
> > <maxsize>4096</maxsize>
> > </service>
> > <service type="wmts" enabled="false"/>
> > <service type="tms" enabled="false"/>
> > <service type="kml" enabled="false"/>
> > <service type="gmaps" enabled="false"/>
> > <service type="ve" enabled="false"/>
> > <service type="demo" enabled="false"/>
> >
> > <errors>report</errors>
> > <lock_dir>/tmp/mapcache/lock</lock_dir>
> > <threaded_fetching>true</threaded_fetching>
> > <log_level>info</log_level>
> > <auto_reload>true</auto_reload>
> > </mapcache>
> >
> >
> > I use spawn-fcgi to start the server:
> > spawn-fcgi -M 666 -s /var/run/mapcache.sock -n -u nginx -g
> > nginx -U nginx -G nginx -P /var/run/mapcache.pid --
> > /usr/local/bin/mapcache
> >
> > The server seems to be running, since it doesn't return to
> > the command prompt. When I use browser to open
> > "http://192.168.56.101/mapcache/", the first request (the
> > exact first request to the newly started server process) returns:
> > tileset "test_tileset" references grid "
> > WGS84
> > ", but it is not configured
> >
> > Then all subsequent requests returns "missing a service" error.
> > I've tried adding a WGS84 grid to the xml, but that produces
> > duplicate declaration error. I've also tried using the
> > mapcache.xml from source package, the same "missing a
> > service" error occurs.
> > What's wrong?
> >
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20130604/5a61b093/attachment.htm>
More information about the MapServer-users
mailing list