[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
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 ^^'
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 ^^'