Reload of Remote Text File sometimes deletes lines within the text file

Advertisement

A.E.
Guest

Reload of Remote Text File sometimes deletes lines within the text file

Version of WinSCP: 5.13.7 (also did it in 5.13.6)
OS: Windows 8.1
Remote OS: Linux CentOS 7
Protocol: SFTP
Interface: GUI - Commander
Problem:
When I open a file (on the remote window) which is being written to either by a php program (ie. Error Log), or as an output file by "nohup php <php_script>.php > output.txt &", and I click to reload the file while it is open, it sometimes deletes multiple lines near the end of the file. If I check this file, the overwritten data has been removed from the actual saved data (is not just a display issue). Previous edition I had originally installed did not do this, but I did not record the version number before upgrading.

Self-Troubleshooting Steps Taken - but did not resolve the issue:
· Uninstalled 5.13.6 completely, and then installed 5.13.7
· Changed "Maximum Number of Transfers At The Same Time:" to "1" in settings
· Unselected "Use Multiple Connections For A Single Transfer" in settings

Thank you for looking into this

Reply with quote

Advertisement

A.E.
Guest

Re: Reload of Remote Text File sometimes deletes lines within the text file

A.E. wrote:

Version of WinSCP: 5.13.7 (also did it in 5.13.6)
OS: Windows 8.1
Remote OS: Linux CentOS 7
Protocol: SFTP
Interface: GUI - Commander
Problem:
When I open a file (on the remote window) which is being written to either by a php program (ie. Error Log), or as an output file by "nohup php <php_script>.php > output.txt &", and I click to reload the file while it is open, it sometimes deletes multiple lines near the end of the file. If I check this file, the overwritten data has been removed from the actual saved data (is not just a display issue). Previous edition I had originally installed did not do this, but I did not record the version number before upgrading.

Self-Troubleshooting Steps Taken - but did not resolve the issue:
· Uninstalled 5.13.6 completely, and then installed 5.13.7
· Changed "Maximum Number of Transfers At The Same Time:" to "1" in settings
· Unselected "Use Multiple Connections For A Single Transfer" in settings

Thank you for looking into this

Found it worked correctly without this reported issue in WinSCP version 5.9.4 (I tried 5.11.3 next, and that version had the same problem as 5.13.6 and 5.13.7 listed here - I am not sure about the versions between 5.9.4 and 5.11.3, as I did not try those).

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
30,020
Location:
Prague, Czechia

Re: Reload of Remote Text File sometimes deletes lines within the text file

A.E. wrote:

Found it worked correctly without this reported issue in WinSCP version 5.9.4 (I tried 5.11.3 next, and that version had the same problem as 5.13.6 and 5.13.7 listed here - I am not sure about the versions between 5.9.4 and 5.11.3, as I did not try those).
Thanks for your report. So can you please try to identify the version that introduced the problem?
You can download all versions of WinSCP from:
https://sourceforge.net/projects/winscp/files/WinSCP/

Reply with quote

A.E.
Guest

Re: Reload of Remote Text File sometimes deletes lines within the text file

martin wrote:


Thanks for your report. So can you please try to identify the version that introduced the problem?
You can download all versions of WinSCP from:
https://sourceforge.net/projects/winscp/files/WinSCP/

Hi Martin,

The last version that worked correctly (allowed you to reload text file [ie. refresh the view when open] multiple times without it deleting lines from the file permanently) was 5.9.6.

In 5.10 beta it would allow one reload of text file, then on subsequent reload of file while file was still open, WinSPC would hang. I exited WinSPC by killing the process, re-entered WinSPC, and once I signed in to the remote server the text file that I was using to test with (which was being occasionally written to by "nohup php <php_script>.php > output.txt &") had less lines then when I first opened it before the program hung.

The same behavior happened in 5.10.1 beta, and in 5.10.2 beta WinSPC no longer hung after more than one reload of the text file, but after multiple reloads of the file being written to by "nohup php <php_script>.php > output.txt &", it deleted lines from the file.

I tested in 5.11 and it had the same behavior as 5.10.2 beta. This seems to be the same behavior afterwards upto the current version (although I have only tested the versions listed in this thread - it is only an assumption).

I hope that helps out.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
30,020
Location:
Prague, Czechia

Re: Reload of Remote Text File sometimes deletes lines within the text file

Thanks for your detailed report.
Can you attach session log files from 5.10.2 beta and 5.9.6 showing enough reloads to cause the problem in 5.10.2? Please use "Debug 1" log level.

Reply with quote

Advertisement

You can post new topics in this forum