[mapserver-users] unable to access the map file
Suman Chatterjee
schatterjee at addisontx.gov
Mon Jun 29 13:32:11 PDT 2009
Hi Steve,
Thank You very much. I did what you said. This is the log file generated:
[Mon Jun 29 15:17:11 2009].839000 msLoadMap(): 0.016s
[Mon Jun 29 15:17:11 2009].839000 CGI Request 1 on process 5216
[Mon Jun 29 15:17:11 2009].855000 msDrawMap(): Layer 0 (states), 0.000s
[Mon Jun 29 15:17:11 2009].855000 msDrawRasterLayerLow(hpool): entering.
[Mon Jun 29 15:17:11 2009].855000 msDrawGDAL(): src=0,0,6021,4021, dst=231,337,27,18
[Mon Jun 29 15:17:11 2009].855000 msDrawGDAL(): red,green,blue,alpha bands = 3,2,1,0
[Mon Jun 29 15:17:11 2009].855000 msDrawGDAL(hpool): scaling to 8bit, src range=50,243
[Mon Jun 29 15:17:11 2009].855000 msDrawGDAL(hpool): scaling to 8bit, src range=51,235
[Mon Jun 29 15:17:11 2009].855000 msDrawGDAL(hpool): scaling to 8bit, src range=44,235
[Mon Jun 29 15:17:11 2009].870000 msDrawGDAL(): src=0,0,6021,4021, dst=231,319,27,18
[Mon Jun 29 15:17:11 2009].870000 msDrawGDAL(): red,green,blue,alpha bands = 3,2,1,0
[Mon Jun 29 15:17:11 2009].870000 msDrawGDAL(hpool): scaling to 8bit, src range=46,255
[Mon Jun 29 15:17:11 2009].870000 msDrawGDAL(hpool): scaling to 8bit, src range=50,255
[Mon Jun 29 15:17:11 2009].870000 msDrawGDAL(hpool): scaling to 8bit, src range=46,252
[Mon Jun 29 15:17:11 2009].870000 msDrawMap(): Layer 2 (hpool), 0.015s
[Mon Jun 29 15:17:11 2009].870000 msDrawMap(): Drawing Label Cache, 0.000s
[Mon Jun 29 15:17:11 2009].870000 msDrawMap() total time: 0.031s
[Mon Jun 29 15:17:11 2009].948000 msSaveImage() total time: 0.078s
[Mon Jun 29 15:17:11 2009].948000 mapserv request processing time (loadmap not incl.): 0.109s
[Mon Jun 29 15:17:11 2009].948000 msFreeMap(): freeing map at 015273A0.
[Mon Jun 29 15:17:11 2009].948000 mapserv total execution time: 0.125s
The image is also generated. But it is not being displayed. The path as found from View source is
<td align="center"><input type="image" name="img" src="/test/ADDISON12463066315216.png" width="600" height="600" border="0" alt="this is the map"></td>
test is under htdocs folder. IMAGEPATH "c:/ms4w/Apache/htdocs/test/"
IMAGEURL "/test/"
Suman
-----Original Message-----
From: Steve.Toutant at inspq.qc.ca [mailto:Steve.Toutant at inspq.qc.ca]
Sent: Monday, June 29, 2009 3:00 PM
To: Suman Chatterjee
Cc: mapserver-users at lists.osgeo.org
Subject: RE: [mapserver-users] unable to access the map file
You don't need to create a daemon user.
I'm a bit confused. If the images are created in the temp folder that means that the web application can call mapserver, read and execute the mapfile. I suggest you delete the contents of your temp folder and try again.
Also, if it was working before and your network admin didn't change anything, you might have changed something in your mapfile?
Other suggestions
- Check in the Apache logs if you find something interesting
- Add this in the MAP section of your mapfiles. You can modify the path of the log file
DEBUG 5
CONFIG MS_ERRORFILE "/ms4w/logs/mapserver.log"
Steve
Steve Toutant, M. Sc.
Analyste en géomatique
Secteur environnement
Direction des risques biologiques, environnementaux et occupationnels
Institut national de santé publique du Québec
945, avenue Wolfe
Québec, Qc G1V 5B3
Tél.: (418) 650-5115 #5281
Fax.: (418) 654-3144
steve.toutant at inspq.qc.ca
http://www.inspq.qc.ca <http://www.inspq.qc.ca/>
"Suman Chatterjee" <schatterjee at addisontx.gov>
29/06/2009 03:32 PM
A
<Steve.Toutant at inspq.qc.ca>
cc
<mapserver-users at lists.osgeo.org>
Objet
RE: [mapserver-users] unable to access the map file
Hi Steve,
Yes, It is running as a local system as found in the SERVICES. But in the httpd.conf file the following entry is also there: User daemon
Group daemon
All the permissions have been given to the SYSTEM account . But there is no user like Daemon.
Now the problem is the application was working earlier. But all of a sudden it is not able to access the map file. So although the temporary images are getting generated in the temp folder but the mapserver is not able to read those.
So do I require to create a user 'daemon' or create a user 'Local System' . But a System account is already there.
Thanks
Suman
-----Original Message-----
From: Steve.Toutant at inspq.qc.ca [mailto:Steve.Toutant at inspq.qc.ca]
Sent: Monday, June 29, 2009 2:17 PM
To: Suman Chatterjee
Cc: mapserver-users at lists.osgeo.org; mapserver-users-bounces at lists.osgeo.org
Subject: RE: [mapserver-users] unable to access the map file
Suman,
The Apache service is run as the local system user or another user defined in the Connexion properties of your Apache service.
Once you know this user make sure he has the authorization to read the mapfile and the parent directories.
Steve
Steve Toutant, M. Sc.
Analyste en géomatique
Secteur environnement
Direction des risques biologiques, environnementaux et occupationnels
Institut national de santé publique du Québec
945, avenue Wolfe
Québec, Qc G1V 5B3
Tél.: (418) 650-5115 #5281
Fax.: (418) 654-3144
steve.toutant at inspq.qc.ca
http://www.inspq.qc.ca <http://www.inspq.qc.ca/>
"Suman Chatterjee" <schatterjee at addisontx.gov>@lists.osgeo.org
Envoyé par : mapserver-users-bounces at lists.osgeo.org
29/06/2009 01:01 PM
A
"Alan Boudreault" <aboudreault at mapgears.com>
cc
mapserver-users at lists.osgeo.org
Objet
RE: [mapserver-users] unable to access the map file
Hi Alan,
My map file cannot be read by the web application user. But how to
correct it? I am using IE 7. What is the user account for web
application user in case of Apache?
I am looking forward for your reply.
Thanks
Suman
-----Original Message-----
From: Alan Boudreault [mailto:aboudreault at mapgears.com]
Sent: Monday, June 29, 2009 10:22 AM
To: mapserver-users at lists.osgeo.org
Cc: Suman Chatterjee
Subject: Re: [mapserver-users] unable to access the map file
Hi,
If you are sure that the path is good, did you check the file
permissions?
Does the mapfile can be read by your web application user ?
Alan
On June 29, 2009 11:13:04 am Suman Chatterjee wrote:
> Hi all,
>
> I have just started using mapserver. It was running well till last
week.
> The Itasca application was also running. But all of a sudden the
> application is not working. Although the maps are being created in the
> temp folder but it is not being displayed in the browser. I tried with
> typing
>
>
http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\mapserver
> demo\workshop\itasca.map&mode=map
>
>
>
> But it is displaying the error message
>
>
>
> msLoadMap(): Unable to access file.
> (C:\ms4w\Apache\htdocs\mapserverdemo\workshop\itasca.map).
>
>
>
> I tried by changing the backslash to forward slash in the path but I
am
> still getting the same error message.
>
>
>
> I don't know what is going wrong.
>
> Any help in this regard will be highly appreciated. I require to solve
> it urgently.
>
>
>
> Thanks
>
> Suman
>
>
>
************************************************************************
***
>**************************************** This e-mail and any files or
> attachments transmitted with it contains Information that is
confidential
> and privileged. This document may contain Protected Health Information
> (PHI) or other information that is intended only for the use of the
> individual(s) and entity(ies) to whom it is addressed. If you are the
> intended recipient, further disclosures are prohibited without proper
> authorization. If you are not the intended recipient, any disclosure,
> copying, printing, or use of this information is strictly prohibited
and
> possibly a violation of federal or state law and regulations. If you
have
> received this information in error, please delete it and notify Hamid
> Khaleghipour at 972-450-2868 immediately. Thank you.
>
>
************************************************************************
***
>****************************************
--
Alan Boudreault
Mapgears
http://www.mapgears.com
*******************************************************************************************************************
This e-mail and any files or attachments transmitted with it contains Information that is confidential and privileged. This document may contain Protected Health Information (PHI) or other information that is intended only for the use of the individual(s) and entity(ies) to whom it is addressed. If you are the intended recipient, further disclosures are prohibited without proper authorization. If you are not the intended recipient, any disclosure, copying, printing, or use of this information is strictly prohibited and possibly a violation of federal or state law and regulations. If you have received this information in error, please delete it and notify Hamid Khaleghipour at 972-450-2868 immediately. Thank you.
*******************************************************************************************************************
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090629/4077f642/attachment.htm>
More information about the MapServer-users
mailing list