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 ^^'
[0.17.28] No log entries describing issue when headless server fails due to missing banlist file.
[0.17.28] No log entries describing issue when headless server fails due to missing banlist file.
- Attachments
-
- factorio-current.log
- (11.54 KiB) Downloaded 61 times
Re: [0.17.28] No log entries describing issue when headless server fails due to missing banlist file.
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:
The issue is you didn't say to *use* the whitelist or not:
use-server-whitelist must be set when server-whitelist is set.
If you want to get ahold of me I'm almost always on Discord.
Re: [0.17.28] No log entries describing issue when headless server fails due to missing banlist file.
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.
If you want to get ahold of me I'm almost always on Discord.