<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><div data-html-editor-font-wrapper="true" style="font-family: arial, sans-serif; font-size: 13px;">Have You tried: CONFIG "CPL_DEBUG" "ON"<br><br>/Lars Schylberg<br><br>April 4, 2019 11:23 AM, "Lars Fricke" <<a target="_blank" tabindex="-1" href="mailto:lars.fricke@skendata.de?to=%22Lars%20Fricke%22%20<lars.fricke@skendata.de>">lars.fricke@skendata.de</a>> wrote:<br> <blockquote><div><div style="color: #000000;background-color: #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.</font><br><br>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</font><br><br>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 moz-do-not-send="true" rel="external nofollow noopener noreferrer" target="_blank" tabindex="-1" href="http://XXX&VERSION=1.1.0&SERVICE=WFS">"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</font> </div></div></blockquote> <br><br><signature></signature> </div></body></html>