[mapserver-users] MapCache "missing a service" error

Eichner, Andreas - SID-NLKM Andreas.Eichner at sid.sachsen.de
Mon May 27 23:45:37 PDT 2013


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] Im Auftrag 
> von Jackey Cheung
> Gesendet: Dienstag, 28. Mai 2013 04:12
> An: 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?
> 


More information about the mapserver-users mailing list