CGI error.

Emil Zegers taatuut at PLANET.NL
Fri Jun 17 07:46:29 EDT 2005


Hello Siddarth,

You can enable MapServer debugging by setting DEBUG ON in the .map 
file for the MAP, LAYER and CLASS objects you want to debug and adding 
a LOG parameter in the WEB object pointing to a file where the log 
info will be stored (you can use abdolute or relative paths, this file 
needs write access for the IUSR).

See also:
http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?DebuggingMapserver
http://mapserver.gis.umn.edu/doc44/mapfile-reference.html (serach for 
DEBUG and LOG)

Now you will get a log file with MapServer log info.

Another handy tool to monitor running programs is filemon from 
www.sysinternals.com

Install it and run it and don't forget to use a filter on the name of 
your MapServer executable or you will have to dig to giant loads of 
log info (sometimes necessary though to not use a filter).

Regards,

Emil




----- Oorspronkelijk bericht -----
Van: Siddharth Parekh <sid.parekh at ERMAPPER.COM>
Datum: vrijdag, juni 17, 2005 1:22 pm
Onderwerp: Re: [UMN_MAPSERVER-USERS] CGI error.

> Hi Emil,
> I assume that the enabling the Mapserver debugging means going 
> through the
> IIS and right clicking to properties of .map file to "log access", 
> "read","write" and "script source access".
> Everything is enabled.
> In the file security tab, Anonymous access is set to 
> IUSR_<machinename>.The option is checked for "Allow IIS to control 
> password".There is write access to the folder that contains the 
> .map file and I assume
> that the log file will be written to that.
> The checkbox in unchecked for "Show friendly HTTP error messages".
> If this is what is expected of the procedure, then how else can I 
> track the
> error.
> Thanks in advance,
> Cheers,
> 
> Siddharth Parekh
> Programmer Analyst
> -----------------------------------------------
> ER Mapper
> 2 Abbotsford Street
> West Leederville WA 6007
> Australia
> Tel: +61 8 9388 2900
> Fax: +61 8 9388 2901
> Email: Sid.Parekh at ermapper.com
> http://www.ermapper.com (ER Mapper Home)
> http://www.EarthEtc.com (Image Web Server)
> http://forum.ermapper.com (Public Forum)
> -----------------------------------------------
> Just released: ER Mapper 7, Image Web Server 7,
> RightWebMap 7 and ECW JPEG 2000 SDK 3.1
> Visit www.ermapper.com for more information
> -----------------------------------------------
> 
> -----Original Message-----
> From: Emil Zegers [mailto:taatuut at planet.nl]
> Sent: Friday, June 17, 2005 6:32 PM
> To: Siddharth Parekh; MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: RE: [UMN_MAPSERVER-USERS] CGI error.
> 
> 
> Hello Siddharth,
> 
> Have you enabled Mapserver debugging in your .map file? This will 
> give you a
> log file with request info and error messages (when you're using 
> IIS make
> sure the IUSR_<machinename> has write rights on the log file and 
> enablewrite rights for the folder containing the log file in the 
> IIS management
> console. When you are using Windows authentication and you are an
> administrator testing the site on the local host this is not 
> necessary).
> This may give you more specific information about what is going 
wrong.
> 
> Also when you use Internet Explorer make sure you turned of 'Show 
> friendlyHTTP error messages' under menu Tools/Internet 
> Options/Advanced
> With more debug info it might be easier to find the cause of your 
> problem.
> Regards,
> 
> Emil
> 
> 
> -----Original Message-----
> From: UMN MapServer Users List [mailto:MAPSERVER-
> USERS at LISTS.UMN.EDU]OnBehalf Of Siddharth Parekh
> Sent: vrijdag 17 juni 2005 12:07
> To: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: Re: [UMN_MAPSERVER-USERS] CGI error.
> 
> 
> There is a link in the README-install.txt for demos.
> http://maps.dnr.state.mn.us/mapserver_demos/workshop.zip
> This is the demo that is causing the crash message and the CGI 
> error as
> detailed in the previous mails.
> Cheers.
> 
> Siddharth Parekh
> Programmer Analyst
> -----------------------------------------------
> ER Mapper
> 2 Abbotsford Street
> West Leederville WA 6007
> Australia
> Tel: +61 8 9388 2900
> Fax: +61 8 9388 2901
> Email: Sid.Parekh at ermapper.com
> http://www.ermapper.com (ER Mapper Home)
> http://www.EarthEtc.com (Image Web Server)
> http://forum.ermapper.com (Public Forum)
> -----------------------------------------------
> Just released: ER Mapper 7, Image Web Server 7,
> RightWebMap 7 and ECW JPEG 2000 SDK 3.1
> Visit www.ermapper.com for more information
> -----------------------------------------------
> 
> -----Original Message-----
> From: UMN MapServer Users List [mailto:MAPSERVER-
> USERS at LISTS.UMN.EDU]OnBehalf Of Bart van den Eijnden
> Sent: Friday, June 17, 2005 6:01 PM
> To: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: Re: [UMN_MAPSERVER-USERS] CGI error.
> 
> 
> Okay, just checking.
> 
> Can you be more specific on which  demo you are using?
> 
> Best regards,
> Bart
> 
> Bart van den Eijnden
> Syncera IT Solutions
> Postbus 270
> 2600 AG  DELFT
> 
> tel.nr.: 015-7512436
> email: BEN at Syncera-ITSolutions.nl
> 
> >>> Siddharth Parekh <sid.parekh at ERMAPPER.COM> 06/17/05 11:57am >>>
> On running from the command line, it doesnt show me any crash 
message.
> It displays
> -----
> This script can only be used to decode form results and
> should be initiated as a CGI process via a httpd server.
> -----
> 
> And on running mapserv -v it displays
> -----
> MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
> OUTPUT=PDF
> OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER
> SUPPORTS=WMS_CLI
> ENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER 
> INPUT=EPPL7INPU
> T=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG
> -----
> 
> This isn't an error.
> 
> On running through the browser, it displays, "No query information to
> decode. QUERY_STRING not set.".
> 
> Initially, it asked me that msvcr70.dll is missing.
> I downloaded it and still it doesn't work.
> 
> Any further ideas?
> Thanks in advance.
> 
> Siddharth Parekh
> Programmer Analyst
> -----------------------------------------------
> ER Mapper
> 2 Abbotsford Street
> West Leederville WA 6007
> Australia
> Tel: +61 8 9388 2900
> Fax: +61 8 9388 2901
> Email: Sid.Parekh at ermapper.com
> http://www.ermapper.com (ER Mapper Home)
> http://www.EarthEtc.com (Image Web Server)
> http://forum.ermapper.com (Public Forum)
> -----------------------------------------------
> Just released: ER Mapper 7, Image Web Server 7,
> RightWebMap 7 and ECW JPEG 2000 SDK 3.1
> Visit www.ermapper.com for more information
> -----------------------------------------------
> 
> -----Original Message-----
> From: Bart van den Eijnden [mailto:BEN at Syncera-ITSolutions.NL]
> Sent: Friday, June 17, 2005 5:44 PM
> To: sid.parekh at ERMAPPER.COM; MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: Re: [UMN_MAPSERVER-USERS] CGI error.
> 
> 
> This is probably due to a missing dependency.
> 
> Does mapserv.exe run from the command-line? Can you run 
> mapserv.exe in the
> browser and does it come back with No query information etc.?
> 
> Otherwise check with a dependency tool like depends.
> 
> Best regards,
> Bart
> 
> Bart van den Eijnden
> Syncera IT Solutions
> Postbus 270
> 2600 AG  DELFT
> 
> tel.nr.: 015-7512436
> email: BEN at Syncera-ITSolutions.nl
> 
> >>> Siddharth Parekh <sid.parekh at ERMAPPER.COM> 06/17/05 11:29am >>>
> Hey everyone,
> I downloaded Mapserver 4.4.1 (ms441pg.zip) from
> http://mapserver.gis.umn.edu/ and installed it as described in the
> Install.txt.
> On running a mapserver demo, it pops up with a crash message and then
> browser displays error:
> ------
> CGI Error
> The specified CGI application misbehaved by not returning a 
> complete set of
> HTTP headers. The headers it did return are:
> -------
> I even reinstalled everything from scratch, but no help.
> I am installing it on Win XP SP2.
> Any ideas?
> Has this issue been resolved by someone?
> Can someone throw some light on it?
> Thanks in advance.
> 
> Siddharth Parekh
> Programmer Analyst
> -----------------------------------------------
> ER Mapper
> 2 Abbotsford Street
> West Leederville WA 6007
> Australia
> Tel: +61 8 9388 2900
> Fax: +61 8 9388 2901
> Email: Sid.Parekh at ermapper.com
> http://www.ermapper.com (ER Mapper Home)
> http://www.EarthEtc.com (Image Web Server)
> http://forum.ermapper.com (Public Forum)
> -----------------------------------------------
> Just released: ER Mapper 7, Image Web Server 7,
> RightWebMap 7 and ECW JPEG 2000 SDK 3.1
> Visit www.ermapper.com for more information
> -----------------------------------------------
> 



More information about the mapserver-users mailing list