<div dir="ltr">Hello<div><br></div><div>I want to do the first example in the MS docs but I get:</div><div><br></div><div>    </div><div><br></div><div>    502 errors: 20 upstream prematurely closed FastCGI stdout while reading response header from upstream. </div><div><br></div><div><br></div><div><br></div><div>So I decided that I definitely need to read the error log from Mapserver but I can't find it.</div><div><br></div><div>So my question is, where is the error log of MapServer?</div><div><br></div><div>I launch MS like this:</div><div><br></div><div><br></div><div><br></div><div>    spawn-fcgi   -a 127.0.0.1 -p 8001 /usr/bin/mapserv</div><div><br></div><div><br></div><div><br></div><div>I use archlinux. Typically in systemd (which archlinux uses) the error logs go to a standard place (journalctl). But I can't find them there. Specifically, I tried do `journalctl --no-pager | grep mapserv`. Didn't find anything from mapserv. So my question again is where is the error log of MapServer?</div><div><br></div><div>I tried to set a custom error log path, but it didn't work. The error.txt file is not being written to.</div><div><br></div><div>Here is the relevant part of the config: </div><div><br></div><div><br></div><div><br></div><div><div>    CONFIG "MS_ERRORFILE" "/home/jenia/mapserver-exercises/error.txt"</div></div><div>    DEBUG 5</div><div><br></div><div><br></div><div><br></div><div>The rest is just this mapfile (with the paths changed ofcourse): <a href="http://mapserver.org/tutorial/example1-1-map.html#example1-1-map" target="_blank">http://mapserver.org/tutorial/example1-1-map.html#example1-1-map</a></div><div><br></div><div><br></div><div>And I access it using this url:</div><div><br></div><div><br></div><div><br></div><div>    <a href="http://localhost/cgi-bin/mapserv?map=/home/jenia/mapserver-exercises/example1-1.map&layer=states&mode=map" target="_blank">http://localhost/cgi-bin/mapserv?map=/home/jenia/mapserver-exercises/example1-1.map&layer=states&mode=map</a><br></div><div><br></div><div><br></div><div><br></div><div>That's the mapfile's ls output:</div><div><br></div><div><br></div><div><br></div><div><div>    [jenia@localhost mapserver-exercises]$ ls -l /home/jenia/mapserver-exercises/example1-1.map </div><div>    -rw-r--r-- 1 jenia jenia 2328 Jul 24 14:04 /home/jenia/mapserver-exercises/example1-1.map</div></div><div><br></div><div><br></div><div><br></div><div>To reiterate, I have two quesiton.</div><div><br></div><div>1. Most importantly, where is the default Mapserver error log?</div><div>2. What did I do wrong in setting the custom error log?</div><div> </div><div><br></div><div>Thanks in advance for your time and kind help</div><div>Jenia</div><div><br></div></div>