M
M
Maxim Zaitsev2019-05-30 11:40:58
FTP
Maxim Zaitsev, 2019-05-30 11:40:58

Why can files change when they are sent via FTP?

ISSUE RESOLVED!
The problem turned out to be in the WIFi driver.
Installing a driver of a different version solved the issue.
Good afternoon, I ran into such an interesting problem, and to be honest, I don’t even know in which direction to dig.
I have a laptop with windows 10 pro.
When you try to upload files to FTP, the same thing always happens:
approximately the same number of characters are always duplicated in the middle of the file, the same number of characters is cut off at the end of the file.
I'll say right away:

  • it's not the FTP client, because we tried 5 independent FTP clients.
  • it's not about hosting, because we tried to download to 4 different hosting + everything is ok from another laptop.
  • it's not about the file, since this file was transferred to another laptop through the messenger and uploaded via FTP and everything was ok.
  • it's not about viruses, since the laptop was run by two antiviruses + the system with disk formatting was demolished twice.
  • Tried disabling firewalls and all kinds of windows defenders.
  • tried to transfer the file both binary and text.
  • tried to transfer different files, compose files themselves
  • tried to change internet
  • tried to upload from a USB flash drive or another disk
  • tried to create empty files in different editors and write content there by hand

in general, nothing helps.
The problem appears as follows:
When connecting via Ftp using TLS, the following error occurs:
Error log
Статус: Соединяюсь с 31.31.196.145:21... 
Статус: Соединение установлено, ожидание приглашения... 
Статус: Инициализирую TLS... 
Статус: Проверка сертификата... 
Статус: TLS соединение установлено. 
Статус: Авторизовались 
Статус: Получение списка каталогов... 
Статус: Список каталогов "/" извлечен 
Статус: Соединяюсь с 31.31.196.145:21... 
Статус: Соединение установлено, ожидание приглашения... 
Статус: Инициализирую TLS... 
Статус: Проверка сертификата... 
Статус: TLS соединение установлено. 
Статус: Авторизовались 
Статус: Начинаю закачивать C:\Users\aleks\Documents\CityList.txt 
Команда: CWD / 
Ответ: 250 CWD command successful 
Команда: PWD 
Ответ: 257 "/" is the current directory 
Команда: TYPE I 
Ответ: 200 Type set to I 
Команда: PASV 
Ответ: 227 Entering Passive Mode (31,31,196,145,137,120). 
Команда: STOR CityList.txt 
Ответ: 150 Opening BINARY mode data connection for CityList.txt 
Ошибка: Ошибка GnuTLS -110 в gnutls_record_recv: The TLS connection was non-properly terminated. 
Статус: Сервер неверно закрыл TLS соединение 
Ошибка: Невозможно получить данные с сокета: ECONNABORTED - Соединение прервано 
Ошибка: Отключен от сервера 
Ошибка: Передача файла потерпела неудачу 
Статус: Отключен от сервера 
Статус: Соединяюсь с 31.31.196.145:21... 
Статус: Соединение установлено, ожидание приглашения... 
Статус: Инициализирую TLS... 
Статус: Проверка сертификата... 
Статус: TLS соединение установлено. 
Статус: Авторизовались 
Статус: Начинаю закачивать C:\Users\aleks\Documents\CityList.txt 
Статус: Получение списка каталогов "/"...


He makes 3 such attempts and scores on 4. At the same time, an empty 0kb file is created on the server.
If TLS is disabled, the file ends without problems, but what we gave to the server differs from what we received in the end:
Here is what we uploaded:
But what happened in the end
Here is what what we uploaded:
But what happened as a result,
as you can see from the file, the following happened (and always happens), approximately in the middle of the file, a part of the line was duplicated. In this case, more Y characters were added.
yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
But if instead of them there would be a line or, for example, several lines, then they would be directly duplicated.
Roughly speaking, a certain number of characters are always duplicated (we can’t confirm exactly, but the number seems to have always been the same and does not depend on the file size) approximately in the middle of the file. and exactly the same number of characters are cut off at the end. I can understand why it is cut off at the end, since the file was downloaded in size and the transfer was suspended, but I cannot understand why part of the line is duplicated in the middle.
I really hope that there will be a smart person who will shed light on this mystery, because right now, because of this problem, there are great difficulties with work.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Zaitsev, 2019-05-30
@RayMefise

The issue was resolved by installing a different version of the WiFi driver

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question