<div dir="ltr">from a terminal, type:<div><br></div><div>curl '<a href="http://localhost/mapcache/?LAYERS=osm&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fjpeg&SRS=EPSG%3A4326&BBOX=-135,22.5,-112.5,45&WIDTH=256&HEIGHT=256">http://localhost/mapcache/?LAYERS=osm&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fjpeg&SRS=EPSG%3A4326&BBOX=-135,22.5,-112.5,45&WIDTH=256&HEIGHT=256</a>'</div><div><br></div><div>--</div><div>thomas</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 1 October 2014 18:38, Sithila Konara <span dir="ltr"><<a href="mailto:sithilamadushanka@gmail.com" target="_blank">sithilamadushanka@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>hi,<br><br></div>Following URL is a one of my image URL<br><br><a href="http://localhost/mapcache/?LAYERS=osm&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fjpeg&SRS=EPSG%3A4326&BBOX=-135,22.5,-112.5,45&WIDTH=256&HEIGHT=256" target="_blank">http://localhost/mapcache/?LAYERS=osm&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fjpeg&SRS=EPSG%3A4326&BBOX=-135,22.5,-112.5,45&WIDTH=256&HEIGHT=256</a><br><br></div>This is how errors get occors <br><img style="margin-right:25px" alt="Inline image 1" src="cid:ii_148cc8c76446af4c"><br><div><br></div><div>and i have examined Apache error logs, but unable find much details. I'm working in a Ubuntu server in a VM environment. server is directly connected to internet using NAT interface to get the Internet. But i think server should provide tiles from only using local resources, after successful mapserver implementation. But I noticed that pink tiles also not display when i disconnect the server from the Internet. I'm new to Linux and Mapserver so difficult to extract meaning of error logs etc<br><br><img alt="Inline image 2" src="cid:ii_148cc8ed2c4b5b96" height="445" width="549"><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 1, 2014 at 2:52 PM, thomas bonfort <span dir="ltr"><<a href="mailto:thomas.bonfort@gmail.com" target="_blank">thomas.bonfort@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Sithila,<div>try right clicking on one of the pink tiles to open it in a new browser window, or alternately look in your apache access/error logs. You should get an error message that should give you a head start. 502 errors are usually a sign that the source wms server is producing an error instead of an image, the actual error message should be returned back to you.</div><div><br></div><div>--</div><div>thomas</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On 1 October 2014 09:50, Sithila Konara <span dir="ltr"><<a href="mailto:sithilamadushanka@gmail.com" target="_blank">sithilamadushanka@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><br><div class="gmail_quote"><div dir="ltr"><table><tbody><tr><td><div>
    <span><br></span><a href="http://gis.stackexchange.com/questions/115709/all-map-services-display-pink-tiles#" title="This is a favorite question (click again to undo)" target="_blank"></a>
       

</div>

            </td>
            
<td>
<div>
    <div>

        <p>I have implemented mapserver in Ubuntu 14.04 with postgresql 9.3, postgis and imposm using <a href="https://github.com/mapserver/mapserver/wiki/Rendering-OSM-data-on-Ubuntu-12.04" rel="nofollow" target="_blank">GitHub tutorial</a>.
 After completing the tutorial all map services display pink tiles not 
map info. i was not encounter with any issues during the tutorial run. 
any reason to this?</p>

<p>Following screenshots for your reference.</p>

<p><img src="http://i.stack.imgur.com/SP4Vw.jpg" alt="enter image description here">
<img src="http://i.stack.imgur.com/dlan8.jpg" alt="enter image description here">
<img src="http://i.stack.imgur.com/wZkqJ.jpg" alt="enter image description here"></p>

<p style="text-align:left"></p><p style="text-align:left">When I check network I saw some errors as follows it shows as bad gate way and internal server error
<img src="http://i.stack.imgur.com/53eQE.jpg" alt="enter image description here"></p>

<p>here's my basemap makefile and mapcache.xml file</p>

<ul><li><b>basemap/makefile</b></li></ul>

<pre><code><span>UNAME </span><span>:=</span><span> </span><span>$(</span><span>shell uname</span><span>)</span><span>

ifeq </span><span>($(</span><span>UNAME</span><span>),</span><span> Darwin</span><span>)</span><span>
SED</span><span>=</span><span>sed </span><span>-</span><span>i </span><span>""</span><span>
</span><span>else</span><span>
SED</span><span>=</span><span>sed </span><span>-</span><span>i
endif

CPP</span><span>=</span><span>gcc </span><span>-</span><span>E </span><span>-</span><span>x c
</span><span>#</span><span>if</span><span> the preprocessor fails </span><span>for</span><span> </span><span>some</span><span> reason</span><span>,</span><span> try replacing this </span><span>with</span><span> </span><span>"cpp"</span><span> </span><span>on</span><span> linux</span><span>,</span><span> </span><span>or</span><span> </span><span>"cpp-4.2"</span><span> </span><span>on</span><span> darwin </span><span>(</span><span>not</span><span> available starting </span><span>with</span><span> mountain lion</span><span>)</span><span>


