<div dir="ltr">Dear Rahkonen,<div><br></div><div>Thanks for your reply. It worked.</div><div><br></div><div>However, I was following the online documentation on installing mapcache. The document says (<a href="http://mapserver.org/mapcache/install.html#table-of-contents">http://mapserver.org/mapcache/install.html#table-of-contents</a>):</div>
<div>* In your web browser, goto the local MapCache demo page: <a class="" href="http://127.0.0.1/mapcache/demo/">http://127.0.0.1/mapcache/demo/</a> You should see
a clickable list of demo links<br></div><div><br></div><div>It that I've misunderstood?</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 31, 2013 at 12:49 PM, Rahkonen Jukka <span dir="ltr"><<a href="mailto:jukka.rahkonen@mmmtike.fi" target="_blank">jukka.rahkonen@mmmtike.fi</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
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<br>
<br>
<a href="http://192.168.56.101/mapcache/" target="_blank">http://192.168.56.101/mapcache/</a><br>
<br>
You will see the WMS 1.1.0 capabilities document by using<br>
<a href="http://192.168.56.101/mapcache?service=wms&version=1.1.1&request=GetCapabilities" target="_blank">http://192.168.56.101/mapcache?service=wms&version=1.1.1&request=GetCapabilities</a><br>
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 <a href="http://192.168.56.101/mapcache/demo/wms" target="_blank">http://192.168.56.101/mapcache/demo/wms</a><br>

<br>
<br>
-Jukka Rahkonen-<br>
<br>
<br>
<br>
<br>
<br>
________________________________<br>
Jackey Cheung wrote<br>
<div class="im"><br>
> I'ved added the PATH_INFO to nginx location block, and using the sample mapcache.xml from the source package. Now it always returns<br>
<br>
> received wms with no service and request<br>
<br>
<br>
</div><div class="im">On Tue, May 28, 2013 at 2:45 PM, Eichner, Andreas - SID-NLKM <<a href="mailto:Andreas.Eichner@sid.sachsen.de">Andreas.Eichner@sid.sachsen.de</a><mailto:<a href="mailto:Andreas.Eichner@sid.sachsen.de">Andreas.Eichner@sid.sachsen.de</a>>> wrote:<br>

<br>
You need to pass the path_info from nginx to mapcache. Use something like<br>
<br>
  fastcgi_param PATH_INFO $fastcgi_path_info;<br>
<br>
in your location block.<br>
<br>
> -----Ursprüngliche Nachricht-----<br>
> Von: <a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a><mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>><br>

</div>> [mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a><mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>>] Im Auftrag<br>

<div class="im">> von Jackey Cheung<br>
> Gesendet: Dienstag, 28. Mai 2013 04:12<br>
</div>> An: <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><mailto:<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>><br>
<div class="HOEnZb"><div class="h5">> Betreff: [mapserver-users] MapCache "missing a service" error<br>
><br>
> Hi,<br>
><br>
> I'm trying to deploy a MapCache server. It compiles OK, but I<br>
> can't tell whether everything is working fine, since I can't<br>
> see any output from 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>
><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></url><br>
>       <headers><br>
>         <User-Agent>mapcache</User-Agent><br>
>       </headers><br>
>       <connection_timeout>30</connection_timeout><br>
>     </http><br>
>   </source><br>
><br>
>   <format name="PNG" type ="PNG"><br>
>     <compression>fast</compression><br>
>   </format><br>
>   <default_format>PNG</default_format><br>
><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<br>
> 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</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>
><br>
>   <errors>report</errors><br>
>   <lock_dir>/tmp/mapcache/lock</lock_dir><br>
>   <threaded_fetching>true</threaded_fetching><br>
>   <log_level>info</log_level><br>
>   <auto_reload>true</auto_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<br>
> nginx -U nginx -G nginx -P /var/run/mapcache.pid --<br>
> /usr/local/bin/mapcache<br>
><br>
> The server seems to be running, since it doesn't return to<br>
> the command prompt. When I use browser to open<br>
> "<a href="http://192.168.56.101/mapcache/" target="_blank">http://192.168.56.101/mapcache/</a>", the first request (the<br>
> exact first request to the newly started server process) returns:<br>
> tileset "test_tileset" references grid "<br>
>       WGS84<br>
>     ", but it is not configured<br>
><br>
> Then all subsequent requests returns "missing a service" error.<br>
> I've tried adding a WGS84 grid to the xml, but that produces<br>
> duplicate declaration error. I've also tried using the<br>
> mapcache.xml from source package, the same "missing a<br>
> service" error occurs.<br>
> What's wrong?<br>
><br>
<br>
</div></div><div class="HOEnZb"><div class="h5">_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</div></div></blockquote></div><br></div>