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

This subforum contains all the issues which we already resolved.
Bunny5390
Manual Inserter
Manual Inserter
Posts: 3
Joined: Tue Apr 09, 2019 2:43 am
Contact:

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

Post 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 ^^'
Attachments
factorio-current.log
(11.54 KiB) Downloaded 61 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 16084
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post 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.
If you want to get ahold of me I'm almost always on Discord.
Rseding91
Factorio Staff
Factorio Staff
Posts: 16084
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post 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.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”