[Cartoweb-users] exportPdf Timeout
Lauber Christoph
ch.lauber at geo-thun.ch
Tue Jan 1 15:00:05 EST 2008
Hi List
I discovered that the wms get image request (http://mywmsserver/WMS?LAYERS=WMS%5Fav&REQUEST=GetMap&SERVICE=WMS&FORMAT=image%2Fjpeg&HEIGHT=3201&VERSION=1.1.0&SRS=EPSG:21781&WIDTH=2173&BBOX=617318%2E423135259%2C188239%2E149445859%2C617410%2E413418918%2C188374%2E658372684&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage) sent directely by url (not via cartoweb pdf plugin) results in a blank image returned by the server. So I guess that the problem will be more probabely by the wms server and not the wms client (cartoweb).
Does this conclusion seems to be correct?
Christoph
-----Ursprüngliche Nachricht-----
Von: cartoweb-users-request at lists.maptools.org [mailto:cartoweb-users-request at lists.maptools.org]
Gesendet: Mo 31.12.2007 18:35
An: cartoweb-users at lists.maptools.org
Cc:
Betreff: Cartoweb-users Digest, Vol 32, Issue 25
Send Cartoweb-users mailing list submissions to
cartoweb-users at lists.maptools.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.maptools.org/mailman/listinfo/cartoweb-users
or, via email, send a message with subject or body 'help' to
cartoweb-users-request at lists.maptools.org
You can reach the person managing the list at
cartoweb-users-owner at lists.maptools.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Cartoweb-users digest..."
Today's Topics:
1. exportPdf Timeout (Lauber Christoph)
----------------------------------------------------------------------
Message: 1
Date: Sun, 30 Dec 2007 18:36:18 +0100
From: "Lauber Christoph" <ch.lauber at geo-thun.ch>
Subject: [Cartoweb-users] exportPdf Timeout
To: <cartoweb-users at lists.maptools.org>, "wochter"
<wochter at seznam.cz>, "Bruno Friedmann" <bruno at ioda-net.ch>
Message-ID: <C223632939B30945911B6F66B958B8808A61B9 at beoappl1.bdat.ch>
Content-Type: text/plain; charset="UTF-8"
Thanks for all the help.
The default_socket_timeout is already on 60 seconds. So this can't be the problem.
The imagetype is also already png. The wms layers had been forced to jpeg before. But changeing this to png (or removeing) didn't change anything.
So I will make some interogations about mapserver get map request timeouts.
Do you think, it could be possible, that the wms server is prohibiting the 300 dpi request?
Christoph
-----Ursprüngliche Nachricht-----
Von: cartoweb-users-request at lists.maptools.org [mailto:cartoweb-users-request at lists.maptools.org]
Gesendet: Sonntag, 30. Dezember 2007 18:01
An: cartoweb-users at lists.maptools.org
Betreff: Cartoweb-users Digest, Vol 32, Issue 24
Send Cartoweb-users mailing list submissions to
cartoweb-users at lists.maptools.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.maptools.org/mailman/listinfo/cartoweb-users
or, via email, send a message with subject or body 'help' to
cartoweb-users-request at lists.maptools.org
You can reach the person managing the list at
cartoweb-users-owner at lists.maptools.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Cartoweb-users digest..."
Today's Topics:
1. Re: AW: [Cartoweb-users] exportPdf Timeout (Bruno Friedmann)
2. Re: AW: [Cartoweb-users] exportPdf Timeout (wochter)
----------------------------------------------------------------------
Message: 1
Date: Sun, 30 Dec 2007 15:00:36 +0100
From: Bruno Friedmann <bruno at ioda-net.ch>
Subject: Re: AW: [Cartoweb-users] exportPdf Timeout
Cc: cartoweb-users at lists.maptools.org
Message-ID: <4777A484.1090902 at ioda-net.ch>
Content-Type: text/plain; charset=UTF-8
The only other point is that there's a default timeout for all socket operation in php (also in php.ini you can change it).
But I don't know if the WMS is remote or not. If yes, this could explain the timeout, ok for small/medium (72/150dpi) but to
long to acquire for the 300dpi.
The other point could be in mapserver, but I don't know the syntax for remote layers.
You should check the mapserver guide for that.
Hope this help a bit.
Have a happy new year !
Lauber Christoph wrote:
> Hi Bruno
>
> Thanks for your answer. I increased the limit in the php.ini file of the apache to 90 seconds (it was already on 60 seconds). Then I restarted the webserver. And the error, as expected because the limit was already before on 60 seconds, was the same. I've seen that there are php.ini files also for cgi and cli. I tried these files as well. It doesen't work. By the way, you meant the apache php.ini file in /etc/php5/apache, weren't you?
>
> Might there be an other timeout handeling WMS connections? Maybe in a MapServer config file? Where could I find this config file?
>
> Christoph
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: Bruno Friedmann [mailto:bruno at ioda-net.ch]
> Gesendet: Freitag, 28. Dezember 2007 21:17
> An: Lauber Christoph
> Cc: cartoweb-users at lists.maptools.org
> Betreff: Re: [Cartoweb-users] exportPdf Timeout
>
>
> Hi Christoph,
>
> This timeout value seems to be the php limit execution time.
> Perharps you need a bigger value .
> Time to acquire the layers, time to treat it, time to send the result.
>
> In php.ini or .htaccess or in apache directive.
> ;;;;;;;;;;;;;;;;;;;
> ; Resource Limits ;
> ;;;;;;;;;;;;;;;;;;;
>
> max_execution_time = 30 ; Maximum execution time of each script, in seconds
> max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
>
> try to change the value.
>
> But if the webserver couldn't treat the task with that time 30s which internaut would stay behind his screen without initiate a
> reload.
> The trouble should be resolve at another level I think.
>
>
> Lauber Christoph wrote:
>> Hi list
>>
>> Printing a pdf with the pdfExport Plugin I get the following error:
>>
>> Message : Mapserver error: Error in msDrawWMSLayerLow(): WMS GetMap
>> request failed for layer 'AV_KtBern' (Status -28: TIMEOUT of 30 seconds
>> exceeded.).
>> Error in msHTTPExecuteRequests(): HTTP: TIMEOUT of 30 seconds exceeded
>> for http://....
>>
>> First I thought I can easily increase the timeout in the httpd.conf file
>> of the apache webserver. But that didn't do what I expected. Either I
>> did something wrong or I have to do something else.
>>
>> The layer I want to print is a WMS layer. It works fine with 72 and 150
>> dpi resolution. But the 300 dpi resolution crashes.
>>
>> I there an other timeout I have to look for wms layers (WMS GetMap
>> request)?
>> Is it possible that the WMS server prohibits a 300 dpi picture request?
>> Do you think the timeout is set by the wms server or the wms client
>> (CartoWeb)?
>> Any other ideas?
>>
>> Thanks for help
>>
>>
>>
>> Christoph Lauber
>>
>> _______________________________________________
>> Cartoweb-users mailing list
>> Cartoweb-users at lists.maptools.org
>> http://lists.maptools.org/mailman/listinfo/cartoweb-users
>
>
--
Bruno Friedmann bruno at ioda-net.ch
Ioda-Net Sàrl - www.ioda-net.ch
2830 Vellerat - Switzerland
Tél : ++41 32 435 7171
Fax : ++41 32 435 7172
gsm : ++41 78 802 6760
C'est Facile et Cool d'Évoluer en ligne : www.cfcel.com
------------------------------
Message: 2
Date: Sun, 30 Dec 2007 15:11:12 +0100
From: wochter <wochter at seznam.cz>
Subject: Re: AW: [Cartoweb-users] exportPdf Timeout
To: Lauber Christoph <ch.lauber at geo-thun.ch>,
cartoweb-users at lists.maptools.org
Message-ID: <4777A700.1070600 at seznam.cz>
Content-Type: text/plain; charset=ISO-8859-1
I had the same problem.
What type of output image do you use?
(imagetype in yourproject.map)
Try change imagetype to "IMAGETYPE PNG"
and let me know if it works.
Since I changed imagetype from GIF to PNG plugin exportPdf works faster.
I don't know why. Maybe fpdf has problem with conversion...
plugin has more defections and need to be rewrited, I think.
You can't use UTF8 encoding, for example.
wochter
Lauber Christoph wrote / napÃsal(a):
> Hi Bruno
>
> Thanks for your answer. I increased the limit in the php.ini file of the apache to 90 seconds (it was already on 60 seconds). Then I restarted the webserver. And the error, as expected because the limit was already before on 60 seconds, was the same. I've seen that there are php.ini files also for cgi and cli. I tried these files as well. It doesen't work. By the way, you meant the apache php.ini file in /etc/php5/apache, weren't you?
>
> Might there be an other timeout handeling WMS connections? Maybe in a MapServer config file? Where could I find this config file?
>
> Christoph
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: Bruno Friedmann [mailto:bruno at ioda-net.ch]
> Gesendet: Freitag, 28. Dezember 2007 21:17
> An: Lauber Christoph
> Cc: cartoweb-users at lists.maptools.org
> Betreff: Re: [Cartoweb-users] exportPdf Timeout
>
>
> Hi Christoph,
>
> This timeout value seems to be the php limit execution time.
> Perharps you need a bigger value .
> Time to acquire the layers, time to treat it, time to send the result.
>
> In php.ini or .htaccess or in apache directive.
> ;;;;;;;;;;;;;;;;;;;
> ; Resource Limits ;
> ;;;;;;;;;;;;;;;;;;;
>
> max_execution_time = 30 ; Maximum execution time of each script, in seconds
> max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
>
> try to change the value.
>
> But if the webserver couldn't treat the task with that time 30s which internaut would stay behind his screen without initiate a
> reload.
> The trouble should be resolve at another level I think.
>
>
> Lauber Christoph wrote:
>> Hi list
>>
>> Printing a pdf with the pdfExport Plugin I get the following error:
>>
>> Message : Mapserver error: Error in msDrawWMSLayerLow(): WMS GetMap
>> request failed for layer 'AV_KtBern' (Status -28: TIMEOUT of 30 seconds
>> exceeded.).
>> Error in msHTTPExecuteRequests(): HTTP: TIMEOUT of 30 seconds exceeded
>> for http://....
>>
>> First I thought I can easily increase the timeout in the httpd.conf file
>> of the apache webserver. But that didn't do what I expected. Either I
>> did something wrong or I have to do something else.
>>
>> The layer I want to print is a WMS layer. It works fine with 72 and 150
>> dpi resolution. But the 300 dpi resolution crashes.
>>
>> I there an other timeout I have to look for wms layers (WMS GetMap
>> request)?
>> Is it possible that the WMS server prohibits a 300 dpi picture request?
>> Do you think the timeout is set by the wms server or the wms client
>> (CartoWeb)?
>> Any other ideas?
>>
>> Thanks for help
>>
>>
>>
>> Christoph Lauber
>>
>> _______________________________________________
>> Cartoweb-users mailing list
>> Cartoweb-users at lists.maptools.org
>> http://lists.maptools.org/mailman/listinfo/cartoweb-users
>
>
------------------------------
_______________________________________________
Cartoweb-users mailing list
Cartoweb-users at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/cartoweb-users
End of Cartoweb-users Digest, Vol 32, Issue 24
**********************************************
------------------------------
_______________________________________________
Cartoweb-users mailing list
Cartoweb-users at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/cartoweb-users
End of Cartoweb-users Digest, Vol 32, Issue 25
**********************************************
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 8114 bytes
Desc: not available
Url : http://lists.maptools.org/pipermail/cartoweb-users/attachments/20080101/39212194/attachment.bin
More information about the Cartoweb-users
mailing list