Steve,

I'm using Mapserver 8 from camptocamp/mapserver 
https://hub.docker.com/r/camptocamp/mapserver

Best,
Marcin
________________________________
From: Lime, Steve D (MNIT) <steve.l...@state.mn.us>
Sent: Friday, December 2, 2022 4:23 PM
To: Marcin Niemyjski <mniemyj...@cloudferro.com>; Marcin Niemyjski via 
MapServer-users <mapserver-users@lists.osgeo.org>
Subject: RE: Mapserver on k8s weird behaviour


Hi Marcin: Are you using FastCGI? Which version of MapServer? We ran into 
something similar w/FastCGI and version 8 during development where you’d see 
the first instance of an error message but then the server error subsequently. 
It was consistent on some setups but never happened on others. You could try 
applying the fix (see https://github.com/MapServer/MapServer/pull/6577) locally 
and see if that fixes things. It will be backported to the 7.6 branch in the 
near future.



--Steve



From: MapServer-users <mapserver-users-boun...@lists.osgeo.org> On Behalf Of 
Marcin Niemyjski via MapServer-users
Sent: Friday, December 2, 2022 8:46 AM
To: Marcin Niemyjski via MapServer-users <mapserver-users@lists.osgeo.org>
Subject: [MapServer-users] Mapserver on k8s weird behaviour



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<https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpastecode.io%2Fs%2Fpfaudfef&data=05%7C01%7Csteve.lime%40state.mn.us%7C7ceae57b709d4db0969008dad473fbd7%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C638055891860706259%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=yPm1t04H3cgSreLG0OEY6oAMeH8QfHooB0AOTPOfG4Y%3D&reserved=0>

As always - thank you,

Marcin




_______________________________________________
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to