<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font face="Helvetica, Arial, sans-serif">Hello,<br>
<br>
First of all: thank you for your time!<br>
<br>
I have been running into a strange problem lately. We have a
server running mapserver 6.4.1 (Debian GNU/Linux 8.0 jessie) that
is accessing a remote WFS as client without any problems.<br>
We have another (local development) server that has been upgraded
to mapserver 7.2.2 (Ubuntu 18.04 bionic) and that can no longer
access the WFS. Everything was fine with the older versions on
that server, too (not certain if the mapserver upgrade happened at
the same time as the Ubuntu upgrade). <br>
<br>
The error received is:<br>
msOGRFileOpen(): OGR error. GetLayer(LAYER_NAME) failed for OGR
connection. Check logs.<br>
<br>
The logs are not giving me any further information. Even I put
debug level to 5 already. Also apache log is not giving me any
clue, there is no error. Other layers on the same server open
fine, as long a they do not need OGR. So I assume it is not a
connection issue.</font><br>
<font face="Helvetica, Arial, sans-serif"><font face="Helvetica,
Arial, sans-serif">ogrinfo however can access the external WFS
fine from the terminal.<br>
<br>
</font>Configuration:<br>
Mapserver 7.2.2<br>
gdal-bin 2.4.0+dfsg-1~bionic0 (from UbuntuGIS - unstable repo)</font><br>
<font face="Helvetica, Arial, sans-serif"><font face="Helvetica,
Arial, sans-serif">Ubuntu 18.04 bionic<br>
<br>
</font>I also have NextGIS repository activated but it does not
seem that gdal/ogr is installed from there.<br>
<br>
mapserv -v shows:<br>
MapServer version 7.2.2 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML
SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO
SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER
SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=PBF
INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE<br>
<br>
I have also checkt $Path:<br>
/home/lars/bin /usr/local/sbin /usr/local/bin /usr/sbin /usr/bin
/sbin /bin /usr/games /usr/local/games /snap/bin<br>
<br>
I am not certain, if that is correct but ogr seems to be in
/usr/bin so I'd expect it's available for mapserver, too. <br>
gdalinfo --formats does not show WFS, if that is the problem,
where do I get gdal with WFS enabled? <br>
<br>
The mapfile is the same on both servers (relevant code only):<br>
LAYER<br>
NAME "TEST"<br>
TYPE Point<br>
UNITS METERS<br>
CONNECTION <a class="moz-txt-link-rfc2396E"
href="http://XXX&VERSION=1.1.0&SERVICE=WFS"
moz-do-not-send="true">"http://XXX&VERSION=1.1.0&SERVICE=WFS"</a><br>
CONNECTIONTYPE OGR<br>
STATUS ON<br>
DEBUG ON<br>
DEBUG 5<br>
DATA "</font><font face="Helvetica, Arial, sans-serif"><font
face="Helvetica, Arial, sans-serif">LAYER_NAME</font>"<br>
METADATA<br>
"wfs_version" "1.1.0"<br>
"wfs_title" "TEST"<br>
"wfs_connectiontimeout" "300"<br>
"wfs_typename" "Test_int"<br>
"wfs_maxfeatures" "500"<br>
"gml_include_items" "all"<br>
#"wfs_srs" "epsg:25832"<br>
"gml_featureid" "ID"<br>
"wfs_enable_request" "*"<br>
END # METADATA<br>
PROJECTION<br>
"init=epsg:25832"<br>
END # PROJECTION<br>
CLASS<br>
NAME "Testlayer"<br>
STYLE<br>
COLOR 190 87 66<br>
OUTLINECOLOR 255 0 0<br>
SIZE 4<br>
SYMBOL "circle_filled"<br>
END # STYLE<br>
END # CLASS<br>
END # LAYER<br>
<br>
I'd really appreciate any help where to look further. I have been
at this for a few days already. I tried to give as much
information as possible, if something important is missing, please
let me know.<br>
<br>
Thanks again for your time!<br>
<br>
Best<br>
<br>
Lars<br>
<br>
SkenData GmbH<br>
</font>
</body>
</html>