[Mapbender-users] Upload WMS fails with no Error

Astrid Emde astrid.emde at wheregroup.com
Fri Dec 11 01:34:37 EST 2009


Hello Fritz,

it should not be a problem to run Mapbender on the same machine like
MapServer.

Try the original settings from mapbender.conf:
define("OWSPROXY", "http://<ip or name>/owsproxy");

# --------------------------------------------
# type of server-connection
# curl, socket, http
# --------------------------------------------

#define("CONNECTION", "curl");
define("CONNECTION", "http");
#define("CONNECTION", "socket");

define("CONNECTION_PROXY", "<ip>");
define("CONNECTION_PORT", "<port>");
define("CONNECTION_USER", "<user>");
define("CONNECTION_PASSWORD", "<password>");

To get better error-messages please activate:
# --------------------------------------------
# Mapbender error logging
# --------------------------------------------

define("LOG_LEVEL", "all"); //"off","error","warning","notice" or "all"
define("LOG_JS", "on"); // "on", "alert", "console" or "off"

Best regards

Astrid

On Wed, December 9, 2009 8:11 pm, Friedrich Hoedl wrote:
> Dear Michael,
>
>
> Yes, Mapbender and Mapserver are running on the same Machine.
> The installed Mapbender Version is 2.6 on Windows 2008 OS.
>
>
> Your idea was great. Indeed it is a connection problem:
>
>
> I separated Mapbender and Mapserver and moved Mapserver into a Virtual
> Machine.
> I tried to upload the WMS again and now it goes!
>
>
> OK, so far so good - which setup do i need, to run both applications on
> one system:
>
>
> Is it sufficient to configure in Mapbender.conf:
>
>
> define("CONNECTION", "curl"); define("NOT_PROXY_HOSTS", "127.0.0.1");
>
>
> ... or do I need something else?
> Unfortunately when using these settings and retried to upload a WMS, the
> same error occurs in the Mapbender GUI. The Mapbender-Log-Entries are not
> very meaningful :
>
> 2009.12.09, 20:59:07,Notice: class_locale: setting locale to en
> 2009.12.09, 20:59:07,Notice: locale English_United States.1252 ok on
> windows 2009.12.09, 20:59:07,Notice: mb_validateSession.php: checking file
>  /mapbender/php/mod_loadwms.php
> 2009.12.09, 20:59:07,Notice: gui id not set
> 2009.12.09, 20:59:07,Notice: gui id set to guiID: admin2_de
> 2009.12.09, 20:59:07,Notice: mb_validateSession.php: GUI: admin2_de,
> checking file /mapbender/php/mod_loadwms.php...session valid. 2009.12.09,
> 20:59:07,Notice: administration->getGuisByPermission is
> deprecated, use user->getApplicationsByPermission instead! 2009.12.09,
> 20:59:07,Notice: mb_validatePermission.php: checking file
> /mapbender/php/mod_loadwms.php...permission valid.
> 2009.12.09, 20:59:07,Notice: CURL host:localhost
>
>
> Thanks again and best regards
>
>
> Fritz Hoedl
>
>
>
>
>
>
>> -----Original Message-----
>> From: mapbender_users-bounces at lists.osgeo.org [mailto:mapbender_users-
>> bounces at lists.osgeo.org] On Behalf Of Michael Schulz Sent: Wednesday,
>> December 09, 2009 7:32 PM
>> To: Mapbender User List
>> Subject: Re: [Mapbender-users] Upload WMS fails with no Error
>>
>>
>> Hi,
>>
>>
>> what Mapbender version are you using? It sounds like a http connection
>> problem. I assume Mapbender is also running on localhost? Have you
>> configured a proxy? In recent mapbender version you can define no_proxy
>> locations, when using connection type curl.
>>
>> Have a look a the logfile. Usually connection problems should show up
>> there.
>>
>> Cheers, Michael
>>
>>
>>
>> 2009/12/9 Friedrich Hoedl <friedrich.hoedl at hoedl-online.de>:
>>
>>> Dear Mapbender Community,
>>>
>>>
>>> now i have been searching for a long time in this mailinglist to fix
>> my
>>> phenomenon – but until now I had no success. So i´d like to place my
>>> question right here in this mailinglist:
>>>
>>> I still have a fully functional mapserver-Installation with a mapfile
>>>
>> that
>>> is based on an example taken out of one of the O´Reilly-Books
>>> (http://www.webmappingillustrated.com/Beispiele ) and liked to
>>>
>> publish a WMS
>>> with one Layer. Therefore I tried to upload this  new WMS to my
>>> existing windows
>> mapbender
>>> Installation.
>>>
>>>
>>> I don´t have a problem to load this WMS under Quantum GIS and in
>>>
>> there, my
>>> layer is shown correctly. So I went back to mapbender and tried to
>>> load the same WMS by
>> clicking “Load
>>> WMS” in the Main Menue.
>>> I used the following URL:
>>>
>>>
>>> http://localhost/cgi-
>>>
>> bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/global.map&RE
>>
>>> QUEST=GetCapabilities&SERVICE=WMS&VERSION=1.1.1
>>>
>>>
>>> 
 and pushed the “Load” - Button.
>>>
>>>
>>> After some time (approx. 30 Seconds) the Browser gave back the URL:
>>>
>>>
>>> file:
>>> http://localhost/cgi-
>>>
>> bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/global.map&RE
>>
>>> QUEST=GetCapabilities&SERVICE=WMS&VERSION=1.1.1
>>>
>>>
>>> but nothing else.
>>>
>>> The Logfiles (Apache, PHP and mapbender) doesn´t show anything
>>>
>> unusual.
>>>
>>> Does anyone knows what this means?
>>> I don´t know what´s not ok – the mapfile?
>>> Something in my mapbender-configuration?
>>>
>>>
>>> Opening an external WMS works fine so i´m very confused where to
>>>
>> search
>>> next.
>>>
>>> Thanks for all and best regards
>>>
>>>
>>> Fritz Hoedl
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Mapbender_users mailing list
>>> Mapbender_users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>>>
>>>
>>
>>
>>
>> --
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> Aufwind durch Wissen!
>>
>>
>> Qualifizierte Open Source Schulungen bei der
>> http://www.foss-akademie.de/
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>
>>
>> -----------------------------------------------------------
>> Michael Schulz
>> mschulz at webgis.de
>>
>> in medias res Gesellschaft für Informationstechnologie mbH
>>
>>
>> +++ Bitte beachten Sie unsere neue Adresse und Durchwahl +++
>>
>>
>> Schwimmbadstraße 2
>> D-79100  Freiburg i. Br.
>>
>>
>> Tel:  +49 (0)761 705798-102
>> Tel:  +49 (0)761 705798-0
>> Fax: +49 (0)761 705798-09
>>
>>
>> +++ Bitte beachten Sie unsere neue Adresse und Durchwahl +++
>>
>>
>> http://www.webgis.de / http://www.zopecms.de
>> --------------------------------------------------------------
>> Geschäftsführer: Stefan Giese, Dr. Christof Lindenbeck
>> Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg
>> _______________________________________________
>> Mapbender_users mailing list
>> Mapbender_users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>>
>
> _______________________________________________
> Mapbender_users mailing list
> Mapbender_users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>
>


-- 

Mit freundlichen Grüßen

Astrid Emde
----------------------------------

Aufwind durch Wissen!

Qualifizierte OpenSource-Schulungen
bei der www.foss-academy.eu

----------------------------------

 Astrid Emde
 WhereGroup GmbH & Co.KG
 Siemensstraße 8
 53121 Bonn
 Germany

 Fon: +49(0)228 90 90 38 - 19
 Fax: +49(0)228 90 90 38 - 11

 astrid.emde at wheregroup.com
 www.wheregroup.com

Amtsgericht Bonn, HRA 6788
-------------------------------
Komplementärin:
WhereGroup Verwaltungs GmbH
vertreten durch:
Olaf Knopp, Peter Stamm
-------------------------------



More information about the Mapbender_users mailing list