Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Only Certain/Specific File Types are Transferring

Please post complete log both from GUI and script showing successful and failed transfer of the same file.
codeman

Only Certain/Specific File Types are Transferring

Hi, everyone. Has anyone come across an issue with transferring certain file types?

I'm using WinSCP 5.15.9, using SFTP binary transfer method. File types like .txt or .log transfer without problems right away when using a simple script file.

However, when it comes to transferring encrypted file types like .gpg, then it looks as if the transfer starts & immediately hangs.

This is what I'm using for a script:
open sftp://XXXXX@XXX.XXX.XXX.XXX/  -timeout=35 -rawsettings Compression=1 AddressFamily=1 SendBuf=0 SshSimple=0 SFTPMaxVersion=3 -hostkey="ssh-rsa 2048 XxXxX=" -privatekey="C:\Users\xxx\xxx\Testing\xxx.ppk" -passphrase="XxxX"
 
cd INBOX
put C:\Users\xxx\xxx\Testing\XXX.edi.gpg

Here's part of the log that gets generated:
@sessionlog@
. 2022-01-24 14:55:49.436 **Host is not communicating for 15 seconds.
. 2022-01-24 14:55:49.436
. 2022-01-24 14:55:49.436 Wait for another 15 seconds?** ()
< 2022-01-24 14:55:49.436 Script: Host is not communicating for more than 15 seconds.
< 2022-01-24 14:55:49.436 Still waiting...
< 2022-01-24 14:55:49.436 Note: If the problem repeats, try turning off 'Optimize connection buffer size'.
< 2022-01-24 14:55:49.436 Warning: Aborting this operation will close connection!
. 2022-01-24 14:55:52.285 Detected network event
. 2022-01-24 14:55:52.285 Data has arrived, closing query to user.
. 2022-01-24 14:55:52.285 Answer: OK
. 2022-01-24 14:55:52.285 Network error: Software caused connection abort
. 2022-01-24 14:55:52.285 Fatal error while disposing the SFTP queue.
. 2022-01-24 14:55:52.285 Transfer progress: Transferred: 32,736, Left: 0:00:00, CPS: 0/s
. 2022-01-24 14:55:52.285 Connection was lost, asking what to do.

If I use the WinSCP graphical user interface, then it seems to work without problems. I'd appreciate some input.

Are there specific parameters or switches I should be using/something I'm utterly missing? Thanks.