Problem uploading shorter files

Advertisement

brisray
Joined:
Posts:
7
Location:
Terre Haute, Indiana

Problem uploading shorter files

If I upload a file shorter than the original then the file size does not change. The shorter text is uploaded but any characters between that and the end of the original file is left where it is.

This might help illustrate the problem. A text file is uploaded that contains the text...
<p>This is a long sentence.</p>
The file is then edited to read...
<p>This is a sentence.</p>
Then that is uploaded but the file on the server contains the text
<p>This is a sentence.</p>
./p>
If it helps, I do not get the "overwrite file?" dialog box despite whatever settings that are chosen in the Environment options.

I am using WinSCP version 5.9.3 (build 7136) in GUI Commander mode.

At first I thought it might be an editor error, but it is not, it's the files on the server being affected during the transfer. I also thought it might be something to do with the server, so I tried the transfer with FileZilla and that works properly. This happens to all text files, HTML, CSS, JS etc., changing the options to binary does not help either.

Here's yesterday's log while trying this...
. 2016-12-26 10:16:24.195 --------------------------------------------------------------------------
. 2016-12-26 10:16:24.195 WinSCP Version 5.9.3 (Build 7136) (OS 10.0.14393 - Windows 10 Home)
. 2016-12-26 10:16:24.195 Configuration: HKCU\Software\Martin Prikryl\WinSCP 2\
. 2016-12-26 10:16:24.195 Log level: Normal
. 2016-12-26 10:16:24.195 Local account: DESKTOP-E0MR94O\brisray
. 2016-12-26 10:16:24.195 Working directory: C:\Program Files (x86)\WinSCP
. 2016-12-26 10:16:24.195 Process ID: 16892
. 2016-12-26 10:16:24.195 Command-line: "C:\Program Files (x86)\WinSCP\WinSCP.exe" 
. 2016-12-26 10:16:24.195 Time zone: Current: GMT-5, Standard: GMT-5 (US Eastern Standard Time), DST: GMT-4 (US Eastern Daylight Time), DST Start: 3/13/2016, DST End: 11/6/2016
. 2016-12-26 10:16:24.195 Login time: Monday, December 26, 2016 10:16:24 AM
. 2016-12-26 10:16:24.195 --------------------------------------------------------------------------
. 2016-12-26 10:16:24.195 Session name: brisray@brisray.com (Site)
. 2016-12-26 10:16:24.195 Host name: brisray.com (Port: 22)
. 2016-12-26 10:16:24.195 User name: brisray (Password: No, Key file: No, Passphrase: No)
. 2016-12-26 10:16:24.195 Tunnel: No
. 2016-12-26 10:16:24.195 Transfer Protocol: SFTP
. 2016-12-26 10:16:24.195 Ping type: Off, Ping interval: 30 sec; Timeout: 15 sec
. 2016-12-26 10:16:24.195 Disable Nagle: No
. 2016-12-26 10:16:24.195 Proxy: None
. 2016-12-26 10:16:24.195 Send buffer: 262144
. 2016-12-26 10:16:24.195 SSH protocol version: 2; Compression: No
. 2016-12-26 10:16:24.195 Bypass authentication: No
. 2016-12-26 10:16:24.195 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2016-12-26 10:16:24.195 Ciphers: aes,chacha20,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2016-12-26 10:16:24.195 KEX: ecdh,dh-gex-sha1,dh-group14-sha1,rsa,WARN,dh-group1-sha1
. 2016-12-26 10:16:24.195 SSH Bugs: Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto
. 2016-12-26 10:16:24.195 Simple channel: Yes
. 2016-12-26 10:16:24.195 Return code variable: Autodetect; Lookup user groups: Auto
. 2016-12-26 10:16:24.195 Shell: default
. 2016-12-26 10:16:24.195 EOL: LF, UTF: Auto
. 2016-12-26 10:16:24.195 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes; Follow directory symlinks: No
. 2016-12-26 10:16:24.195 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2016-12-26 10:16:24.195 SFTP Bugs: Auto,Auto
. 2016-12-26 10:16:24.195 SFTP Server: default
. 2016-12-26 10:16:24.195 Local directory: C:\Users\brisray\Documents\Websites\HMSGambia, Remote directory: /hmsgambia, Update: Yes, Cache: Yes
. 2016-12-26 10:16:24.195 Cache directory changes: Yes, Permanent: Yes
. 2016-12-26 10:16:24.195 Recycle bin: Delete to: No, Overwritten to: No, Bin path: 
. 2016-12-26 10:16:24.195 DST mode: Unix
. 2016-12-26 10:16:24.195 --------------------------------------------------------------------------
. 2016-12-26 10:16:24.533 Looking up host "brisray.com" for SSH connection
. 2016-12-26 10:16:24.538 Connecting to 192.168.0.2 port 22
. 2016-12-26 10:16:24.542 We claim version: SSH-2.0-WinSCP_release_5.9.3
. 2016-12-26 10:16:24.594 Server version: SSH-2.0-Syncplify_Me_Server
. 2016-12-26 10:16:24.594 We believe remote version has SSH-2 channel request bug
. 2016-12-26 10:16:24.594 Using SSH protocol version 2
. 2016-12-26 10:16:24.609 Have a known host key of type rsa2
. 2016-12-26 10:16:24.612 Doing Diffie-Hellman group exchange
. 2016-12-26 10:16:24.679 Doing Diffie-Hellman key exchange with hash SHA-1
. 2016-12-26 10:16:24.934 Host key fingerprint is:
. 2016-12-26 10:16:24.934 ssh-rsa 1024 4e:c0:0c:af:be:a8:9f:46:4a:11:ca:ea:78:35:77:25
. 2016-12-26 10:16:24.934 Verifying host key rsa2 0x10001,0xb3a3537f32e14130 903a0b9fa79d7d95 fd8dbce311635eee 61003131a6c5c826 142f549b1f6d5c57 57ef5b71a6ccc824 d1386eaf64c02699 9062d0c7a17c26a1 cd7c1e8a734ff9e5 20746360e7880703 482dcace0a2f1e07 3f412d603bd2e81b be9b1b7c7cf6d262 17ae49aad16444eb 703ca212123c4350 cfc85a493fbeffe1  with fingerprint ssh-rsa 1024 4e:c0:0c:af:be:a8:9f:46:4a:11:ca:ea:78:35:77:25
. 2016-12-26 10:16:24.994 Host key matches cached key
. 2016-12-26 10:16:24.994 Initialised AES-256 SDCTR client->server encryption
. 2016-12-26 10:16:24.994 Initialised HMAC-SHA1 client->server MAC algorithm
. 2016-12-26 10:16:25.011 Initialised AES-256 SDCTR server->client encryption
. 2016-12-26 10:16:25.011 Initialised HMAC-SHA1 server->client MAC algorithm
! 2016-12-26 10:16:25.014 Using username "brisray".
. 2016-12-26 10:16:25.061 Server offered these authentication methods: password,publickey
. 2016-12-26 10:16:25.061 Prompt (password, "SSH password", <no instructions>, "&Password: ")
. 2016-12-26 10:16:28.293 Sent password
. 2016-12-26 10:16:29.977 Access granted
. 2016-12-26 10:16:29.977 Opening session as main channel
. 2016-12-26 10:16:29.977 Opened main channel
. 2016-12-26 10:16:30.061 Started a shell/command
. 2016-12-26 10:16:30.092 --------------------------------------------------------------------------
. 2016-12-26 10:16:30.092 Using SFTP protocol.
. 2016-12-26 10:16:30.092 Doing startup conversation with host.
> 2016-12-26 10:16:30.154 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2016-12-26 10:16:30.162 Type: SSH_FXP_VERSION, Size: 399, Number: -1
. 2016-12-26 10:16:30.162 SFTP version 6 negotiated.
. 2016-12-26 10:16:30.162 Server requests EOL sequence "\r\n".
. 2016-12-26 10:16:30.162 Server support information (supported2):
. 2016-12-26 10:16:30.162   Attribute mask: 8000FFFF, Attribute bits: FFF, Open flags: FF9
. 2016-12-26 10:16:30.162   Access mask: 1F01FF, Open block vector: FFFF, Block vector: FFFF, Max read size: 0
. 2016-12-26 10:16:30.162   Attribute extensions (0)
. 2016-12-26 10:16:30.162   Extensions (13)
. 2016-12-26 10:16:30.162     newline
. 2016-12-26 10:16:30.162     newline@vandyke.com
. 2016-12-26 10:16:30.162     version-select
. 2016-12-26 10:16:30.162     filename-translation-control
. 2016-12-26 10:16:30.162     text-seek
. 2016-12-26 10:16:30.162     vendor-id
. 2016-12-26 10:16:30.162     check-file
. 2016-12-26 10:16:30.162     space-available
. 2016-12-26 10:16:30.162     home-directory
. 2016-12-26 10:16:30.162     copy-file
. 2016-12-26 10:16:30.162     copy-data
. 2016-12-26 10:16:30.162     get-temp-folder
. 2016-12-26 10:16:30.162     make-temp-folder
. 2016-12-26 10:16:30.162 SFTP versions supported by the server: 1,2,3,4,5,6
. 2016-12-26 10:16:30.162 Server software: Syncplify_Me_Server 3.1 (0) by Syncplify, Inc.
> 2016-12-26 10:16:30.162 Type: SSH_FXP_EXTENDED, Size: 63, Number: 200
< 2016-12-26 10:16:30.162 Type: SSH_FXP_STATUS, Size: 21, Number: 200
. 2016-12-26 10:16:30.162 We will use UTF-8 strings as it is mandatory with SFTP version 4 and newer
. 2016-12-26 10:16:30.162 Changing directory to "/hmsgambia".
. 2016-12-26 10:16:30.162 Getting real path for '/hmsgambia'
> 2016-12-26 10:16:30.162 Type: SSH_FXP_REALPATH, Size: 20, Number: 272
< 2016-12-26 10:16:30.177 Type: SSH_FXP_NAME, Size: 102, Number: 272
. 2016-12-26 10:16:30.177 Real path is '/hmsgambia'
. 2016-12-26 10:16:30.177 Trying to open directory "/hmsgambia".
> 2016-12-26 10:16:30.177 Type: SSH_FXP_LSTAT, Size: 23, Number: 519
< 2016-12-26 10:16:30.177 Type: SSH_FXP_ATTRS, Size: 84, Number: 519
. 2016-12-26 10:16:30.177 Getting current directory name.
. 2016-12-26 10:16:30.376 Listing directory "/hmsgambia".
> 2016-12-26 10:16:30.376 Type: SSH_FXP_OPENDIR, Size: 19, Number: 779
< 2016-12-26 10:16:30.376 Type: SSH_FXP_HANDLE, Size: 13, Number: 779
> 2016-12-26 10:16:30.376 Type: SSH_FXP_READDIR, Size: 13, Number: 1036
< 2016-12-26 10:16:30.392 Type: SSH_FXP_NAME, Size: 1056, Number: 1036
> 2016-12-26 10:16:30.392 Type: SSH_FXP_READDIR, Size: 13, Number: 1292
> 2016-12-26 10:16:30.427 Type: SSH_FXP_CLOSE, Size: 13, Number: 1540
. 2016-12-26 10:16:30.427 ..;D;0;2016-12-26T07:39:20.000Z;3;"user" [0];"group" [0];r--r--r--;0
. 2016-12-26 10:16:30.427 about.htm;-;8399;2016-12-24T17:34:00.000Z;3;"user" [0];"group" [0];rw-rw-rw-;1
. 2016-12-26 10:16:30.427 common;D;0;2016-12-26T05:44:36.000Z;3;"user" [0];"group" [0];r--r--r--;0
. 2016-12-26 10:16:30.427 contact.htm;-;6551;2016-12-24T17:34:00.000Z;3;"user" [0];"group" [0];rw-rw-rw-;1
. 2016-12-26 10:16:30.427 css;D;0;2016-12-26T06:05:18.000Z;3;"user" [0];"group" [0];r--r--r--;0
. 2016-12-26 10:16:30.428 favicon.ico;-;370070;2016-12-24T19:28:02.000Z;3;"user" [0];"group" [0];rw-rw-rw-;1
. 2016-12-26 10:16:30.428 images;D;0;2016-12-24T19:46:47.000Z;3;"user" [0];"group" [0];r--r--r--;0
. 2016-12-26 10:16:30.428 index.htm;-;6370;2016-12-26T06:57:46.000Z;3;"user" [0];"group" [0];rw-rw-rw-;1
. 2016-12-26 10:16:30.428 js;D;0;2016-12-24T19:17:03.000Z;3;"user" [0];"group" [0];r--r--r--;0
. 2016-12-26 10:16:30.428 preview.htm;-;7050;2016-12-24T17:34:00.000Z;3;"user" [0];"group" [0];rw-rw-rw-;1
. 2016-12-26 10:16:30.428 test.txt;-;33;2016-12-26T07:44:37.000Z;3;"user" [0];"group" [0];rw-rw-rw-;1
. 2016-12-26 10:16:30.528 Startup conversation with host finished.
. 2016-12-26 10:18:30.531 Server unexpectedly closed network connection
* 2016-12-26 10:18:30.533 (ESshFatal) Server unexpectedly closed network connection.
. 2016-12-26 10:18:39.829 Looking up host "brisray.com" for SSH connection
. 2016-12-26 10:18:39.831 Connecting to 192.168.0.2 port 22
. 2016-12-26 10:18:39.835 We claim version: SSH-2.0-WinSCP_release_5.9.3
. 2016-12-26 10:18:39.886 Server version: SSH-2.0-Syncplify_Me_Server
. 2016-12-26 10:18:39.886 We believe remote version has SSH-2 channel request bug
. 2016-12-26 10:18:39.886 Using SSH protocol version 2
. 2016-12-26 10:18:39.886 Have a known host key of type rsa2
. 2016-12-26 10:18:39.886 Doing Diffie-Hellman group exchange
. 2016-12-26 10:18:39.967 Doing Diffie-Hellman key exchange with hash SHA-1
. 2016-12-26 10:18:40.203 Host key fingerprint is:
. 2016-12-26 10:18:40.203 ssh-rsa 1024 4e:c0:0c:af:be:a8:9f:46:4a:11:ca:ea:78:35:77:25
. 2016-12-26 10:18:40.203 Verifying host key rsa2 0x10001,0xb3a3537f32e14130 903a0b9fa79d7d95 fd8dbce311635eee 61003131a6c5c826 142f549b1f6d5c57 57ef5b71a6ccc824 d1386eaf64c02699 9062d0c7a17c26a1 cd7c1e8a734ff9e5 20746360e7880703 482dcace0a2f1e07 3f412d603bd2e81b be9b1b7c7cf6d262 17ae49aad16444eb 703ca212123c4350 cfc85a493fbeffe1  with fingerprint ssh-rsa 1024 4e:c0:0c:af:be:a8:9f:46:4a:11:ca:ea:78:35:77:25
. 2016-12-26 10:18:40.222 Host key matches cached key
. 2016-12-26 10:18:40.222 Initialised AES-256 SDCTR client->server encryption
. 2016-12-26 10:18:40.222 Initialised HMAC-SHA1 client->server MAC algorithm
. 2016-12-26 10:18:40.225 Initialised AES-256 SDCTR server->client encryption
. 2016-12-26 10:18:40.225 Initialised HMAC-SHA1 server->client MAC algorithm
! 2016-12-26 10:18:40.226 Using username "brisray".
. 2016-12-26 10:18:40.295 Server offered these authentication methods: password,publickey
. 2016-12-26 10:18:40.295 Prompt (password, "SSH password", <no instructions>, "&Password: ")
. 2016-12-26 10:19:25.160 Sent password
. 2016-12-26 10:19:26.638 Access granted
. 2016-12-26 10:19:26.638 Opening session as main channel
. 2016-12-26 10:19:26.640 Opened main channel
. 2016-12-26 10:19:26.715 Started a shell/command
. 2016-12-26 10:19:26.757 Doing startup conversation with host.
> 2016-12-26 10:19:26.819 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2016-12-26 10:19:26.830 Type: SSH_FXP_VERSION, Size: 399, Number: -1
. 2016-12-26 10:19:26.830 SFTP version 6 negotiated.
. 2016-12-26 10:19:26.830 Server requests EOL sequence "\r\n".
. 2016-12-26 10:19:26.831 Server support information (supported2):
. 2016-12-26 10:19:26.831   Attribute mask: 8000FFFF, Attribute bits: FFF, Open flags: FF9
. 2016-12-26 10:19:26.831   Access mask: 1F01FF, Open block vector: FFFF, Block vector: FFFF, Max read size: 0
. 2016-12-26 10:19:26.831   Attribute extensions (0)
. 2016-12-26 10:19:26.831   Extensions (13)
. 2016-12-26 10:19:26.831     newline
. 2016-12-26 10:19:26.831     newline@vandyke.com
. 2016-12-26 10:19:26.831     version-select
. 2016-12-26 10:19:26.831     filename-translation-control
. 2016-12-26 10:19:26.831     text-seek
. 2016-12-26 10:19:26.831     vendor-id
. 2016-12-26 10:19:26.831     check-file
. 2016-12-26 10:19:26.831     space-available
. 2016-12-26 10:19:26.831     home-directory
. 2016-12-26 10:19:26.831     copy-file
. 2016-12-26 10:19:26.831     copy-data
. 2016-12-26 10:19:26.831     get-temp-folder
. 2016-12-26 10:19:26.831     make-temp-folder
. 2016-12-26 10:19:26.831 SFTP versions supported by the server: 1,2,3,4,5,6
. 2016-12-26 10:19:26.831 Server software: Syncplify_Me_Server 3.1 (0) by Syncplify, Inc.
> 2016-12-26 10:19:26.831 Type: SSH_FXP_EXTENDED, Size: 63, Number: 1992
< 2016-12-26 10:19:26.833 Type: SSH_FXP_STATUS, Size: 21, Number: 1992
. 2016-12-26 10:19:26.833 We will use UTF-8 strings as it is mandatory with SFTP version 4 and newer
. 2016-12-26 10:19:26.833 Changing directory to "/hmsgambia".
. 2016-12-26 10:19:26.833 Getting real path for '/hmsgambia'
> 2016-12-26 10:19:26.833 Type: SSH_FXP_REALPATH, Size: 20, Number: 2064
< 2016-12-26 10:19:26.836 Type: SSH_FXP_NAME, Size: 102, Number: 2064
. 2016-12-26 10:19:26.836 Real path is '/hmsgambia'
. 2016-12-26 10:19:26.836 Trying to open directory "/hmsgambia".
> 2016-12-26 10:19:26.836 Type: SSH_FXP_LSTAT, Size: 23, Number: 2311
< 2016-12-26 10:19:26.839 Type: SSH_FXP_ATTRS, Size: 84, Number: 2311
. 2016-12-26 10:19:26.839 Getting current directory name.
. 2016-12-26 10:19:27.035 Directory content loaded from cache.
. 2016-12-26 10:19:27.095 Cached directory not reloaded.
. 2016-12-26 10:19:27.211 Listing directory "/hmsgambia".
> 2016-12-26 10:19:27.211 Type: SSH_FXP_OPENDIR, Size: 19, Number: 2571
< 2016-12-26 10:19:27.231 Type: SSH_FXP_HANDLE, Size: 13, Number: 2571
> 2016-12-26 10:19:27.231 Type: SSH_FXP_READDIR, Size: 13, Number: 2828
< 2016-12-26 10:19:27.238 Type: SSH_FXP_NAME, Size: 1056, Number: 2828
> 2016-12-26 10:19:27.238 Type: SSH_FXP_READDIR, Size: 13, Number: 3084
> 2016-12-26 10:19:27.261 Type: SSH_FXP_CLOSE, Size: 13, Number: 3332
. 2016-12-26 10:19:27.262 ..;D;0;2016-12-26T07:39:20.000Z;3;"user" [0];"group" [0];r--r--r--;0
. 2016-12-26 10:19:27.262 about.htm;-;8399;2016-12-24T17:34:00.000Z;3;"user" [0];"group" [0];rw-rw-rw-;1
. 2016-12-26 10:19:27.262 common;D;0;2016-12-26T05:44:36.000Z;3;"user" [0];"group" [0];r--r--r--;0
. 2016-12-26 10:19:27.262 contact.htm;-;6551;2016-12-24T17:34:00.000Z;3;"user" [0];"group" [0];rw-rw-rw-;1
. 2016-12-26 10:19:27.262 css;D;0;2016-12-26T06:05:18.000Z;3;"user" [0];"group" [0];r--r--r--;0
. 2016-12-26 10:19:27.262 favicon.ico;-;370070;2016-12-24T19:28:02.000Z;3;"user" [0];"group" [0];rw-rw-rw-;1
. 2016-12-26 10:19:27.262 images;D;0;2016-12-24T19:46:47.000Z;3;"user" [0];"group" [0];r--r--r--;0
. 2016-12-26 10:19:27.262 index.htm;-;6370;2016-12-26T06:57:46.000Z;3;"user" [0];"group" [0];rw-rw-rw-;1
. 2016-12-26 10:19:27.262 js;D;0;2016-12-24T19:17:03.000Z;3;"user" [0];"group" [0];r--r--r--;0
. 2016-12-26 10:19:27.263 preview.htm;-;7050;2016-12-24T17:34:00.000Z;3;"user" [0];"group" [0];rw-rw-rw-;1
. 2016-12-26 10:19:27.263 test.txt;-;33;2016-12-26T07:44:37.000Z;3;"user" [0];"group" [0];rw-rw-rw-;1
. 2016-12-26 10:19:27.395 Startup conversation with host finished.
. 2016-12-26 10:21:27.609 Server unexpectedly closed network connection
* 2016-12-26 10:21:27.611 (ESshFatal) Server unexpectedly closed network connection.
. 2016-12-26 10:21:36.873 Looking up host "brisray.com" for SSH connection
. 2016-12-26 10:21:36.873 Connecting to 192.168.0.2 port 22
. 2016-12-26 10:21:36.873 We claim version: SSH-2.0-WinSCP_release_5.9.3
. 2016-12-26 10:21:36.938 Server version: SSH-2.0-Syncplify_Me_Server
. 2016-12-26 10:21:36.938 We believe remote version has SSH-2 channel request bug
. 2016-12-26 10:21:36.939 Using SSH protocol version 2
. 2016-12-26 10:21:36.941 Have a known host key of type rsa2
. 2016-12-26 10:21:36.942 Doing Diffie-Hellman group exchange
. 2016-12-26 10:21:37.014 Doing Diffie-Hellman key exchange with hash SHA-1
. 2016-12-26 10:21:37.256 Host key fingerprint is:
. 2016-12-26 10:21:37.256 ssh-rsa 1024 4e:c0:0c:af:be:a8:9f:46:4a:11:ca:ea:78:35:77:25
. 2016-12-26 10:21:37.256 Verifying host key rsa2 0x10001,0xb3a3537f32e14130 903a0b9fa79d7d95 fd8dbce311635eee 61003131a6c5c826 142f549b1f6d5c57 57ef5b71a6ccc824 d1386eaf64c02699 9062d0c7a17c26a1 cd7c1e8a734ff9e5 20746360e7880703 482dcace0a2f1e07 3f412d603bd2e81b be9b1b7c7cf6d262 17ae49aad16444eb 703ca212123c4350 cfc85a493fbeffe1  with fingerprint ssh-rsa 1024 4e:c0:0c:af:be:a8:9f:46:4a:11:ca:ea:78:35:77:25
. 2016-12-26 10:21:37.287 Host key matches cached key
. 2016-12-26 10:21:37.287 Initialised AES-256 SDCTR client->server encryption
. 2016-12-26 10:21:37.287 Initialised HMAC-SHA1 client->server MAC algorithm
. 2016-12-26 10:21:37.287 Initialised AES-256 SDCTR server->client encryption
. 2016-12-26 10:21:37.287 Initialised HMAC-SHA1 server->client MAC algorithm
! 2016-12-26 10:21:37.287 Using username "brisray".
. 2016-12-26 10:21:37.357 Server offered these authentication methods: password,publickey
. 2016-12-26 10:21:37.357 Prompt (password, "SSH password", <no instructions>, "&Password: ")

