<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>