Based on that error message you're not running MapServer 8.0 though. That was an area that changed between v.7 and v.8 and the error message was updated. V.8 outputs something like:
msLoadMap(): Regular expression error. Filename validation failed. --Steve From: Marcin Niemyjski <mniemyj...@cloudferro.com> Sent: Friday, December 2, 2022 9:33 AM To: Lime, Steve D (MNIT) <steve.l...@state.mn.us>; Marcin Niemyjski via MapServer-users <mapserver-users@lists.osgeo.org> Subject: Re: Mapserver on k8s weird behaviour Steve, I'm using Mapserver 8 from camptocamp/mapserver https://hub.docker.com/r/camptocamp/mapserver<https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fhub.docker.com%2Fr%2Fcamptocamp%2Fmapserver&data=05%7C01%7Csteve.lime%40state.mn.us%7Ceabd7fa6ebbc4966680908dad47a7ab2%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C638055919758219015%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=SuPGI7u3eZOZXcYObRQL011G8FxPgk2TNbCipYb9OPY%3D&reserved=0> Best, Marcin ________________________________ From: Lime, Steve D (MNIT) <steve.l...@state.mn.us<mailto:steve.l...@state.mn.us>> Sent: Friday, December 2, 2022 4:23 PM To: Marcin Niemyjski <mniemyj...@cloudferro.com<mailto:mniemyj...@cloudferro.com>>; Marcin Niemyjski via MapServer-users <mapserver-users@lists.osgeo.org<mailto: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<https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMapServer%2FMapServer%2Fpull%2F6577&data=05%7C01%7Csteve.lime%40state.mn.us%7Ceabd7fa6ebbc4966680908dad47a7ab2%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C638055919758219015%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Af2O5Gg%2F4FPh%2BaokhLJZ1pWR9sGgpxBWR3bvzlRacYk%3D&reserved=0>) 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<mailto: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<mailto: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%7Ceabd7fa6ebbc4966680908dad47a7ab2%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C638055919758219015%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=WVKFMxZO%2Bb8tJPcyfPiQctXL62e4M1eiuWuhZbhqk5Q%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