Author Topic: Error connecting to server "Not enough bytes transferred"  (Read 435 times)

0 Members and 1 Guest are viewing this topic.

Offline River

Error connecting to server "Not enough bytes transferred"
« on: January 11, 2017, 04:33:25 PM »
Hi!

Last night my pc died and the resulting power outage took out my server as well. as a result people can't connect to the server any more getting the error "Not enough bytes transferred".
I tryed on my server:
- re downloading the game
- re downloading the pak set
- updating windows
- restoring windows to before the power outage.
- older/new save games of the map  that didn't work.
- other save games (1 with similar size and progression that didn't work, 1 with similar size but less progress/ companies and that did work)
- new games up to size 1500x1500 that did work.

I'm hoping that someone can tell me where the problems is coming from or i'm afraid that the power failing also caused hardware problems to my server.

River

Offline An_dz

  • Web Admin
  • Administrator
  • *
  • Posts: 2506
  • Total likes: 261
  • Helpful: 88
  • D'oh
    • by An_dz
  • Languages: PT, EN, (it, de)
Re: Error connecting to server "Not enough bytes transferred"
« Reply #1 on: January 11, 2017, 08:01:45 PM »
Try removing dlgpos.xml and settings.xml. Maybe something corrupt on them? Maybe even default.sve.

Offline River

Re: Error connecting to server "Not enough bytes transferred"
« Reply #2 on: January 11, 2017, 08:57:13 PM »
Try removing dlgpos.xml and settings.xml. Maybe something corrupt on them? Maybe even default.sve.
i removed it all, it didn't help

i did notis that 1 player was able to connect. goes my the nickname JR (from JR Transport)

Offline TurfIt

Re: Error connecting to server "Not enough bytes transferred"
« Reply #3 on: January 11, 2017, 10:12:17 PM »
Client times out.
Code: [Select]
Message: network_receive_file: File size 3629697
Warning: network_receive_file: Timeout during transfer: No error
Warning: network_connect: Not enough bytes transferred

What does the server log say? should be some entries starting with "network_send_data".
Is 3629697 about right for the size?
Can you connect locally? i.e. Across the LAN eliminating ISP/router/etc.
I doubt there's an Simutrans error here, possible your networking equipment took a hit.

Offline DrSuperGood

Re: Error connecting to server "Not enough bytes transferred"
« Reply #4 on: January 12, 2017, 12:38:31 AM »
Timeout during transfer is issued if 1 byte fails to arrive within 10 seconds or some other error occurs. For some reason this is not pushed to the user and instead gets logged with the user receiving the rather unhelpful "Not enough bytes transferred" message. I also think the error code returned is wrong for MSVC (possibly all windows builds?) as it uses strerror(errno) on a function that needs WSAGetLastError on Windows.

The server has symptoms of an unreliable or congested connection. It works, but very slowly to the point that Simutrans times out the transfer.

Try resetting your router (or whatever you use to connect to the internet). Check the traffic flowing through it in case one of your devices is uploading/downloading a lot of data.
« Last Edit: January 12, 2017, 07:11:56 AM by DrSuperGood »

Offline River

Re: Error connecting to server "Not enough bytes transferred"
« Reply #5 on: January 12, 2017, 11:13:34 AM »
i reset my switch and it all seems to work again.