I'm trying to resolve an error when accessing a MapServer layer via MapCache and would really appreciate any help on what's going wrong.
I'll add excerpt of the relevant files below, but the basic situation is:
When accessing a particular WMS layer via MapCache, there is one small area of the map with missing tiles. The rest of the layer works fine.
Apache log shows the following:
[Tue Jan 14 13:23:22 2014] [error] [client ::1] Premature end of script headers: mapserv[Tue Jan 14 13:23:22 2014] [error] [client 192.168.56.1] wms request for tileset Aerial returned an unsupported format:\n\n\n500 Internal Server Error\n\nInternal Server Error
\nThe server encountered an internal error or\nmisconfiguration and was unable to complete\nyour request.
\nPlease contact the server administrator,\n [no address given] and inform them of the time the error occurred,\nand anything you might have done that may have\ncaused the error.
\nMore information about this error may be available\nin the server error log.
\n\nApache Server at localhost Port 80\n\nWhen building the cache for this layer, no errors are reported.
Even stranger, accessing the WMS layer directly through MapServer works perfectly.
The above error is the only meaningful error I've been able to find.
To debug this I've set DEBUG 5 on both MAP and LAYER properties and tried accessing the 'broken' tile both via MapCache and MapServer. The results are... weird.
I'll post the files below, but note that:
MapCache request (broken)
mapcache.xml
Map file
Aerial.map
أكثر...
I'll add excerpt of the relevant files below, but the basic situation is:
When accessing a particular WMS layer via MapCache, there is one small area of the map with missing tiles. The rest of the layer works fine.
Apache log shows the following:
[Tue Jan 14 13:23:22 2014] [error] [client ::1] Premature end of script headers: mapserv[Tue Jan 14 13:23:22 2014] [error] [client 192.168.56.1] wms request for tileset Aerial returned an unsupported format:\n\n\n500 Internal Server Error\n\nInternal Server Error
\nThe server encountered an internal error or\nmisconfiguration and was unable to complete\nyour request.
\nPlease contact the server administrator,\n [no address given] and inform them of the time the error occurred,\nand anything you might have done that may have\ncaused the error.
\nMore information about this error may be available\nin the server error log.
\n\nApache Server at localhost Port 80\n\nWhen building the cache for this layer, no errors are reported.
Even stranger, accessing the WMS layer directly through MapServer works perfectly.
The above error is the only meaningful error I've been able to find.
To debug this I've set DEBUG 5 on both MAP and LAYER properties and tried accessing the 'broken' tile both via MapCache and MapServer. The results are... weird.
I'll post the files below, but note that:
- The log for the MapCache request ends prematurely: msDrawRasterLayerGDAL(): red,gree
- The source and other attributes referenced in the log are vastly different between the MapServer and MapCache request. Everything about the request is the same (projection, bounding box, etc), except the 'bad' request is passed through MapCache.
MapCache request (broken)
- URL: http://MYHOST/maps?LAYERS=Aerial&BG...840,145762,365600,147522&WIDTH=512&HEIGHT=512
- Log: apache.mapcache.log
- URL: http://HOST/cgi-bin/mapserv?MAP=/pa...840,145762,365600,147522&WIDTH=512&HEIGHT=512
- Log: apache.mapserver.log
mapcache.xml
Map file
Aerial.map
أكثر...