<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">Steve,</span></div>
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof"><br>
</span></div>
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted0">I'm using Mapserver 8 from camptocamp/mapserver
<a href="https://hub.docker.com/r/camptocamp/mapserver" id="LPNoLPOWALinkPreview">
https://hub.docker.com/r/camptocamp/mapserver</a><br>
</span></div>
<div class="_Entity _EType_OWALinkPreview _EId_OWALinkPreview _EReadonly_1"></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
Best,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
Marcin<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Lime, Steve D (MNIT) <steve.lime@state.mn.us><br>
<b>Sent:</b> Friday, December 2, 2022 4:23 PM<br>
<b>To:</b> Marcin Niemyjski <mniemyjski@cloudferro.com>; Marcin Niemyjski via MapServer-users <mapserver-users@lists.osgeo.org><br>
<b>Subject:</b> RE: Mapserver on k8s weird behaviour</font>
<div> </div>
</div>
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
a:link, span.x_MsoHyperlink
        {color:blue;
        text-decoration:underline}
span.x_elementtoproof
        {}
span.x_contentpasted1
        {}
span.x_EmailStyle21
        {font-family:"Calibri",sans-serif;
        color:windowtext}
.x_MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:1.0in 1.0in 1.0in 1.0in}
div.x_WordSection1
        {}
-->
</style>
<div lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="x_WordSection1">
<p class="x_MsoNormal">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
<a href="https://github.com/MapServer/MapServer/pull/6577">https://github.com/MapServer/MapServer/pull/6577</a>) locally and see if that fixes things. It will be backported to the 7.6 branch in the near future.</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">--Steve</p>
<p class="x_MsoNormal"> </p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="x_MsoNormal"><b>From:</b> MapServer-users <mapserver-users-bounces@lists.osgeo.org>
<b>On Behalf Of </b>Marcin Niemyjski via MapServer-users<br>
<b>Sent:</b> Friday, December 2, 2022 8:46 AM<br>
<b>To:</b> Marcin Niemyjski via MapServer-users <mapserver-users@lists.osgeo.org><br>
<b>Subject:</b> [MapServer-users] Mapserver on k8s weird behaviour</p>
</div>
</div>
<p class="x_MsoNormal"> </p>
<div>
<div>
<p class="x_MsoNormal"><span class="x_elementtoproof">Hello,</span></p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<div>
<p class="x_MsoNormal"><span class="x_elementtoproof">I am using Mapserver on Kubernetes (LoadBalancer). Everything works great -  GetMap, GetCapabilities, layers load correctly in QGIS and Leaflet.</span></p>
</div>
<div>
<p class="x_MsoNormal">However, what caught my attention is that when passing the mapfile's url using LoadBalancer/Kubernetes IP, only the first time the message is</p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<div>
<p class="x_MsoNormal">msLoadMap(): Regular expression error. MS_DEFAULT_MAPFILE_PATTERN validation failed</p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<div>
<p class="x_MsoNormal">and every time thereafter </p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<div>
<p class="x_MsoNormal">Internal Server Error</p>
</div>
<div>
<p class="x_MsoNormal">The server encountered an internal error or misconfiguration and was unable to complete your request.</p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<div>
<p class="x_MsoNormal">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 ^^</p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<div>
<p class="x_MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">Sample mapfile (but problem occured on all those tested):</span></p>
</div>
<div>
<p class="x_MsoNormal" style="background:white"><span class="x_contentpasted1"><span style="font-size:12.0pt; color:black"><a href="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">https://pastecode.io/s/pfaudfef</a></span></span><span style="font-size:12.0pt; color:black"></span></p>
</div>
<div>
<p class="x_MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">As always - thank you,</span></p>
</div>
<div>
<p class="x_MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">Marcin</span></p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<p class="x_MsoNormal"> </p>
</div>
</div>
</div>
</body>
</html>