<div dir="ltr"><div><br></div><div>Maybe a stupid question: does <span style="font-variant-ligatures:no-common-ligatures">/etc/qgisserver/project.qgs  has any WFS enabled layer?</span></div><div><span style="font-variant-ligatures:no-common-ligatures"><br></span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 18, 2021 at 11:40 AM Paul van Genuchten <<a href="mailto:paul.vangenuchten@geocat.net">paul.vangenuchten@geocat.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">Hi Allessandro, i just tried with the 3.10 image also, but got similar results.<div><br></div><div>If i enforce an error in one of the layers, those errors are actually logged, but still I don’t see any collections (in html and or json encoding). </div><div><br></div><div>My log is here:</div><div><br></div><div>```</div><div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">49686 - 172.19.0.12 - - [18/Jun/2021:09:33:56 +0000] "GET /qgis/wfs3/static/style.css HTTP/1.1" 200 633 "<a href="http://localhost:8000/qgis/wfs3/collections?" target="_blank">http://localhost:8000/qgis/wfs3/collections?</a>" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36"</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">09:33:56 INFO Server[74]: ******************** New request ***************</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">09:33:56 INFO Server[74]: Request URL: <a href="http://localhost:8000/qgis/wfs3/static/jsonFormatter.min.js?" target="_blank">http://localhost:8000/qgis/wfs3/static/jsonFormatter.min.js?</a></span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">09:33:56 INFO Server[74]: Environment:</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">09:33:56 INFO Server[74]: ------------------------------------------------</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">09:33:56 INFO Server[74]: SERVER_NAME: localhost</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">09:33:56 INFO Server[74]: REQUEST_URI: /qgis/wfs3/static/jsonFormatter.min.js</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">09:33:56 INFO Server[74]: SCRIPT_NAME: /qgis/wfs3/static/jsonFormatter.min.js</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">09:33:56 INFO Server[74]: REMOTE_ADDR: 172.19.0.12</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">09:33:56 INFO Server[74]: SERVER_PORT: 8000</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">09:33:56 INFO Server[74]: QUERY_STRING: </span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">09:33:56 INFO Server[74]: REQUEST_METHOD: GET</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">09:33:56 INFO Server[74]: HTTP_ACCEPT: */*</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">09:33:56 INFO Server[74]: HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">09:33:56 INFO Server[74]: QGIS_PROJECT_FILE: /etc/qgisserver/project.qgs</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">09:33:56 INFO Server[74]: Trying URL path: /qgis/wfs3/static/jsonFormatter.min.js for /wfs3</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">09:33:56 INFO Server[74]: API OGC WFS3 (Draft) accepts the URL path /qgis/wfs3/static/jsonFormatter.min.js </span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">09:33:56 INFO Server[74]: Checking API path /qgis/wfs3/static/jsonFormatter.min.js for /collections/(?<collectionId>[^/]+)/items(\.geojson|\.json|\.html)?$ </span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">09:33:56 INFO Server[74]: Checking API path /qgis/wfs3/static/jsonFormatter.min.js for /collections/(?<collectionId>[^/]+)/items/(?<featureId>[^/]+?)(\.json|\.geojson|\.html)?$ </span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">09:33:56 INFO Server[74]: Checking API path /qgis/wfs3/static/jsonFormatter.min.js for /collections(\.json|\.html)?$ </span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">09:33:56 INFO Server[74]: Checking API path /qgis/wfs3/static/jsonFormatter.min.js for /collections/(?<collectionId>[^/]+?)(\.json|\.html)?$ </span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">09:33:56 INFO Server[74]: Checking API path /qgis/wfs3/static/jsonFormatter.min.js for /conformance </span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">09:33:56 INFO Server[74]: Checking API path /qgis/wfs3/static/jsonFormatter.min.js for /static/(?<staticFilePath>.*)$ </span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">09:33:56 INFO Server[74]: Found API handler static</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">09:33:56 INFO Server[74]: Request finished in 2 ms</span></div></div><div>```<br><div><br></div><div>Any ideas?<br><br>
</div>
<div><br><blockquote type="cite"><div>On 18 Jun 2021, at 10:17, Alessandro Pasotti <<a href="mailto:apasotti@gmail.com" target="_blank">apasotti@gmail.com</a>> wrote:</div><br><div><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 18, 2021 at 9:57 AM Paul van Genuchten <<a href="mailto:paul.vangenuchten@geocat.net" target="_blank">paul.vangenuchten@geocat.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi list, At Geonovum (netherlands) we’re operating an environment to study a number of OGC API Features implementations.<br>
<br>
We’ve aded qgis server from 3.18 and 3.16 docker image maintained by camp to camp (<a href="https://github.com/camptocamp/docker-qgis-server" rel="noreferrer" target="_blank">https://github.com/camptocamp/docker-qgis-server</a>). In both cases we noticed the /wfs3/collections endpoint did not display any collections, but the wms-capabilities showed the layers of our project without problems. The log didn’t show any warnings. <br>
<br>
Do you have some hints on how i could debug the situation?<br></blockquote><div><br></div><div>The logs should definitely show something.</div><div><br></div><div>Anyway, the problem is probably caused by <code><span>QGIS_PROJECT_FILE </span></code>not being correctly set. <br></div><div><br></div><div>How do you pass it to the server? <br></div><div><br></div><div>Note that MAP=/path is not allowed by the OAPIF standard (QGIS should parse it correctly though).<br></div></div><br clear="all"><br>-- <br><div dir="ltr"><div dir="ltr"><div>Alessandro Pasotti</div><div>QCooperative:  <a href="https://www.qcooperative.net/" target="_blank">www.qcooperative.net</a><br></div>ItOpen:   <a href="http://www.itopen.it/" target="_blank">www.itopen.it</a></div></div></div>
</div></blockquote></div><br></div></div></blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Alessandro Pasotti</div><div>QCooperative:  <a href="https://www.qcooperative.net" target="_blank">www.qcooperative.net</a><br></div>ItOpen:   <a href="http://www.itopen.it" target="_blank">www.itopen.it</a></div></div>