<div dir="ltr">Hi Stephen,<div><br></div><div>Thanks for your reply. I've tried but the error still exists.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 28, 2013 at 10:36 AM, Stephen Woodbridge <span dir="ltr"><<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Jackey,<br>
<br>
Try changing:<div class="im"><br>
<br>
     <grid restricted_extent="113.816929 22.135340 114.504470 22.567942"><br>
       WGS84<br>
     </grid><br>
<br></div>
to:<div class="im"><br>
<br>
     <grid restricted_extent="113.816929 22.135340 114.504470 22.567942">WGS84</grid><br>
<br></div>
Remove the white spaces. If that fixes the problem, please write a bug on on this.<br>
<br>
Thanks,<br>
  -Steve W<div><div class="h5"><br>
<br>
On 5/27/2013 10:12 PM, Jackey Cheung wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hi,<br>
<br>
I'm trying to deploy a MapCache server. It compiles OK, but I can't tell<br>
whether everything is working fine, since I can't see any output from<br>
the server (command line and HTTP response, etc.)<br>
<br>
I've write up a config xml as below:<br>
<br>
<?xml version="1.0" encoding="UTF-8"?><br>
<mapcache><br>
   <cache name="test_cache" type="disk"><br>
     <base>/tmp/mapcache</base><br>
     <symlink_blank /><br>
   </cache><br>
   <source name="test_lands" type="wms"><br>
     <getmap><br>
       <params><br>
          <FORMAT>image/png</FORMAT><br>
          <LAYERS>BLD_BLDG</LAYERS><br>
       </params><br>
     </getmap><br>
     <http><br>
       <url><a href="http://localhost/map/" target="_blank">http://localhost/map/</a></<u></u>url><br>
       <headers><br>
         <User-Agent>mapcache</User-<u></u>Agent><br>
       </headers><br>
       <connection_timeout>30</<u></u>connection_timeout><br>
     </http><br>
   </source><br>
   <format name="PNG" type ="PNG"><br>
     <compression>fast</<u></u>compression><br>
   </format><br>
   <default_format>PNG</default_<u></u>format><br>
   <tileset name="test_tileset"><br>
     <source>test_lands</source><br>
     <cache>test_cache</cache><br>
     <grid restricted_extent="113.816929 22.135340 114.504470 22.567942"><br>
       WGS84<br>
     </grid><br>
     <metadata><br>
       <title>test web map.</title><br>
       <abstract>Powered by MapKing.</abstract><br>
     </metadata><br>
     <format>PNG</format><br>
     <metatile>10 10</metatile><br>
     <metabuffer>10</metabuffer><br>
   </tileset><br>
<br>
   <service type="wms" enabled="true"><br>
     <full_wms>assemble</full_wms><br>
     <resample_mode>bilinear</<u></u>resample_mode><br>
     <format>PNG</format><br>
     <maxsize>4096</maxsize><br>
   </service><br>
   <service type="wmts" enabled="false"/><br>
   <service type="tms" enabled="false"/><br>
   <service type="kml" enabled="false"/><br>
   <service type="gmaps" enabled="false"/><br>
   <service type="ve" enabled="false"/><br>
   <service type="demo" enabled="false"/><br>
   <errors>report</errors><br>
   <lock_dir>/tmp/mapcache/lock</<u></u>lock_dir><br>
   <threaded_fetching>true</<u></u>threaded_fetching><br>
   <log_level>info</log_level><br>
   <auto_reload>true</auto_<u></u>reload><br>
</mapcache><br>
<br>
<br>
I use spawn-fcgi to start the server:<br>
spawn-fcgi -M 666 -s /var/run/mapcache.sock -n -u nginx -g nginx -U<br>
nginx -G nginx -P /var/run/mapcache.pid -- /usr/local/bin/mapcache<br>
<br>
The server seems to be running, since it doesn't return to the command<br>
prompt. When I use browser to open "<a href="http://192.168.56.101/mapcache/" target="_blank">http://192.168.56.101/<u></u>mapcache/</a>",<br>
the first request (the exact first request to the newly started server<br>
process) returns:<br>
<br>
tileset "test_tileset" references grid "<br>
       WGS84<br>
     ", but it is not configured<br>
<br>
<br>
Then all subsequent requests returns "missing a service" error.<br>
<br>
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.<br>
<br>
What's wrong?<br>
<br>
<br>
<br></div></div>
______________________________<u></u>_________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.<u></u>org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/mapserver-<u></u>users</a><br>
<br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.<u></u>org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/mapserver-<u></u>users</a><br>
</blockquote></div><br></div>