My server keeps desyncing after long periods without players

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
Blahbla
Burner Inserter
Burner Inserter
Posts: 10
Joined: Sat Jul 08, 2017 2:57 am
Contact:

My server keeps desyncing after long periods without players

Post 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?
orzelek
Smart Inserter
Smart Inserter
Posts: 3923
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: My server keeps desyncing after long periods without players

Post 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.
Blahbla
Burner Inserter
Burner Inserter
Posts: 10
Joined: Sat Jul 08, 2017 2:57 am
Contact:

Re: My server keeps desyncing after long periods without players

Post 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
orzelek
Smart Inserter
Smart Inserter
Posts: 3923
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: My server keeps desyncing after long periods without players

Post by orzelek »

Those are desync logs.
Do you have a desync report?
That should be a zip file thats saved after desync occurs.
Blahbla
Burner Inserter
Burner Inserter
Posts: 10
Joined: Sat Jul 08, 2017 2:57 am
Contact:

Re: My server keeps desyncing after long periods without players

Post 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
orzelek
Smart Inserter
Smart Inserter
Posts: 3923
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: My server keeps desyncing after long periods without players

Post 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.
Blahbla
Burner Inserter
Burner Inserter
Posts: 10
Joined: Sat Jul 08, 2017 2:57 am
Contact:

Re: My server keeps desyncing after long periods without players

Post 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?
Jap2.0
Smart Inserter
Smart Inserter
Posts: 2375
Joined: Tue Jun 20, 2017 12:02 am
Contact:

Re: My server keeps desyncing after long periods without players

Post 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.
There are 10 types of people: those who get this joke and those who don't.
Blahbla
Burner Inserter
Burner Inserter
Posts: 10
Joined: Sat Jul 08, 2017 2:57 am
Contact:

Re: My server keeps desyncing after long periods without players

Post by Blahbla »

It turns out it was the Steam Powered Assembling Machines that caused the desyncs. No idea why.
orzelek
Smart Inserter
Smart Inserter
Posts: 3923
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: My server keeps desyncing after long periods without players

Post 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.
Loewchen
Global Moderator
Global Moderator
Posts: 9182
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: My server keeps desyncing after long periods without players

Post by Loewchen »

Is this reproducible in the latest version of the game?
Post Reply

Return to “Technical Help”