[14.22] Headless server: "Your client sent the wrong data to the server and was disabled."

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.
Post Reply
WhiteORU
Burner Inserter
Burner Inserter
Posts: 9
Joined: Wed Mar 23, 2016 2:11 pm
Contact:

[14.22] Headless server: "Your client sent the wrong data to the server and was disabled."

Post by WhiteORU »

Hello, play in 2 ppl on private headless server.
In time connect second players, after connect,
Instantly desync and kick from the server
help
Attachments
factorio-current.log
(89.51 KiB) Downloaded 80 times

Loewchen
Global Moderator
Global Moderator
Posts: 8308
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: desync after connect to headless server

Post by Loewchen »

Post the desync report, see the FAQ on where to find it.
There is no desync in your log btw.

WhiteORU
Burner Inserter
Burner Inserter
Posts: 9
Joined: Wed Mar 23, 2016 2:11 pm
Contact:

Re: desync after connect to headless server

Post by WhiteORU »

can't find desync file on friend pc
attach he factorio-log
Attachments
factorio-current-1.log
(7.96 KiB) Downloaded 75 times

WhiteORU
Burner Inserter
Burner Inserter
Posts: 9
Joined: Wed Mar 23, 2016 2:11 pm
Contact:

Re: desync after connect to headless server

Post by WhiteORU »


daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: desync after connect to headless server

Post by daniel34 »

Code: Select all

  53.957 Error ClientMultiplayerManager.cpp:90: MultiplayerManager failed: "Ваш клиент отправил неверные данные серверу и был отключен."
"Your client sent the wrong data to the server and was disabled."

I think t's a firewall/router issue or some other issue that modifies the data that Factorio is sending so the server receives different data than the client sent.

This might also explain the desync, it happened on a new map at tick 28 (half a second after the map was created) and the only difference I see from the desync report is the player position. Wrong data --> desync.

EDIT: how was this map created? It's a custom 9x9 tile map and according to the desync report (which is also missing the log for some reason) it is not vanilla, it includes the test_mod 1.0.0 from Factorio\tests\mods. Why are you using that mod?
quick links: log file | graphical issues | wiki

WhiteORU
Burner Inserter
Burner Inserter
Posts: 9
Joined: Wed Mar 23, 2016 2:11 pm
Contact:

Re: desync after connect to headless server

Post by WhiteORU »

map created headless server
./factorio --create map-gen-settings my-settings.json

WhiteORU
Burner Inserter
Burner Inserter
Posts: 9
Joined: Wed Mar 23, 2016 2:11 pm
Contact:

Re: desync after connect to headless server

Post by WhiteORU »

after delete test folder
https://yadi.sk/d/NICuFXe03G2pne

WhiteORU
Burner Inserter
Burner Inserter
Posts: 9
Joined: Wed Mar 23, 2016 2:11 pm
Contact:

Re: [14.22] Headless server: "Your client sent the wrong data to the server and was disabled."

Post by WhiteORU »

Code: Select all

