[MapServer-users] msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings.

Chris Cantey cantey0701 at gmail.com
Thu May 4 06:30:31 PDT 2023


Hello all, I need some help.



We are building a new web server a rebuilding mapserver on it, migrating
from 6.4 to 8.0. But in testing, we keep getting the "msWMSDispatch(): WMS
server error. WMS request not enabled. Check wms/ows_enable_request
settings." error.



But we have that configured in our map file under map>web>metadata. So I'm
not sure what is going on. Config file, map file, URL, error, query string,
and error below.



####### CONFIG file

CONFIG

  ENV

    MS_MAP_PATTERN
"^\/home\/web\/gis\/tmp\/mapserver\/([^\.][_A-Za-z0-9\-\.]+\/{1})*([_A-Za-z0-9\-\.]+\.(map))$"


    MS_DEBUGLEVEL "0"

    MS_ERRORFILE "/home/web/gis/tmp/mapserver/logs/mapserver.log"

  END

  MAPS

  END

END



####### Map file

MAP

  NAME 'XXX FINDER'

  STATUS ON

  UNITS METERS

  SIZE 100 100

  EXTENT 189783.4733502351 4816303.593109079 762236.9588402509
5472427.761911989

  FONTSET   "/home/web/gis//mapserver/fonts/fontset.list"

  SYMBOLSET "/home/web/gis//mapserver/symbols/symbol.sym"

  END



  PROJECTION

    "proj=utm"

    "ellps=GRS80"

    "datum=NAD83"

    "zone=15"

    "units=m"

    "north"

    "no_defs"

  END



  OUTPUTFORMAT

    NAME "png"

    DRIVER AGG/PNG

    MIMETYPE "image/png"

    IMAGEMODE RGB

    EXTENSION "png"

    FORMATOPTION "GAMMA=0.75"

  END



  WEB

    TEMPLATE "/home/web/gis/tmp/mapserver/lm.html"

    METADATA

      "ows_enable_request"   "*"

      "wms_title" "Who Represents Me"

      "wms_onlineresource"
https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map

      "wms_srs" "EPSG:4326 EPSG:900913"

    END

  END



  LAYER

    CONNECTIONTYPE postgis

    NAME 'XXX'

    CONNECTION

    PROCESSING "CLOSE_CONNECTION=DEFER"

    DATA "geom from XXX"



    METADATA

      "wms_title" "WMS Demo Server"

    END



    STATUS ON

    DEBUG ON

    TYPE POLYGON

    PROCESSING "LABEL_NO_CLIP=True"

    LABELITEM 'district'



    CLASS

      NAME 'XXX'

      STYLE

        OUTLINECOLOR 255 133 51

        WIDTH 1.5

      END

      LABEL

        TYPE TRUETYPE

        SIZE 10

        FONT "arial"

        COLOR 255 102 0

        OUTLINECOLOR 255 255 255

        OUTLINEWIDTH 1

        POSITION AUTO

        WRAP '+'

        ALIGN center

        BUFFER 2

        PARTIALS FALSE

      END

    END

  END

END



###### URL

https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map&service=WMS&request=GetMap&layers=hse2022_vtd2020members&styles=&format=image%2Fpng&transparent=false&version=1.1.1&width=256&height=256&srs=EPSG%3A4326&bbox=-95.62500000000001,47.040182144806664,-92.81250000000001,48.922499263758255



###### ERROR LOG

[Thu May  4 07:59:45 2023].572656 msWMSDispatch(): WMS server error. WMS
request not enabled. Check wms/ows_enable_request settings.



###### query string

> mapserv "QUERY_STRING=map=/home/map=home/gis/tmp/mapserver/mapserver.map"



###### ERROR LOG

[Thu May  4 08:03:27 2023].920834 msCGILoadMap(): Web application error.
CGI variable "map" fails to validate.



Best,



Chris C.

-- 
Chris Cantey
geo-odyssey.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20230504/e3d1b750/attachment.htm>


More information about the MapServer-users mailing list