OSM_PREFIX</span><span>=</span><span>osm_new_
OSM_NAME_COLUMN</span><span>=</span><span>name
OSM_SRID</span><span>=</span><span>4326</span><span>
OSM_UNITS</span><span>=</span><span>dd
OSM_EXTENT</span><span>=</span><span>-180</span><span> </span><span>-90</span><span> </span><span>180</span><span> </span><span>90</span><span>
OSM_SRID</span><span>=</span><span>3857</span><span>
OSM_UNITS</span><span>=</span><span>meters
OSM_DB_CONNECTION</span><span>=</span><span>host</span><span>=</span><span>localhost dbname</span><span>=</span><span>osm </span><span>user</span><span>=</span><span>osm password</span><span>=</span><span>osm port</span><span>=</span><span>5432</span><span>
OSM_EXTENT</span><span>=</span><span>-20000000</span><span> </span><span>-20000000</span><span> </span><span>20000000</span><span> </span><span>20000000</span><span>
OSM_WMS_SRS</span><span>=</span><span>EPSG</span><span>:</span><span>900913</span><span> EPSG</span><span>:</span><span>4326</span><span> EPSG</span><span>:</span><span>3857</span><span> EPSG</span><span>:</span><span>2154</span><span> EPSG</span><span>:</span><span>310642901</span><span> EPSG</span><span>:</span><span>4171</span><span> EPSG</span><span>:</span><span>310024802</span><span> EPSG</span><span>:</span><span>310915814</span><span> EPSG</span><span>:</span><span>310486805</span><span> EPSG</span><span>:</span><span>310702807</span><span> EPSG</span><span>:</span><span>310700806</span><span> EPSG</span><span>:</span><span>310547809</span><span> EPSG</span><span>:</span><span>310706808</span><span> EPSG</span><span>:</span><span>310642810</span><span> EPSG</span><span>:</span><span>310642801</span><span> EPSG</span><span>:</span><span>310642812</span><span> EPSG</span><span>:</span><span>310032811</span><span> EPSG</span><span>:</span><span>310642813</span><span> EPSG</span><span>:</span><span>2986</span><span>
DEBUG</span><span>=</span><span>1</span><span>
LAYERDEBUG</span><span>=</span><span>1</span><span>
STYLE</span><span>=</span><span>google
</span><span>#</span><span>can also </span><span>use</span><span> google </span><span>or</span><span> bing</span></code></pre>

<ul><li><b>mapcache-osm.xml</b></li></ul>

<pre><code><span><?</span><span>xml</span><span> version</span><span>=</span><span>"1.0"</span><span> encoding</span><span>=</span><span>"UTF-8"</span><span>?></span><span>
</span><span><!</span><span>-- see the accompanying <a href="https://github.com/mapserver/mapcache/blob/master/mapcache.xml.sample" target="_blank">https://github.com/mapserver/mapcache/blob/master/mapcache.xml.sample</a> for a fully commented configuration file --></span><span>
</span><span><</span><span>mapcache</span><span>></span><span>
</span><span><</span><span>cache name</span><span>=</span><span>"disk"</span><span> type</span><span>=</span><span>"disk"</span><span>></span><span>
    </span><span><</span><span>base</span><span>>/</span><span>home</span><span>/</span><span>sithila</span><span>/</span><span>osm-demo</span><span>/</span><span>mapcache</span><span>/</span><span>cache</span><span></</span><span>base</span><span>></span><span> </span><span><!</span><span>-- Change Path here --></span><span>
    </span><span><</span><span>symlink_blank</span><span>/></span><span>
</span><span></</span><span>cache</span><span>></span><span>

</span><span><</span><span>source name</span><span>=</span><span>"osm"</span><span> type</span><span>=</span><span>"wms"</span><span>></span><span>
    </span><span><</span><span>getmap</span><span>></span><span>
        </span><span><</span><span>params</span><span>></span><span>
            </span><span><</span><span>FORMAT</span><span>></span><span>image</span><span>/</span><span>png</span><span></</span><span>FORMAT</span><span>></span><span>
            </span><span><</span><span>LAYERS</span><span>></span><span>default</span><span></</span><span>LAYERS</span><span>></span><span>
            </span><span><</span><span>MAP</span><span>>/</span><span>home</span><span>/</span><span>sithila</span><span>/</span><span>osm-demo</span><span>/</span><span>basemaps</span><span>/</span><span>osm-google</span><span>.</span><span>map</span><span></</span><span>MAP</span><span>></span><span> </span><span><!</span><span>-- Change Path here --></span><span>
        </span><span></</span><span>params</span><span>></span><span>
    </span><span></</span><span>getmap</span><span>></span><span>
    </span><span><</span><span>http</span><span>></span><span>
        </span><span><</span><span>url</span><span>></span><span>http</span><span>://</span><span>localhost</span><span>/</span><span>cgi-bin</span><span>/</span><span>mapserv</span><span>?</</span><span>url</span><span>></span><span> </span><span><!</span><span>-- Change server here --></span><span>
    </span><span></</span><span>http</span><span>></span><span>
