<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"Iskoola Pota";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
code
        {mso-style-priority:99;
        font-family:"Courier New";}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML-esimuotoiltu Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTML-esimuotoiltuChar
        {mso-style-name:"HTML-esimuotoiltu Char";
        mso-style-priority:99;
        mso-style-link:HTML-esimuotoiltu;
        font-family:"Consolas","serif";
        mso-fareast-language:FI;}
span.Shkpostityyli22
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 2.0cm 70.85pt 2.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="FI" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">First question is that do you know if your WMS service is really working? Have you tested it EPSG:3857 projection with some WMS client like OpenJUMP? 
 The following line may of course be correct but it is not the most common place for the Proj library<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<pre><code><span lang="EN-US">CONFIG "PROJ_LIB" "/home/mwh/osm-demo/basemaps"<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US"><o:p> </o:p></span></code></pre>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I suggest also to use DEBUG 5 in the mapfile and use a special MS_ERRORFILE so you can see what possibly goes wrong on the Mapserver side.  The
 requests which are sent by MapProxy you can find from the Apache access.log file.  Consider alto commenting out the MINSCALEDENOM because otherwise you will get an empty map when you zoom in. That should not be any error on MapProxy side but it may not be
 what you await from the service.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">-Jukka Rahkonen-<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<pre><code><span lang="EN-US"><o:p> </o:p></span></code></pre>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Hishan Melanga wrote:</span><span lang="EN-US"><o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US"><br clear="all">