Reply with quote

Advertisement

Makc666
Joined:
Posts:
50
Location:
MSK-RU

I don't in this log any attempt to transfer file to remote host.

If it helps, I do not get the "overwrite file?" dialog box despite whatever settings that are chosen in the Environment options.

Try to create a new site entry for this server with all default setting and transfer file from that new entry.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,440
Location:
Prague, Czechia

Re: Problem uploading shorter files

Please attach a full session log file on level Debug 2 showing upload of a single shorter file.

Reply with quote

brisray
Joined:
Posts:
7
Location:
Terre Haute, Indiana

This is with a fresh install of WinSCP. The original login details were deleted and a new one made. Apart from turning on logging, all the options are at their default.

During the transfer there is no dialog warning I am about to overwrite a file and what appears to be happening is that WinSCP is taking the contents of a file and putting it inside the current file. If the new file is shorter than the original then the remains of the original file are being left where they are.

The server is mine and I have full control of it. It's running WampServer64 on Windows 10. The test file is at <invalid hyperlink removed by admin>

This is one word shorter than the previous file I uploaded and instead of overwriting the file WinSCP has inserted the shorter text and left the "html>" text at the end.

https://hmsgambia.org/ is a virtual host and WinSCP exhibits the same behavior on the other sites on the server.

Attached is the Debug Level 2 log.

