<div dir="ltr"><div>No I did not test whether my WMS service is working and I do not know how to do it. I've just imported OSM data into postgres database, checked whether it shows the map correctly using <br><br><a href="http://localhost/cgi-bin/mapserv?map=/home/mwh/osm-demo/basemaps/osm-google.map&mode=browse&template=openlayers&layers=all">http://localhost/cgi-bin/mapserv?map=/home/mwh/osm-demo/basemaps/osm-google.map&mode=browse&template=openlayers&layers=all</a> <br>
<br></div>Please give me some advice to figure it out.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 23, 2013 at 6:08 PM, Hishan Melanga <span dir="ltr"><<a href="mailto:hishanm@gmail.com" target="_blank">hishanm@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 class="h5"><div>First of all I've missed an important information to include in my 
first question post. I am using osgeo-6.05 where MapProxy comes 
prebuild. <br><br></div>
When I execute the command <br><br><pre><font size="4"><span style="color:rgb(11,83,148)">mapproxy-util serve-develop mapproxy.yaml</span><br><br></font></pre><pre><font size="4"><span style="font-family:arial,helvetica,sans-serif">It gave me an error as the following</span><br>

<br><span style="color:rgb(255,0,0)">[2013-05-23 16:57:33,558] mapproxy.config - INFO - reading: /usr/local/share/mapproxy/</span><span style="color:rgb(255,0,0)">mapproxy.yaml<br>

[info]  * Running on <a href="http://127.0.0.1:8080/" target="_blank">http://127.0.0.1:8080/</a><br>Traceback (most recent call last):<br>  File "/usr/bin/mapproxy-util", line 9, in <module><br>    load_entry_point('MapProxy==1.</span><span style="color:rgb(255,0,0)">5.0', 'console_scripts', 'mapproxy-util')()<br>



  File "/usr/lib/pymodules/python2.7/</span><span style="color:rgb(255,0,0)">mapproxy/script/util.py", line 337, in main<br>    commands[command]['func'](</span><span style="color:rgb(255,0,0)">args)<br>

  File "/usr/lib/pymodules/python2.7/</span><span style="color:rgb(255,0,0)">mapproxy/script/util.py", line 82, in serve_develop_command<br>

    extra_files=[mapproxy_conf])<br>  File "/usr/lib/pymodules/python2.7/</span><span style="color:rgb(255,0,0)">mapproxy/util/ext/serving.py", line 568, in run_simple<br>    test_socket.bind((hostname, port))<br>

  File "/usr/lib/python2.7/socket.py"</span><span style="color:rgb(255,0,0)">, line 224, in meth<br>

    return getattr(self._sock,name)(*</span><span style="color:rgb(255,0,0)">args)<br>socket.error: [Errno 98] Address already in use<br></span><br></font></pre><pre><font size="4">Since it tells the default port 8080 is used. I thought of a different method. In osgeo-6.05 there is a separate menu<br>



</font></pre><pre><font size="4">menu called "Start MapProxy". When I hit that option my proxy got started without giving the above error. It produces the following lines when it starts.<br><span style="color:rgb(0,255,0)"><br>

<span style="color:rgb(11,83,148)">[2013-05-23 17:04:59,365] mapproxy.config - INFO - reading: /usr/local/share/mapproxy/</span></span><span style="color:rgb(11,83,148)">mapproxy.yaml<br>

[info]  * Running on <a href="http://0.0.0.0:8011/" target="_blank">http://0.0.0.0:8011/</a><br>[info]  * Restarting with reloader: stat() polling<br>[2013-05-23 17:04:59,716] mapproxy.config - INFO - reading: /usr/local/share/mapproxy/</span><span style="color:rgb(11,83,148)">mapproxy.yaml</span><br>



<br></font></pre><pre><font size="4">After that I used the link<br><br><a href="http://localhost:8011/demo/" target="_blank">http://localhost:8011/demo/</a><br><br></font></pre><pre><font size="4">and viewed the demo site. </font></pre>

</div></div><div class="gmail_extra"><br><div class="im">-- <br><a href="http://hishanmelanga.blogspot.com/" target="_blank">හිෂාන් මෙලංග | Hishan Melanga</a><br>
</div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br><a href="http://hishanmelanga.blogspot.com/" target="_blank">හිෂාන් මෙලංග | Hishan Melanga</a><br>
</div>