root@debian:/opt/factorio/bin/x64# /opt/factorio/bin/x64/factorio --start-server 11111
   0.005 2017-03-22 17:18:18; Factorio 0.14.22 (build 25342, linux64, headless)
   0.108 Operating system: Linux (Debian 8.7)
   0.109 Program arguments: "/opt/factorio/bin/x64/factorio" "--start-server" "11111" 
   0.109 Read data path: /opt/factorio/data
   0.109 Write data path: /opt/factorio
   0.109 Binaries path: /opt/factorio/bin
   0.144 System info: [CPU: Intel(R) Xeon(R) CPU E5-2695 v4 @ 2.10GHz, 1 core, RAM: 487MB]
   0.145 Running in headless mode
   0.155 Loading mod core 0.0.0 (data.lua)
   0.173 Loading mod base 0.14.22 (data.lua)
   0.620 Checksum for core: 1291735968
   0.621 Checksum for mod base: 786624017
   2.393 Info PlayerData.cpp:55: Local player-data.json available, timestamp 1490192296
   2.393 Info PlayerData.cpp:62: Cloud player-data.json unavailable
   2.414 Custom inputs active: 0
   2.417 Factorio initialised
   2.418 Warning FileUtil.cpp:490: 11111 not found; using /opt/factorio/saves/11111.zip
   2.424 Info ServerSynchronizer.cpp:27: nextHeartbeatSequenceNumber(0) initialized Synchronizer nextTickClosureTick(0).
   2.425 Info ServerMultiplayerManager.cpp:658: mapTick(-1) changing state from(Ready) to(PreparedToHostGame)
   2.425 Info ServerMultiplayerManager.cpp:658: mapTick(-1) changing state from(PreparedToHostGame) to(CreatingGame)
   2.434 Loading map /opt/factorio/saves/11111.zip
   2.435 Error FileUtil.cpp:284: Can't remove /opt/factorio/temp/currently-playing: No such file or directory
   2.547 Info Scenario.cpp:152: Map version 0.14.22-0
   2.984 Checksum for script /opt/factorio/temp/currently-playing/control.lua: 1057114497
   2.985 Info UDPSocket.cpp:27: Opening socket at (0.0.0.0:34197)
   2.986 Hosting game at 0.0.0.0:34197
   2.986 Info ServerMultiplayerManager.cpp:658: mapTick(0) changing state from(CreatingGame) to(InGame)
   3.729 Info ServerRouter.cpp:229: Received message type(ClientToServerHeartbeat) heartbeat(sequenceNumber(488212974)  ) requestsForHeartbeats()  from unknown    address(46.1.5.8:55554), so the peer id can't be deduced.
   9.109 ConnectionRequestReplyConfirm (type(ConnectionRequestReplyConfirm) ) from(46.1.5.8:55554)
   9.109 Info ServerRouter.cpp:413: Replying to connectionRequest for address(46.1.5.8:55554).
   9.110 Info ServerSynchronizer.cpp:524: nextHeartbeatSequenceNumber(180) adding peer(1)
   9.127 Info ServerMultiplayerManager.cpp:658: mapTick(0) changing state from(InGame) to(InGameSavingMap)
   9.205 Info ServerMultiplayerManager.cpp:742: mapTick(0) received stateChanged peerID(1) oldState(Ready) newState(ConnectedWaitingForMap)
   9.558 Info ServerMultiplayerManager.cpp:779: MapTick(0) Serving map(/opt/factorio/temp/mp-save-0.zip) for peer(1) size(744180) crc(2859920972)
   9.558 Info ServerMultiplayerManager.cpp:658: mapTick(0) changing state from(InGameSavingMap) to(InGame)
   9.661 Info ServerMultiplayerManager.cpp:742: mapTick(6) received stateChanged peerID(1) oldState(ConnectedWaitingForMap) newState(ConnectedDownloadingMap)
   9.712 Info ServerMultiplayerManager.cpp:822: Disconnect notification for peer (1)
   9.730 Info ServerSynchronizer.cpp:539: nextHeartbeatSequenceNumber(198) removing peer(1).
   9.750 Info TransferSource.cpp:140: Block request by a peer we're not serving for (1)
  19.729 Info ServerRouter.cpp:229: Received message type(ClientToServerHeartbeat) heartbeat(sequenceNumber(488212974)  ) requestsForHeartbeats()  from unknown address(46.1.5.8:55554), so the peer id can't be deduced.
  21.923 ConnectionRequestReplyConfirm (type(ConnectionRequestReplyConfirm) ) from(46.1.5.8:55556)
  21.924 Info ServerRouter.cpp:413: Replying to connectionRequest for address(46.1.5.8:55556).
  21.924 Info ServerSynchronizer.cpp:524: nextHeartbeatSequenceNumber(558) adding peer(2)
  21.925 Info ServerMultiplayerManager.cpp:658: mapTick(11) changing state from(InGame) to(InGameSavingMap)
  22.036 Info ServerMultiplayerManager.cpp:742: mapTick(11) received stateChanged peerID(2) oldState(Ready) newState(ConnectedWaitingForMap)
  22.302 Info ServerMultiplayerManager.cpp:779: MapTick(11) Serving map(/opt/factorio/temp/mp-save-1.zip) for peer(2) size(744259) crc(2733599319)
  22.303 Info ServerMultiplayerManager.cpp:658: mapTick(11) changing state from(InGameSavingMap) to(InGame)
  22.426 Info ServerMultiplayerManager.cpp:742: mapTick(18) received stateChanged peerID(2) oldState(ConnectedWaitingForMap) newState(ConnectedDownloadingMap)
  25.862 Info ServerMultiplayerManager.cpp:742: mapTick(219) received stateChanged peerID(2) oldState(ConnectedDownloadingMap) newState(ConnectedLoadingMap)
  25.966 Info ServerMultiplayerManager.cpp:822: Disconnect notification for peer (2)
  25.967 Info ServerSynchronizer.cpp:539: nextHeartbeatSequenceNumber(663) removing peer(2).
  35.965 Info ServerRouter.cpp:229: Received message type(ClientToServerHeartbeat) heartbeat(sequenceNumber(1966308124)  ) requestsForHeartbeats()  from unknown address(46.1.5.8:55556), so the peer id can't be deduced.
