Page 1 of 1
Headless server fighting over log file.
Posted: Wed Aug 22, 2018 3:59 am
by theradman221
I am having an issue where if I start factorio then my headless server the server works fine. But if I close factorio and try to restart it it gives me a error that the current log is not movable. So i'm wondering if it is possible to change where the server saves it's log file so they don't fight over the same file. I'm running windows 10.
Re: Headless erver fighting over log file.
Posted: Wed Aug 22, 2018 7:49 pm
by Strahlend
You need to edit the config path in your server files to navigate to a Factorio Server file in your Roaming folder. Here is my example.
ORIGINAL: config-path=__PATH__system-write-data__/config#
MY SERVER PATH: config-path=C:\Users\Eric\AppData\Roaming\Factorio-Server\config#
Re: Headless erver fighting over log file.
Posted: Fri Aug 24, 2018 10:18 am
by Strahlend
OK So I actually fixed this by accident and didn't give you all the info. So in your server folder you will have a text file that is called "config-path". That is the file path I gave you before. That tells the server where to find the server config settings. OK. Now you need to go to your roaming folder (in the windows search bar type %appdata%) and you will have a factorio folder in there. You may have a server one, you may need to make a copy of the factorio one and rename it factorio-server. OK once you have done that now open up that factorio-server folder in roaming and go to config. In there you will have a config.ini I recommend making a back up of this just in case. After creating a back up on the top of the config.ini file you will see read-data and write-data. Change the write data to where you want to server to save a new log whenever you start the server. Here is my example.
read-data=__PATH__system-read-data__
write-data=C:\Users\Eric\AppData\Roaming\Factorio-Server
Re: Headless erver fighting over log file.
Posted: Fri Aug 24, 2018 4:29 pm
by Zavian
Actually the easiest way is to just use the .zip download from
https://www.factorio.com/download and make a factorio install that is separate your existing factorio installation. The .zip version will be completely self contained with it's own mod folder, save games and log files.
Re: Headless server fighting over log file.
Posted: Wed Aug 29, 2018 4:05 am
by theradman221
Thanks for all the help!