<o:p></o:p></span></p>
<table class="MsoNormalTable" border="0" cellspacing="3" cellpadding="0">
<tbody>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt"></td>
</tr>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt">
<div>
<div>
<p><span lang="EN-US">I am trying to connect my mapserver to MapProxy. Start of my map file is shown below<o:p></o:p></span></p>
<pre><code><span lang="EN-US">MAP<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US">FONTSET "fonts.lst"<o:p></o:p></span></code></pre>
<pre><code><span lang="EN-US">IMAGETYPE png<o:p></o:p></span></code></pre>
<pre><code>MAXSIZE 4000<o:p></o:p></code></pre>
<pre><code>SIZE 800 800<o:p></o:p></code></pre>
<pre><code>EXTENT -20000000 -20000000 20000000 20000000<o:p></o:p></code></pre>
<pre><code>UNITS meters<o:p></o:p></code></pre>
<pre><code>IMAGECOLOR 153 179 204<o:p></o:p></code></pre>
<pre><code>WEB<o:p></o:p></code></pre>
<pre><code>   METADATA<o:p></o:p></code></pre>
<pre><code>      "ows_enable_request" "*"<o:p></o:p></code></pre>
<pre><code>      "wms_srs" "EPSG:4326 EPSG:3857 EPSG:2154 EPSG:310642901 EPSG:4171 EPSG:310024802 EPSG:310915814 EPSG:310486805 EPSG:310702807 EPSG:310700806 EPSG:310547809 EPSG:310706808 EPSG:310642810 EPSG:310642801 EPSG:310642812 EPSG:310032811 EPSG:310642813 EPSG:2986"<o:p></o:p></code></pre>
<pre><code>      "labelcache_map_edge_buffer" "-10"<o:p></o:p></code></pre>
<pre><code>      "wms_title" "osm france"<o:p></o:p></code></pre>
<pre><code>   END<o:p></o:p></code></pre>
<pre><code>   IMAGEPATH "/tmp/ms_tmp/"<o:p></o:p></code></pre>
<pre><code>   IMAGEURL "/ms_tmp/"<o:p></o:p></code></pre>
<pre><code>END<o:p></o:p></code></pre>
<pre><code>DEBUG 1<o:p></o:p></code></pre>
<pre><code>CONFIG "MS_ERRORFILE" "stderr"<o:p></o:p></code></pre>
<pre><code>CONFIG "PROJ_LIB" "/home/mwh/osm-demo/basemaps"<o:p></o:p></code></pre>
<pre><code>PROJECTION<o:p></o:p></code></pre>
<pre><code>   "init=epsg:3857"<o:p></o:p></code></pre>
<pre><code>END<o:p></o:p></code></pre>
<pre><code>LAYER<o:p></o:p></code></pre>
<pre><code>   TYPE POLYGON<o:p></o:p></code></pre>
<pre><code>   STATUS ON<o:p></o:p></code></pre>
<pre><code>   GROUP "default"<o:p></o:p></code></pre>
<pre><code>   DEBUG 1<o:p></o:p></code></pre>
<pre><code>   NAME "land0"<o:p></o:p></code></pre>
<pre><code>   PROCESSING "APPROXIMATION_SCALE=full"<o:p></o:p></code></pre>
<pre><code>   PROJECTION<o:p></o:p></code></pre>
<pre><code>       "init=epsg:4326"<o:p></o:p></code></pre>
<pre><code>   END<o:p></o:p></code></pre>
<pre><code>   MINSCALEDENOM 332808204<o:p></o:p></code></pre>
<pre><code>   MAXSCALEDENOM 99999999999<o:p></o:p></code></pre>
<pre><code>   DATA "data/TM_WORLD_BORDERS-0.3.shp"<o:p></o:p></code></pre>
<pre><code>   CLASS<o:p></o:p></code></pre>
<pre><code>       STYLE<o:p></o:p></code></pre>
<pre><code>           COLOR 242 239 233<o:p></o:p></code></pre>
<pre><code>       END<o:p></o:p></code></pre>
<pre><code>   END<o:p></o:p></code></pre>
<pre><code>END<o:p></o:p></code></pre>
<pre><code>LAYER<o:p></o:p></code></pre>
<pre><code>   GROUP "default"<o:p></o:p></code></pre>
<pre><code>   STATUS ON<o:p></o:p></code></pre>
<pre><code>   MAXSCALEDENOM 99999999999<o:p></o:p></code></pre>
<pre><code>   MINSCALEDENOM 332808204<o:p></o:p></code></pre>
<pre><code>   TYPE LINE<o:p></o:p></code></pre>
<pre><code>   NAME "borders0"<o:p></o:p></code></pre>
<pre><code>   PROJECTION<o:p></o:p></code></pre>
<pre><code>     "init=epsg:4326"<o:p></o:p></code></pre>
<pre><code>   END<o:p></o:p></code></pre>
<pre><code>   DATA "data/boundaries.shp"<o:p></o:p></code></pre>
<pre><code>   CLASS<o:p></o:p></code></pre>
<pre><code>      STYLE<o:p></o:p></code></pre>
<pre><code>         WIDTH 0.5<o:p></o:p></code></pre>
<pre><code>         COLOR "#CDCBC6"<o:p></o:p></code></pre>
<pre><code>      END<o:p></o:p></code></pre>
<pre><code>   END<o:p></o:p></code></pre>
<pre><code>END</code><o:p></o:p></pre>
</div>
</div>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><br clear="all">
<o:p></o:p></p>
<p>I followed the <a href="http://mapproxy.org/docs/nightly/tutorial.html" target="_blank">
Tutorial</a> given in MapProxy website to start my proxy by starting the proxy. The tutorial example works fine. But when I use my own .map file it shows an error "<strong>could not get any sources: no image returned from source WMS</strong>"<o:p></o:p></p>
<p>My mapproxy.yaml is shown below<o:p></o:p></p>
<pre><code>services:<o:p></o:p></code></pre>
<pre><code>  demo:<o:p></o:p></code></pre>
<pre><code>  wms:<o:p></o:p></code></pre>
<pre><code>    md:<o:p></o:p></code></pre>
<pre><code>      title: MapProxy WMS Proxy<o:p></o:p></code></pre>
<pre><code>      abstract: This is the fantastic MapProxy.<o:p></o:p></code></pre>
<pre><code>      online_resource: <a href="http://mapproxy.org/" target="_blank">http://mapproxy.org/</a><o:p></o:p></code></pre>
<pre><code>      contact:<o:p></o:p></code></pre>
<pre><code>        person: Your Name Here<o:p></o:p></code></pre>
<pre><code>        position: Technical Director<o:p></o:p></code></pre>
<pre><code>        organization: <o:p></o:p></code></pre>
<pre><code>        address: Fakestreet 123<o:p></o:p></code></pre>
<pre><code>        city: Somewhere<o:p></o:p></code></pre>
<pre><code>        postcode: 12345<o:p></o:p></code></pre>
<pre><code>        country: Germany<o:p></o:p></code></pre>
<pre><code>        phone: +49(0)000-000000-0<o:p></o:p></code></pre>
<pre><code>        fax: +49(0)000-000000-0<o:p></o:p></code></pre>
<pre><code>        email: <a href="mailto:info@omniscale.de" target="_blank">info@omniscale.de</a><o:p></o:p></code></pre>
<pre><code>      access_constraints:<o:p></o:p></code></pre>
<pre><code>        This service is intended for private and<o:p></o:p></code></pre>
<pre><code>        evaluation use only. The data is licensed<o:p></o:p></code></pre>
<pre><code>        as Creative Commons Attribution-Share Alike 2.0<o:p></o:p></code></pre>
<pre><code>        (<a href="http://creativecommons.org/licenses/by-sa/2.0/" target="_blank">http://creativecommons.org/licenses/by-sa/2.0/</a>)<o:p></o:p></code></pre>
<pre><code>      fees: 'None'<o:p></o:p></code></pre>
<pre><code><o:p> </o:p></code></pre>
<pre><code>sources:<o:p></o:p></code></pre>
<pre><code>  test_wms:<o:p></o:p></code></pre>
<pre><code>    type: wms<o:p></o:p></code></pre>
<pre><code>    req:<o:p></o:p></code></pre>
<pre><code>      url: <a href="http://osm.omniscale.net/proxy/service" target="_blank">http://osm.omniscale.net/proxy/service</a>?<o:p></o:p></code></pre>
<pre><code>      layers: osm<o:p></o:p></code></pre>
<pre><code><o:p> </o:p></code></pre>
<pre><code>  mapserver:<o:p></o:p></code></pre>
<pre><code>    type: wms<o:p></o:p></code></pre>
<pre><code>    supported_srs: ['epsg:3857', 'epsg:4326']<o:p></o:p></code></pre>
<pre><code>    req:<o:p></o:p></code></pre>
<pre><code>      url: <a href="http://localhost/cgi-bin/mapserv" target="_blank">http://localhost/cgi-bin/mapserv</a>?<o:p></o:p></code></pre>
<pre><code>      layers: default<o:p></o:p></code></pre>
<pre><code>      map: /home/mwh/osm-demo/basemap/osm-google.map<o:p></o:p></code></pre>
<pre><code>      transparent: true<o:p></o:p></code></pre>
<pre><code>    coverage:<o:p></o:p></code></pre>
<pre><code>      bbox: -20000000.0,-20000000.0,20000000.0,20000000.0<o:p></o:p></code></pre>
<pre><code>      bbox_srs: 'epsg:3857'<o:p></o:p></code></pre>
<pre><code><o:p> </o:p></code></pre>
<pre><code>layers:<o:p></o:p></code></pre>
<pre><code>  - name: mapserver<o:p></o:p></code></pre>
<pre><code>    title: Mapserver Test Layer<o:p></o:p></code></pre>
<pre><code>    sources: [mapserver]<o:p></o:p></code></pre>
<pre style="margin-bottom:12.0pt"><o:p> </o:p></pre>
<p>Currently I am stuck in this problem please help me to find some answer. <o:p>
</o:p></p>
<p>Thank you.<o:p></o:p></p>
<p class="MsoNormal"><br>
-- <br>
<a href="http://hishanmelanga.blogspot.com/" target="_blank"><span style="font-family:"Iskoola Pota","sans-serif"">හිෂාන්</span>
<span style="font-family:"Iskoola Pota","sans-serif"">මෙලංග</span> | Hishan Melanga</a><o:p></o:p></p>
</div>
</div>
</div>
</body>
</html>