this log in time login my friend on server

Code: Select all

  85.040 ConnectionRequestReplyConfirm (type(ConnectionRequestReplyConfirm) ) from(31.1.2.1:58890)
  85.040 Info ServerRouter.cpp:413: Replying to connectionRequest for address(31.1.2.1:58890).
  85.040 Info ServerSynchronizer.cpp:524: nextHeartbeatSequenceNumber(2411) adding peer(3)
  85.041 Info ServerMultiplayerManager.cpp:658: mapTick(226) changing state from(InGame) to(InGameSavingMap)
  85.115 Info ServerMultiplayerManager.cpp:742: mapTick(226) received stateChanged peerID(3) oldState(Ready) newState(ConnectedWaitingForMap)
  85.493 Info ServerMultiplayerManager.cpp:779: MapTick(226) Serving map(/opt/factorio/temp/mp-save-2.zip) for peer(3) size(744307) crc(1995016227)
  85.493 Info ServerMultiplayerManager.cpp:658: mapTick(226) changing state from(InGameSavingMap) to(InGame)
  85.579 Info ServerMultiplayerManager.cpp:742: mapTick(231) received stateChanged peerID(3) oldState(ConnectedWaitingForMap) newState(ConnectedDownloadingMap)
  88.973 Info ServerMultiplayerManager.cpp:742: mapTick(434) received stateChanged peerID(3) oldState(ConnectedDownloadingMap) newState(ConnectedLoadingMap)
  89.060 Info ServerMultiplayerManager.cpp:742: mapTick(440) received stateChanged peerID(3) oldState(ConnectedLoadingMap) newState(TryingToCatchUp)
  89.406 Info ServerMultiplayerManager.cpp:742: mapTick(460) received stateChanged peerID(3) oldState(TryingToCatchUp) newState(WaitingForCommandToStartSendingTickClosures)
  89.406 Info GameActionHandler.cpp:2556: MapTick(460) processed PlayerJoinGame peerID(3) playerIndex(0) mode(create)
  89.498 Info ServerMultiplayerManager.cpp:742: mapTick(466) received stateChanged peerID(3) oldState(WaitingForCommandToStartSendingTickClosures) newState(InGame)
thats me

Loewchen
Global Moderator
Global Moderator
Posts: 8308
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: [14.22] Headless server: "Your client sent the wrong data to the server and was disabled."

Post by Loewchen »

No idea if related, but if this information is correct, then 500MB of RAM will not get you far.
0.144 System info: [CPU: Intel(R) Xeon(R) CPU E5-2695 v4 @ 2.10GHz, 1 core, RAM: 487MB]

Post Reply

Return to “Technical Help”