Page 1 of 1

My server keeps desyncing after long periods without players

Posted: Mon Mar 23, 2020 9:58 am
by Blahbla
This is a long shot but I'm gonna ask it anyway.

I'm running a 0.17.79 headless server on linux. The server is run from Docker factoriotools/factorio and is heavily modded (we're talking 63 mods with PyCoal Touched by an Angel).

Whenever my server experiences long periods with no players, any player joining will experience a desync. All players, no exceptions, will continuously desync every time they join until I manually restart the server. Effectively this means I have to run a command every time someone wants to play.

There can be a boatload of reasons for this. Probably it's all the mods doing something unexpected, possibly the docker image, maybe but not likely 0.17.79 multiplayer code.

In any case, I thought I'd ask if anyone else has experienced this?

Re: My server keeps desyncing after long periods without players

Posted: Mon Mar 23, 2020 6:37 pm
by orzelek
It would help if you could post/link any of desync reports.
From what you are describing I'd guess one of mods you are using is not fully save/load safe so it breaks when game is saved and sent to clients for loading.

Re: My server keeps desyncing after long periods without players

Posted: Tue Mar 24, 2020 11:46 am
by Blahbla
orzelek wrote:
Mon Mar 23, 2020 6:37 pm
It would help if you could post/link any of desync reports.
From what you are describing I'd guess one of mods you are using is not fully save/load safe so it breaks when game is saved and sent to clients for loading.
Absolutely.

I tried joining the server twice today, and was twice disconnected. The first desync happened before I entered the game, the second happened a few moments after I entered the game.

First desync client log
First desync server log

Second desync client log
Second desync server log

Re: My server keeps desyncing after long periods without players

Posted: Tue Mar 24, 2020 8:14 pm
by orzelek
Those are desync logs.
Do you have a desync report?
That should be a zip file thats saved after desync occurs.

Re: My server keeps desyncing after long periods without players

Posted: Wed Mar 25, 2020 2:06 pm
by Blahbla
orzelek wrote:
Tue Mar 24, 2020 8:14 pm
Those are desync logs.
Do you have a desync report?
That should be a zip file thats saved after desync occurs.
First desync report
Second desync report

Re: My server keeps desyncing after long periods without players

Posted: Wed Mar 25, 2020 9:20 pm
by orzelek
What do you have around position 1000, 2000?
There are a lot of desynced inserters there that think they are dropping stuff in different locations on client and server.
Try decunstruting stuff in that area and see if it will stop desyncing.

Also fluid boxes are desynced somewhere - might be related to above or not.

Re: My server keeps desyncing after long periods without players

Posted: Thu Mar 26, 2020 11:53 am
by Blahbla
orzelek wrote:
Wed Mar 25, 2020 9:20 pm
What do you have around position 1000, 2000?
There are a lot of desynced inserters there that think they are dropping stuff in different locations on client and server.
Try decunstruting stuff in that area and see if it will stop desyncing.

Also fluid boxes are desynced somewhere - might be related to above or not.
Image

The picture above is from 1000, 2000. As you can see there are a few different types of inserters configured with Bob's Adjustable Inserters. The yellow inserters are vanilla, the red inserters are from Bob's Logistics. The white assembling machine in the middle is steam powered, from Bob's Assembling Machines.

If any of these elements are the cause of the desyncs then my server is in big trouble because they exist everywhere.

What are fluid boxes? Are they pipes and tanks?

Re: My server keeps desyncing after long periods without players

Posted: Thu Mar 26, 2020 4:50 pm
by Jap2.0
Blahbla wrote:
Thu Mar 26, 2020 11:53 am
What are fluid boxes? Are they pipes and tanks?
They're basically what stores the fluid in something, so every pipe, pump, tank, steam engine, steam powered assembly machine, etc. has one.

Re: My server keeps desyncing after long periods without players

Posted: Thu Apr 09, 2020 8:44 pm
by Blahbla
It turns out it was the Steam Powered Assembling Machines that caused the desyncs. No idea why.

Re: My server keeps desyncing after long periods without players

Posted: Thu Apr 09, 2020 8:57 pm
by orzelek
They are modded but I think it's base game funcitonality to allow them to be steam powered.
Might be worth reporting a desync in bugs.

Re: My server keeps desyncing after long periods without players

Posted: Thu Apr 09, 2020 9:06 pm
by Loewchen
Is this reproducible in the latest version of the game?