Reply with quote

brisray
Joined:
Posts:
7
Location:
Terre Haute, Indiana

I think this is something to do with the way WinSCP is interacting with my server. I just uploaded the file to a server I use at work and the transfer is behaving properly complete with the overwriting file warning dialog.

I thought the only difference would be how Linux and Windows handles line feeds.

I use Syncplify.me Server on the server so perhaps I should be looking at that?

Reply with quote

Advertisement

brisray
Joined:
Posts:
7
Location:
Terre Haute, Indiana

I just reinstalled Syncplify 3 on the server and transferred the file again. Still no file overwrite dialog and the same behavior.

I also retried using FileZilla. A file overwrite dialog opens and the file transfers properly.

EDIT: I now think that Syncplify and WinSCP have a relatively minor compatibility issue and have also contacted them to see if they know of any issues.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,440
Location:
Prague, Czechia

Thanks for the log.

WinSCP correctly sends the SSH_FXP_OPEN request with the SSH_FXF_CREATE_NEW flag.

That request should fail, if the file already exists – WinSCP will then show overwrite confirmation dialog.
Instead your server accepts the request and seems not to clear file contents.
That's probably a bug.

This is SFTP version 6. FileZilla supports SFTP version 3 only. The server may have the bug in versions 5/6 only (which use a different format of the SSH_FXP_OPEN request). Try forcing WinSCP to use version 3.
https://winscp.net/eng/docs/ui_login_sftp

