Re: [MapServer-users] Mapserver on k8s weird behaviour

2022-12-02 Thread Lime, Steve D (MNIT) via MapServer-users
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 
Sent: Friday, December 2, 2022 9:33 AM
To: Lime, Steve D (MNIT) ; Marcin Niemyjski via 
MapServer-users 
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=05%7C01%7Csteve.lime%40state.mn.us%7Ceabd7fa6ebbc4966680908dad47a7ab2%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C638055919758219015%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=SuPGI7u3eZOZXcYObRQL011G8FxPgk2TNbCipYb9OPY%3D=0>

Best,
Marcin

From: Lime, Steve D (MNIT) 
mailto:steve.l...@state.mn.us>>
Sent: Friday, December 2, 2022 4:23 PM
To: Marcin Niemyjski 
mailto:mniemyj...@cloudferro.com>>; Marcin Niemyjski 
via MapServer-users 
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=05%7C01%7Csteve.lime%40state.mn.us%7Ceabd7fa6ebbc4966680908dad47a7ab2%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C638055919758219015%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=Af2O5Gg%2F4FPh%2BaokhLJZ1pWR9sGgpxBWR3bvzlRacYk%3D=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 
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 
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=05%7C01%7Csteve.lime%40state.mn.us%7Ceabd7fa6ebbc4966680908dad47a7ab2%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C638055919758219015%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=WVKFMxZO%2Bb8tJPcyfPiQctXL62e4M1eiuWuhZbhqk5Q%3D=0>

As always - thank you,

Marcin




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


Re: [MapServer-users] Mapserver on k8s weird behaviour

2022-12-02 Thread Marcin Niemyjski via MapServer-users
Steve,

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

Best,
Marcin

From: Lime, Steve D (MNIT) 
Sent: Friday, December 2, 2022 4:23 PM
To: Marcin Niemyjski ; Marcin Niemyjski via 
MapServer-users 
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  On Behalf Of 
Marcin Niemyjski via MapServer-users
Sent: Friday, December 2, 2022 8:46 AM
To: Marcin Niemyjski via MapServer-users 
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=05%7C01%7Csteve.lime%40state.mn.us%7C7ceae57b709d4db0969008dad473fbd7%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C638055891860706259%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=yPm1t04H3cgSreLG0OEY6oAMeH8QfHooB0AOTPOfG4Y%3D=0>

As always - thank you,

Marcin




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


Re: [MapServer-users] Mapserver on k8s weird behaviour

2022-12-02 Thread Lime, Steve D (MNIT) via MapServer-users
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  On Behalf Of 
Marcin Niemyjski via MapServer-users
Sent: Friday, December 2, 2022 8:46 AM
To: Marcin Niemyjski via MapServer-users 
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
As always - thank you,
Marcin


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