<div dir="ltr"><div>Hi,</div><div><br></div><div>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.)</div>
<div><br></div><div>I've write up a config xml as below:</div><div><br></div><div><?xml version="1.0" encoding="UTF-8"?></div><div><mapcache></div><div>  <cache name="test_cache" type="disk"></div>
<div>    <base>/tmp/mapcache</base></div><div>    <symlink_blank /></div><div>  </cache></div><div>  </div><div>  <source name="test_lands" type="wms"></div><div>    <getmap></div>
<div>      <params></div><div>         <FORMAT>image/png</FORMAT></div><div>         <LAYERS>BLD_BLDG</LAYERS></div><div>      </params></div><div>    </getmap></div><div>    <http></div>
<div>      <url><a href="http://localhost/map/">http://localhost/map/</a></url></div><div>      <headers></div><div>        <User-Agent>mapcache</User-Agent></div><div>      </headers></div>
<div>      <connection_timeout>30</connection_timeout></div><div>    </http></div><div>  </source></div><div>  </div><div>  <format name="PNG" type ="PNG"></div><div>    <compression>fast</compression></div>
<div>  </format></div><div>  <default_format>PNG</default_format></div><div>  </div><div>  <tileset name="test_tileset"></div><div>    <source>test_lands</source></div><div>    <cache>test_cache</cache></div>
<div>    <grid restricted_extent="113.816929 22.135340 114.504470 22.567942"></div><div>      WGS84</div><div>    </grid></div><div>    <metadata></div><div>      <title>test web map.</title></div>
<div>      <abstract>Powered by MapKing.</abstract></div><div>    </metadata></div><div>    <format>PNG</format></div><div>    <metatile>10 10</metatile></div><div>    <metabuffer>10</metabuffer></div>
<div>  </tileset></div><div><br></div><div>  <service type="wms" enabled="true"></div><div>    <full_wms>assemble</full_wms></div><div>    <resample_mode>bilinear</resample_mode></div>
<div>    <format>PNG</format></div><div>    <maxsize>4096</maxsize></div><div>  </service></div><div>  <service type="wmts" enabled="false"/></div><div>  <service type="tms" enabled="false"/></div>
<div>  <service type="kml" enabled="false"/></div><div>  <service type="gmaps" enabled="false"/></div><div>  <service type="ve" enabled="false"/></div>
<div>  <service type="demo" enabled="false"/></div><div>   </div><div>  <errors>report</errors></div><div>  <lock_dir>/tmp/mapcache/lock</lock_dir></div><div>  <threaded_fetching>true</threaded_fetching></div>
<div>  <log_level>info</log_level></div><div>  <auto_reload>true</auto_reload></div><div></mapcache></div><div><br></div><div><br></div><div>I use spawn-fcgi to start the server:</div><div>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</div>
<div><br></div><div>The server seems to be running, since it doesn't return to the command prompt. When I use browser to open "<a href="http://192.168.56.101/mapcache/">http://192.168.56.101/mapcache/</a>", the first request (the exact first request to the newly started server process) returns:</div>
<div><pre>tileset "test_tileset" references grid "
      WGS84
    ", but it is not configured</pre><pre><br></pre><pre>Then all subsequent requests returns "<span style="font-family:arial">missing a service" error.</span></pre><pre><font face="arial">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.</font></pre>
<pre><font face="arial">What's wrong?</font></pre></div></div>