</span><span></</span><span>source</span><span>></span><span>
</span><span><</span><span>tileset name</span><span>=</span><span>"osm"</span><span>></span><span>
    </span><span><</span><span>metadata</span><span>></span><span>
        </span><span><</span><span>title</span><span>></span><span>OSM MapServer served map</span><span></</span><span>title</span><span>></span><span>
        </span><span><</span><span>abstract</span><span>></span><span>see https</span><span>://</span><span>github</span><span>.</span><span>com</span><span>/</span><span>mapserver</span><span>/</span><span>mapserver</span><span>/</span><span>wiki</span><span>/</span><span>RenderingOsmDataUbuntuv2</span><span></</span><span>abstract</span><span>></span><span>
    </span><span></</span><span>metadata</span><span>></span><span>
    </span><span><</span><span>source</span><span>></span><span>osm</span><span></</span><span>source</span><span>></span><span>
    </span><span><</span><span>cache</span><span>></span><span>disk</span><span></</span><span>cache</span><span>></span><span>
    </span><span><</span><span>grid</span><span>></span><span>WGS84</span><span></</span><span>grid</span><span>></span><span>
    </span><span><</span><span>grid</span><span>></span><span>g</span><span></</span><span>grid</span><span>></span><span>
    </span><span><</span><span>format</span><span>></span><span>PNG</span><span></</span><span>format</span><span>></span><span>
    </span><span><</span><span>metatile</span><span>></span><span>5</span><span> </span><span>5</span><span></</span><span>metatile</span><span>></span><span>
    </span><span><</span><span>metabuffer</span><span>></span><span>10</span><span></</span><span>metabuffer</span><span>></span><span>
    </span><span><</span><span>expires</span><span>></span><span>10000</span><span></</span><span>expires</span><span>></span><span>
    </span><span><</span><span>auto_expire</span><span>></span><span>86400</span><span></</span><span>auto_expire</span><span>></span><span>  
</span><span></</span><span>tileset</span><span>></span><span>

</span><span><</span><span>default_format</span><span>></span><span>JPEG</span><span></</span><span>default_format</span><span>></span><span>

</span><span><</span><span>service type</span><span>=</span><span>"wms"</span><span> enabled</span><span>=</span><span>"true"</span><span>></span><span>
    </span><span><</span><span>full_wms</span><span>></span><span>assemble</span><span></</span><span>full_wms</span><span>></span><span>
    </span><span><</span><span>resample_mode</span><span>></span><span>bilinear</span><span></</span><span>resample_mode</span><span>></span><span>
    </span><span><</span><span>format</span><span>></span><span>JPEG</span><span></</span><span>format</span><span>></span><span>
    </span><span><</span><span>maxsize</span><span>></span><span>4096</span><span></</span><span>maxsize</span><span>></span><span>
</span><span></</span><span>service</span><span>></span><span>

</span><span><</span><span>service type</span><span>=</span><span>"wmts"</span><span> enabled</span><span>=</span><span>"true"</span><span>/></span><span>
</span><span><</span><span>service type</span><span>=</span><span>"tms"</span><span> enabled</span><span>=</span><span>"true"</span><span>/></span><span>
</span><span><</span><span>service type</span><span>=</span><span>"kml"</span><span> enabled</span><span>=</span><span>"true"</span><span>/></span><span>
</span><span><</span><span>service type</span><span>=</span><span>"gmaps"</span><span> enabled</span><span>=</span><span>"true"</span><span>/></span><span>
</span><span><</span><span>service type</span><span>=</span><span>"ve"</span><span> enabled</span><span>=</span><span>"true"</span><span>/></span><span>
</span><span><</span><span>service type</span><span>=</span><span>"demo"</span><span> enabled</span><span>=</span><span>"true"</span><span>/></span><span>

</span><span><</span><span>errors</span><span>></span><span>report</span><span></</span><span>errors</span><span>></span><span>
</span><span><</span><span>lock_dir</span><span>>/</span><span>tmp</span><span></</span><span>lock_dir</span><span>></span><span>
</span><span></</span><span>mapcache</span><span>></span></code></pre>

    </div></div></td></tr></tbody></table></div>
</div><br></div>
<br></div></div>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">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></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>