[mapserver-users] FCGI and SVG output goes to STDERR?

Frank Warmerdam warmerdam at pobox.com
Mon Jul 1 17:50:23 PDT 2013


Nick,

As I vaguely recall from when I worked on fastcgi support in MapServer,
only output formats that can be redirected through the low level mapserver
io layer (ms_io*.c) will work properly in fastcgi mode.  I'm guessing the
svg encoder just writes directly to stdout.  If my theory is correct,
non-trivial code changes would be necessary to make this work.

Best regards,
Frank



On Mon, Jul 1, 2013 at 5:16 PM, Nick Webb <nickw at redwireservices.com> wrote:

> List,
>
> I've really tried hard to nail this down, but it makes no sense to me.
>  I'm not a map guy, but am a system administrator for one.
>
> We have a mapserver setup that works fine for both PNG and SVG when we use
> the standard apache cgi module.  When we switch to mod_fcgid, however, SVG
> displays no output in the browser and instead seems to output proper
> SVG/XML to the apache error log!  PNG continues to work fine.
>
> I'm flabbergasted and nothing I try seems to work.  I even set it up on
> another server and I get the same result, given I'm following the same
> build steps.
>
> Any ideas on where I can go next?
>
> Perhaps the SVG is not really valid, but I've copied and pasted the
> XML/SVG from the error_log to a static file, and that also displays fine
> via a browser.
>
> Here is the error_log output:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="
> http://www.w3.org/1999/xlink" width="200pt" height="154pt" viewBox="0 0
> 200 154" version="1.1">
> <g id="surface0">
> . . .
> </g>
> </svg>
> [Tue Jul 02 00:12:11.947149 2013] [fcgid:warn] [pid 2398] [client
> 50.197.85.9:2118] mod_fcgid: stderr: CGI Request 1 on process 2405
> [Tue Jul 02 00:12:11.947213 2013] [fcgid:warn] [pid 2398] [client
> 50.197.85.9:2118] mod_fcgid: stderr: msDrawMap(): rendering using
> outputformat named svg (CAIRO/SVG).
> [Tue Jul 02 00:12:11.947223 2013] [fcgid:warn] [pid 2398] [client
> 50.197.85.9:2118] mod_fcgid: stderr: msDrawMap(): WMS/WFS set-up and
> query, 0.000s
> [Tue Jul 02 00:12:11.947230 2013] [fcgid:warn] [pid 2398] [client
> 50.197.85.9:2118] mod_fcgid: stderr: msDrawMap(): Layer 0 (thematic),
> 0.040s
> [Tue Jul 02 00:12:11.947238 2013] [fcgid:warn] [pid 2398] [client
> 50.197.85.9:2118] mod_fcgid: stderr: msDrawMap(): Drawing Label Cache,
> 0.000s
> [Tue Jul 02 00:12:11.947245 2013] [fcgid:warn] [pid 2398] [client
> 50.197.85.9:2118] mod_fcgid: stderr: msDrawMap() total time: 0.040s
> [Tue Jul 02 00:12:11.947253 2013] [fcgid:warn] [pid 2398] [client
> 50.197.85.69:2118] mod_fcgid: stderr: msSaveImage(stdout) total time:
> 0.005s
> [Tue Jul 02 00:12:11.947261 2013] [fcgid:warn] [pid 2398] [client
> 50.197.85.9:2118] mod_fcgid: stderr: mapserv request processing time
> (msLoadMap not incl.): 0.045s
> [Tue Jul 02 00:12:11.947268 2013] [fcgid:warn] [pid 2398] [client
> 50.197.85.9:2118] mod_fcgid: stderr: msFreeMap(): freeing map at 0x8881a0.
>
>
> DEBUG 5 is set logging to the same file (stderr).
>
>
> ./mapserv -v
> MapServer version 6.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ
> SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=ICONV
> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT
> SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS
> INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
>
>
> Thanks,
> Nick
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>


-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam,
warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Software Developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20130701/0980e110/attachment.htm>


More information about the MapServer-users mailing list