<div dir="auto"><div>I forgott to fill subject for previous message. Sorry for that and there is forwarded message with proper subject...<br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">---------- Forwarded message ---------<br>Od: <strong class="gmail_sendername" dir="auto">David Pavlíček via mapserver-users</strong> <span dir="auto"><<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>></span><br>Date: po 7. 6. 2021 6:43<br>Subject: [mapserver-users] (no subject)<br>To: Mapserver <<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>><br></div><br><br><div dir="ltr">Hi again,<div>I continue on the journey to dockerized Mapserver, and this time im struggling with this issue:</div><div><br></div><div><i>[warn] [pid 25] mod_fcgid: stderr: mapserv(): Web application error. Traditional BROWSE mode requires a TEMPLATE in the WEB section, but none was provided. `<br>[error] [pid 25] End of script output before headers: mapserv_wrapper<br>[04/Jun/2021:09:17:22 +0000] "GET /?map=/etc/mapserver/honitby/honitby.map HTTP/1.1" 500 806 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36"</i><br></div><div><i><br></i></div><div>Message above is logged in error log and Apache HTTP 500 is returned to a client instead of HTML page for some outputs (like trying to request BROWSE mode without a defined template). But, strange is that it happens for a second, and each subsequent call. First call is handled correctly for each project and server start.</div><div><br></div><div>mapserver_wrapper is a simple shell wrapper around mapserv from the camptocamp mapserver container. When I exec into a container and try mapserv or wrapper directly, then proper HTML output is always returned. </div><div><br></div><div>Here is also <span style="color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px">DEBUGLEVEL=5</span><span style="color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px"> log:</span></div><div><br></div> <i>[warn] [pid 25] mod_fcgid: stderr: loadParams() QUERY_STRING: map=/etc/mapserver/honitby/honitby.map<br> [warn] [pid 25] mod_fcgid: stderr: msLoadMap(): 0.001s<br> [warn] [pid 25] mod_fcgid: stderr: CGI Request 2 on process 81<br> [warn] [pid 25] mod_fcgid: stderr: mapserv(): Web application error. Traditional BROWSE mode requires a TEMPLATE in the WEB section, but none was provided.<br> [warn] [pid 25] mod_fcgid: stderr: mapserv request processing time (msLoadMap not incl.): 0.000s<br> [warn] [pid 25] mod_fcgid: stderr: msFreeMap(): freeing map at 0x1f22560.<br> [warn] [pid 25] mod_fcgid: stderr: freeLayer(): freeing layer at 0x1f29e60.<br> [warn] [pid 25] mod_fcgid: stderr: msPostGISLayerIsOpen called.<br> [error] [pid 25] End of script output before headers: mapserv_wrapper<br>2651 - 172.17.0.1 - - [04/Jun/2021:10:14:12 +0000] "GET /?map=/etc/mapserver/honitby/honitby.map HTTP/1.1" 500 806 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36"</i><br><div> </div><div>At first I thought it was caused by PostGIS connection pooling (close = defer), but it happens even with projects with local layer sources (SHP) or without pooling. Maybe some magic Apache cache configuration or something... Any thoughts on what can cause this?</div><div><br></div><div>There is also reference to the issue I created in camptocamp GIT repo, but we agree with the maintainer that this is probably a more appropriate issue for this mailing list... </div><div><br></div><div><a href="https://github.com/camptocamp/docker-mapserver/issues/179" target="_blank" rel="noreferrer">https://github.com/camptocamp/docker-mapserver/issues/179</a><br></div><div><br></div><div>thanks David</div><div><br></div><div><br></div></div>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank" rel="noreferrer">mapserver-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</div></div></div>