I have no idea what we are doing to cause it, but here is how it happens.
1) We play in multiplayer just fine
2) Game continues to save files and keep running fine
3) At some point it starts saving corrupted save files and we don't know it until the next restart or the next attempt to connect.
WE NEVER HAVE A CRASH IN GAME HOWEVER
Essentially the headless server is running still. The client downloads the map, then attempts to load it and says 'Cannot load downloaded map: Internal error, unknown tile 137". The server log has no errors.
If I restart the server, I get a similar error on the server
2.262 Error FileUtil.cpp:284: Can't remove /opt/factorio/temp/currently-playing: No such file or directory
2.284 Info Scenario.cpp:152: Map version 0.14.21-0
5.083 Error ServerMultiplayerManager.cpp:93: MultiplayerManager failed: "Internal error, unknown tile 137"
5.083 Info ServerMultiplayerManager.cpp:658: mapTick(-1) changing state from(CreatingGame) to(InitializationFailed)
5.103 Error Main.cpp:509: Couldn't load the game for MP: Internal error, unknown tile 137
I download and try the client only, and same thing - In the attached log, it is the second set - autosave 2 I believe.
The save file is about 80MB big, so I am providing a link instead
http://www.temporalfocus.com/factorio/problem_save.zip
Mods