[MapServer-users] Mapserver on k8s weird behaviour

Marcin Niemyjski mniemyjski at cloudferro.com
Fri Dec 2 06:46:13 PST 2022


Hello,

I am using Mapserver on Kubernetes (LoadBalancer). Everything works great -  GetMap, GetCapabilities, layers load correctly in QGIS and Leaflet.
However, what caught my attention is that when passing the mapfile's url using LoadBalancer/Kubernetes IP, only the first time the message is

msLoadMap(): Regular expression error. MS_DEFAULT_MAPFILE_PATTERN validation failed

and every time thereafter

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

By refreshing a few times, you may get the expected message again, but this is random. As I mentioned - layers and requests load correctly everywhere (also after repeated refreshing). Should I be concerned? I would love to understand why is this happening ^^

Sample mapfile (but problem occured on all those tested):
https://pastecode.io/s/pfaudfef
As always - thank you,
Marcin


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20221202/1a87f167/attachment.htm>


More information about the MapServer-users mailing list