[MapProxy] Fwd: “could not get any sources: no image returned from source WMS” error in mapproxy demo

Hishan Melanga hishanm at gmail.com
Thu May 23 05:21:28 PDT 2013


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.

When I execute the command

mapproxy-util serve-develop mapproxy.yaml

It gave me an error as the following

[2013-05-23 16:57:33,558] mapproxy.config - INFO - reading:
/usr/local/share/mapproxy/mapproxy.yaml

[info]  * Running on http://127.0.0.1:8080/
Traceback (most recent call last):
  File "/usr/bin/mapproxy-util", line 9, in <module>
    load_entry_point('MapProxy==1.5.0', 'console_scripts', 'mapproxy-util')()

  File "/usr/lib/pymodules/python2.7/mapproxy/script/util.py", line 337, in main
    commands[command]['func'](args)
  File "/usr/lib/pymodules/python2.7/mapproxy/script/util.py", line
82, in serve_develop_command

    extra_files=[mapproxy_conf])
  File "/usr/lib/pymodules/python2.7/mapproxy/util/ext/serving.py",
line 568, in run_simple
    test_socket.bind((hostname, port))
  File "/usr/lib/python2.7/socket.py", line 224, in meth

    return getattr(self._sock,name)(*args)
socket.error: [Errno 98] Address already in use

Since it tells the default port 8080 is used. I thought of a different
method. In osgeo-6.05 there is a separate menu

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.

[2013-05-23 17:04:59,365] mapproxy.config - INFO - reading:
/usr/local/share/mapproxy/mapproxy.yaml

[info]  * Running on http://0.0.0.0:8011/
[info]  * Restarting with reloader: stat() polling
[2013-05-23 17:04:59,716] mapproxy.config - INFO - reading:
/usr/local/share/mapproxy/mapproxy.yaml

After that I used the link

http://localhost:8011/demo/

and viewed the demo site.



On Thu, May 23, 2013 at 4:32 PM, Oliver Tonnhofer <olt at omniscale.de> wrote:

>
> On 23.05.2013, at 12:39, Hishan Melanga wrote:
> > I followed the Tutorial 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 "could not get any sources: no image returned
> from source WMS"
>
> Please post the error message from mapproxy-util serve-develop.
> See http://mapproxy.org/support.html#how-to-ask-for-help
>
>
>
> Regards,
> Oliver
>
> --
> Oliver Tonnhofer    | Omniscale GmbH & Co KG    | http://omniscale.com
> http://mapproxy.org | https://github.com/olt    | @oltonn
>
>
>
>
>
>
>
>


-- 
හිෂාන් මෙලංග | Hishan Melanga <http://hishanmelanga.blogspot.com/>



-- 
හිෂාන් මෙලංග | Hishan Melanga <http://hishanmelanga.blogspot.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20130523/a04515bc/attachment-0001.html>


More information about the MapProxy mailing list