Page 1 of 1

[0.17.28] No log entries describing issue when headless server fails due to missing banlist file.

Posted: Wed Apr 10, 2019 3:58 am
by Bunny5390
So I recently had to debug why my server was exiting after initialising (first reply here viewtopic.php?f=49&t=68742). As I said in the other topic, the log didn't give much info.
I tried turning on verbose logging, but that didn't give much more information either (unless I didn't turn it on properly >.>).

After reading some of the comments on the AUR page for the factorio-headless-experimental package I was using, I discovered the problem was apparently due to the fact I was setting paths for banlist and whitelist files in the server arguments despite those files not existing. When I removed the arguments, it started correctly.

The issue here though, is that the server silently failed without logging that the missing files were the reason for it exiting, so I wasn't able to figure out that it was such a simple issue.

I've attached one of the logs I got before I turned on verbose logging. The logs I got afterwards were already rotated out after I got it working, sorry ^^'

Re: [0.17.28] No log entries describing issue when headless server fails due to missing banlist file.

Posted: Wed Apr 10, 2019 9:46 am
by Rseding91
Thanks for the report: it does describe the issue however it sends it to the attached console (since it's being launched in headless mode).

The issue is you didn't say to *use* the whitelist or not:
use-server-whitelist must be set when server-whitelist is set.

Re: [0.17.28] No log entries describing issue when headless server fails due to missing banlist file.

Posted: Wed Apr 10, 2019 10:04 am
by Rseding91
I also changed it so for the next version of 0.17 it will include those errors in the log file instead of just sending them to the console.