Or, try to upgrade your server. Their latest version is 4.0, while you are using 3.1. The problem may have been solved already. If the bug is present even in the latest version, I can get in touch with them to resolve the problem.

Reply with quote

brisray
Joined:
Posts:
7
Location:
Terre Haute, Indiana

Thanks for your help Martin.

I have installed version 4 of Syncplify and the problem persisted. I then changed the SFTP version in WinSCP. This is what I found:

Version 5 & 6 – file not overwriting properly, no overwriting file dialog
Version 3 & 4 – file IS overwriting properly but still no overwriting file dialog
Version 1 & 2 – cannot connect to the server (not really surprising)

V4 of the Syncplify server interface is a lot different from v3, but I believe it is installed and set up properly.

According to Fjodr from Syncplify there was a bug in earlier sub-versions of v3 of the server that produced effects similar to what I am experiencing but these should have been addressed in v4.

Ray

Reply with quote

brisray
Joined:
Posts:
7
Location:
Terre Haute, Indiana

Syncplicity emailed me back:

"I tried with our Syncplify.me Server! V4 using SFTPv6, and it worked flawlessly. The file was replaced (even when the file being uploaded was smaller than the one already on the server)."

I can't get it to work properly unless I change the SFTP version to 4 in WinSCP and even then I don't get the overwrite warning dialog.

I turned off Windows Firewall on both machines (the one I'm using and the server) just to make sure there was nothing screwy going on with that. It didn't change anything, not that I really expected it to.

Ray

Reply with quote

Advertisement

martin
Site Admin
martin avatar

I can hardly help with debugging their SFTP server.

All I can do is to compare your and their logs of WinSCP, to see, if there's some difference on WinSCP side.

Reply with quote

brisray
Joined:
Posts:
7
Location:
Terre Haute, Indiana

Solved! Syncplify and WinSCP

I really wasn't expecting you to debug their software, just passing on the information they were giving me.

Syncplify emailed me a little earlier saying that Syncplify.me Server! v4.1.2 was released today - <invalid hyperlink removed by admin>

I've installed that, and the file overwrite and overwrite confirmation in WinSCP SFTPv6 is now working as it should.

Ray

Reply with quote

Advertisement

You can post new topics in this forum