Problem similar to https://winscp.net/forum/viewtopic.php?t=27529

Advertisement

Advertisement

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

Re: Problem similar to https://winscp.net/forum/viewtopic.php?t=27529

Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, enable logging, log in to your server and do the operation and only the operation that causes the error. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Reply with quote

melvinpmathew@gmail.com
Joined:
Posts:
6

Info

On more investigation found that command line WinSCP is causing the issue - triggers from the WinSCP C# api called winscp.exe. This happens also via regular command line on windows.

Attached the logs from that.

This is the command line command used :
winscp.com /log="C:\temp\WinSCP.log" /command "open sftp://user:pass@10.27.119.193/" "put C:\\temp\\Baylor_Miraca_Genetics_Laboratories_LLC_45D0660090_TEST.csv /home/bgdevtest/Texas/" "exit"
Though - using WinSCP GUI works fine!

I am missing something.
  • WinSCPSession_20211028.log (149.42 KB, Private file)
Description: Logs
Description: Log from Winscp api
Description: Log from command prompt on windows

Reply with quote

Advertisement

melvinpmathew@gmail.com
Joined:
Posts:
6

Successfull log via GUI

Yes, that correct. Able to submit files via GUI. Attached logs. But using the C# WinSCP API, fails almost all the time with a "Network error."
  • winscp.log (12.81 KB, Private file)
Description: Successfull transfer - WINSCP GUI

Reply with quote

melvinpmathew@gmail.com
Joined:
Posts:
6

These are the logs from the api - during the same time frame, its throwing errors and not completing the upload.
  • WinSCPSession_20211116.log (35.04 KB, Private file)
  • WinSCPDebug_2021111608371347111.log (67.8 KB, Private file)

Reply with quote

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

Re: Successfull log via GUI

melvinpmathew@gmail.com wrote:

Yes, that correct. Able to submit files via GUI. Attached logs. But using the C# WinSCP API, fails almost all the time with a "Network error."
Full log file please.

Need one answer: Is it possible to generate a config file from WinSCP GUI? I can maybe use that for the API and check.
https://winscp.net/eng/docs/ui_generateurl#code

Reply with quote

Advertisement

You can post new topics in this forum