[MapServer-users] Getting msCGILoadMap(): Web application error. Required configuration value MS_MAP_PATTERN not set.
Rob Dennett
Rob.Dennett at twdb.texas.gov
Tue Jun 4 14:20:07 PDT 2024
FYI,
I found
https://www.mail-archive.com/mapserver-users@lists.osgeo.org/msg28778.html
Though there the issue was a bad cert, IIUC. Here, literally the only thing that changed on our end was the base image in our Dockerfile.
Thanks,
Rob
________________________________
From: MapServer-users <mapserver-users-bounces at lists.osgeo.org> on behalf of Rob Dennett via MapServer-users <mapserver-users at lists.osgeo.org>
Sent: Tuesday, June 4, 2024 4:08 PM
To: Bob Basques via MapServer-users <mapserver-users at lists.osgeo.org>
Cc: Chris Repka <Chris.Repka at twdb.texas.gov>
Subject: [MapServer-users] Getting msCGILoadMap(): Web application error. Required configuration value MS_MAP_PATTERN not set.
External: Beware of links/attachments.
We're using the camptocamp MapServer image and I just tried changing the base image from 7.6 to 8.0, i.e.
FROM camptocamp/mapserver:7.6
To
FROM camptocamp/mapserver:8.0
in our own Dockerfile and when I try to deploy, We're seeing
"msCGILoadMap(): Web application error. Required configuration value MS_MAP_PATTERN not set."
on some endpoints (the ones ending in .map)
The camptocamp image contains
ENV MS_MAP_PATTERN=^\\/etc\\/mapserver\\/([^\\.][-_A-Za-z0-9\\.]+\\/{1})*([-_A-Za-z0-9\\.]+\\.map)$
(https://github.com/camptocamp/docker-mapserver/blob/8.0.0/Dockerfile#L85)
and our own overwrites this env var anyway, along with MS_MAPFILE
These haven't changed and they work fine as long as the base image is 7.6. The changelog mentions MS_MAPFILE, but as mentioned, we do define it.
(https://github.com/camptocamp/docker-mapserver/blob/8.0.0/README.md#changelog)
Any idea what might be happening?
[https://opengraph.githubassets.com/89914d21a14748d29e5eb2cb7cf59e720bd216e41863d0bff2ca0e490950eddd/camptocamp/docker-mapserver]<https://github.com/camptocamp/docker-mapserver/blob/8.0.0/Dockerfile#L85>
docker-mapserver/Dockerfile at 8.0.0 · camptocamp/docker-mapserver<https://github.com/camptocamp/docker-mapserver/blob/8.0.0/Dockerfile#L85>
https://hub.docker.com/r/camptocamp/mapserver/. Contribute to camptocamp/docker-mapserver development by creating an account on GitHub.
github.com
[https://opengraph.githubassets.com/89914d21a14748d29e5eb2cb7cf59e720bd216e41863d0bff2ca0e490950eddd/camptocamp/docker-mapserver]<https://github.com/camptocamp/docker-mapserver/blob/8.0.0/Dockerfile#L85>
docker-mapserver/Dockerfile at 8.0.0 · camptocamp/docker-mapserver<https://github.com/camptocamp/docker-mapserver/blob/8.0.0/Dockerfile#L85>
https://hub.docker.com/r/camptocamp/mapserver/. Contribute to camptocamp/docker-mapserver development by creating an account on GitHub.
github.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20240604/281c8ccd/attachment.htm>
More information about the MapServer-users
mailing list