WinSCP Scripting with No Resume
As you can see from the log below I'm having issues with sending a file to one particular ftp site.
Just to give some background I'm using your fine sftp program to send files to a number of dftp sites. The same code works fine for all customers apart for one, where I get the 'turn off transfer resume support' error message. This leads me to understand we have no file rename permissions on this particular ftp server. So as the error message states I need to disable transfer resume support.
I do this with the ini file
C:\Program Files\WinSCP>winscp.com /ini="c:\program files\winscp\WinSCP.ini" /log="c:\program files\winscp\log.log"
But I still get this error transfering the file
can anyone help?
log file:
ini file:
Just to give some background I'm using your fine sftp program to send files to a number of dftp sites. The same code works fine for all customers apart for one, where I get the 'turn off transfer resume support' error message. This leads me to understand we have no file rename permissions on this particular ftp server. So as the error message states I need to disable transfer resume support.
I do this with the ini file
C:\Program Files\WinSCP>winscp.com /ini="c:\program files\winscp\WinSCP.ini" /log="c:\program files\winscp\log.log"
But I still get this error transfering the file
can anyone help?
log file:
. 2009-02-23 15:34:47.756 -------------------------------------------------------------------------- . 2009-02-23 15:34:47.756 WinSCP Version 4.1.8 (Build 415) (OS 6.0.6001 Service Pack 1) . 2009-02-23 15:34:47.756 Login time: 23 February 2009 15:34:47 . 2009-02-23 15:34:47.756 -------------------------------------------------------------------------- . 2009-02-23 15:34:47.756 Session name: W839014@195.11.199.76 . 2009-02-23 15:34:47.756 Host name: 195.11.199.76 (Port: 22) . 2009-02-23 15:34:47.756 User name: W839014 (Password: Yes, Key file: No) . 2009-02-23 15:34:47.756 Tunnel: No . 2009-02-23 15:34:47.756 Transfer Protocol: SFTP . 2009-02-23 15:34:47.756 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec . 2009-02-23 15:34:47.756 Proxy: none . 2009-02-23 15:34:47.756 SSH protocol version: 2; Compression: No . 2009-02-23 15:34:47.756 Bypass authentication: No . 2009-02-23 15:34:47.756 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No . 2009-02-23 15:34:47.756 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No . 2009-02-23 15:34:47.756 SSH Bugs: -,-,-,-,-,-,-,- . 2009-02-23 15:34:47.756 SFTP Bugs: -,- . 2009-02-23 15:34:47.756 Return code variable: Autodetect; Lookup user groups: Yes . 2009-02-23 15:34:47.756 Shell: default, EOL: 0 . 2009-02-23 15:34:47.756 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes . 2009-02-23 15:34:47.756 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No . 2009-02-23 15:34:47.756 Local directory: default, Remote directory: home, Update: No, Cache: Yes . 2009-02-23 15:34:47.756 Cache directory changes: Yes, Permanent: Yes . 2009-02-23 15:34:47.756 DST mode: 1 . 2009-02-23 15:34:47.756 -------------------------------------------------------------------------- . 2009-02-23 15:34:47.756 Looking up host "195.11.199.76" . 2009-02-23 15:34:47.756 Connecting to 195.11.199.76 port 22 . 2009-02-23 15:34:47.975 Server version: SSH-2.0-1.36 sshlib: GlobalScape . 2009-02-23 15:34:47.975 We claim version: SSH-2.0-WinSCP_release_4.1.8 . 2009-02-23 15:34:47.975 SSPI: acquired credentials for: administrator@ADVANTIS.LOCAL . 2009-02-23 15:34:47.975 Cannot convert IP address to SPN: DNS is not trusted . 2009-02-23 15:34:47.975 GSSKEX disabled: The operation completed successfully. . 2009-02-23 15:34:47.975 Using SSH protocol version 2 . 2009-02-23 15:34:47.975 Using Diffie-Hellman with standard group "group1" . 2009-02-23 15:34:47.975 Doing Diffie-Hellman key exchange with hash SHA-1 . 2009-02-23 15:34:48.427 Host key fingerprint is: . 2009-02-23 15:34:48.427 ssh-dss 1024 65:ec:d8:10:2a:33:4c:08:56:61:7b:a7:30:b6:77:a8 . 2009-02-23 15:34:48.427 Initialised Blowfish-128 CBC client->server encryption . 2009-02-23 15:34:48.427 Initialised HMAC-SHA1 client->server MAC algorithm . 2009-02-23 15:34:48.427 Initialised Blowfish-128 CBC server->client encryption . 2009-02-23 15:34:48.427 Initialised HMAC-SHA1 server->client MAC algorithm ! 2009-02-23 15:34:48.786 Using username "W839014". . 2009-02-23 15:34:48.926 Prompt (6, SSH password, , &Password: ) . 2009-02-23 15:34:48.926 Using stored password. . 2009-02-23 15:34:48.942 Sent password . 2009-02-23 15:34:48.989 Access granted . 2009-02-23 15:34:49.036 Opened channel for session . 2009-02-23 15:34:49.129 Started a shell/command . 2009-02-23 15:34:49.129 -------------------------------------------------------------------------- . 2009-02-23 15:34:49.129 Using SFTP protocol. . 2009-02-23 15:34:49.129 Doing startup conversation with host. > 2009-02-23 15:34:49.129 Type: SSH_FXP_INIT, Size: 5, Number: -1 < 2009-02-23 15:34:49.254 Type: SSH_FXP_VERSION, Size: 5, Number: -1 . 2009-02-23 15:34:49.254 SFTP version 3 negotiated. . 2009-02-23 15:34:49.254 We believe the server has signed timestamps bug . 2009-02-23 15:34:49.254 We will use UTF-8 strings for status messages only . 2009-02-23 15:34:49.254 Getting current directory name. . 2009-02-23 15:34:49.254 Getting real path for '.' > 2009-02-23 15:34:49.254 Type: SSH_FXP_REALPATH, Size: 10, Number: 16 < 2009-02-23 15:34:49.316 Type: SSH_FXP_NAME, Size: 23, Number: 16 . 2009-02-23 15:34:49.316 Real path is '/' . 2009-02-23 15:34:49.316 Startup conversation with host finished. . 2009-02-23 15:34:52.437 Copying 1 files/directories to remote directory "/" . 2009-02-23 15:34:52.437 PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 01; Resume: S (102400); CalcS: No; Mask: . 2009-02-23 15:34:52.437 TM: M; ClAr: No; CPS: 0; ExclM(No): . 2009-02-23 15:34:52.437 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml . 2009-02-23 15:34:52.437 File: "\\advserv01\backoffice\Trace Data\GB\trace20090219.xls" . 2009-02-23 15:34:52.468 Copying "\\advserv01\backoffice\Trace Data\GB\trace20090219.xls" to remote directory started. . 2009-02-23 15:34:52.468 Binary transfer mode selected. . 2009-02-23 15:34:52.468 Checking existence of file. > 2009-02-23 15:34:52.468 Type: SSH_FXP_LSTAT, Size: 27, Number: 263 < 2009-02-23 15:34:52.515 Type: SSH_FXP_STATUS, Size: 33, Number: 263 < 2009-02-23 15:34:52.515 Status/error code: 2 . 2009-02-23 15:34:52.515 Checking existence of partially transfered file. > 2009-02-23 15:34:52.515 Type: SSH_FXP_LSTAT, Size: 36, Number: 519 < 2009-02-23 15:34:52.577 Type: SSH_FXP_STATUS, Size: 33, Number: 519 < 2009-02-23 15:34:52.577 Status/error code: 2 . 2009-02-23 15:34:52.577 Opening remote file. > 2009-02-23 15:34:52.577 Type: SSH_FXP_OPEN, Size: 52, Number: 771 < 2009-02-23 15:34:52.842 Type: SSH_FXP_HANDLE, Size: 10, Number: 771 > 2009-02-23 15:34:52.842 Type: SSH_FXP_WRITE, Size: 4118, Number: 1286 . 2009-02-23 15:35:01.111 60 skipped SSH_FXP_WRITE, SSH_FXP_READ, SSH_FXP_DATA and SSH_FXP_STATUS packets. > 2009-02-23 15:35:01.111 Type: SSH_FXP_CLOSE, Size: 10, Number: 9476 < 2009-02-23 15:35:01.641 Type: SSH_FXP_STATUS, Size: 21, Number: 8710 < 2009-02-23 15:35:02.093 Type: SSH_FXP_STATUS, Size: 21, Number: 8966 < 2009-02-23 15:35:02.140 Type: SSH_FXP_STATUS, Size: 21, Number: 9222 < 2009-02-23 15:35:02.140 Type: SSH_FXP_STATUS, Size: 21, Number: 9476 < 2009-02-23 15:35:02.140 Status/error code: 0 > 2009-02-23 15:35:02.140 Type: SSH_FXP_RENAME, Size: 58, Number: 9746 < 2009-02-23 15:35:02.218 Type: SSH_FXP_STATUS, Size: 33, Number: 9746 < 2009-02-23 15:35:02.218 Status/error code: 2, Message: 9746, Server: File not found, Language: en * 2009-02-23 15:35:02.218 (ETerminal) No such file or directory. * 2009-02-23 15:35:02.218 Error code: 2 * 2009-02-23 15:35:02.218 Error message from server (en): File not found * 2009-02-23 15:35:02.218 Request code: 18 . 2009-02-23 15:35:02.218 Asking user: . 2009-02-23 15:35:02.218 Transfer was succesfully finished, but temporary transfer file 'trace20090219.xls.filepart' could not be renamed to target file name 'trace20090219.xls'. If the problem persists, you may try to turn off transfer resume support. ("No such file or directory. . 2009-02-23 15:35:02.218 Error code: 2 . 2009-02-23 15:35:02.218 Error message from server (en): File not found . 2009-02-23 15:35:02.218 Request code: 18") * 2009-02-23 15:35:04.090 (EScpSkipFile) Transfer was succesfully finished, but temporary transfer file 'trace20090219.xls.filepart' could not be renamed to target file name 'trace20090219.xls'. If the problem persists, you may try to turn off transfer resume support. * 2009-02-23 15:35:04.090 No such file or directory. * 2009-02-23 15:35:04.090 Error code: 2 * 2009-02-23 15:35:04.090 Error message from server (en): File not found * 2009-02-23 15:35:04.090 Request code: 18 . 2009-02-23 15:35:06.836 Deleting file "trace20090219.xls.filepart". > 2009-02-23 15:35:06.836 Type: SSH_FXP_REMOVE, Size: 36, Number: 9997 < 2009-02-23 15:35:06.914 Type: SSH_FXP_STATUS, Size: 21, Number: 9997 < 2009-02-23 15:35:06.914 Status/error code: 0 . 2009-02-23 15:35:10.346 Closing connection. . 2009-02-23 15:35:10.346 Sending special code: 12 . 2009-02-23 15:35:10.346 Sent EOF message
ini file:
[Configuration\CDCache] advantis@213.152.63.146=412F3D2F2F0D0A W839014@195.11.199.76=412F3D2F2F0D0A2F66726F6D636C693D2F2F0D0A [SshHostKeys] dss@22:213.152.63.146=0xc3335c10d24c0aa28c28a98477cbe3efce... dss@22:195.11.199.76=0xc1052551bce64a21923c3ea7e0c05b6e76b... [Configuration\Interface] RandomSeedFile=%25APPDATA%25%5Cwinscp.rnd PuttyRegistryStorageKey=Software%5CSimonTatham%5CPuTTY ConfirmOverwriting=1 ConfirmResume=1 AutoReadDirectoryAfterOp=1 SessionReopenAuto=5000 SessionReopenBackground=2000 TunnelLocalPortNumberLow=50000 TunnelLocalPortNumberHigh=50099 CacheDirectoryChangesMaxSize=100 ShowFtpWelcomeMessage=0 CopyParamDialogExpanded=0 ContinueOnError=0 ConfirmCommandSession=1 SynchronizeParams=66 SynchronizeOptions=5 SynchronizeModeAuto=-1 SynchronizeMode=0 MaxWatchDirectories=500 QueueTransfersLimit=2 QueueAutoPopup=1 QueueRememberPassword=0 PuttySession=WinSCP%20temporary%20session PuttyPath=%25PROGRAMFILES%25%5CPuTTY%5Cputty.exe PuttyPassword=0 TelnetForFtpInPutty=1 IgnoreCancelBeforeFinish=DFBC9A785634023F BeepOnFinish=0 BeepOnFinishAfter=176CC1166CC1363F SynchronizeBrowsing=0 KeepUpToDateChangeDelay=500 ChecksumAlg=md5 Interface=0 ShowAdvancedLoginOptions=0 CopyOnDoubleClick=2 CopyOnDoubleClickConfirmation=0 DDAllowMove=0 DDAllowMoveInit=0 DDTransferConfirmation=1 DDTemporaryDirectory= DDWarnLackOfTempSpace=1 DDWarnLackOfTempSpaceRatio=9A9999999999F13F DeleteToRecycleBin=1 DimmHiddenFiles=1 SelectDirectories=0 SelectMask=%2A.%2A ShowHiddenFiles=1 ShowInaccesibleDirectories=1 ConfirmTransferring=1 ConfirmDeleting=1 ConfirmRecycling=1 ConfirmClosingSession=1 ConfirmExitOnCompletion=1 AutoStartSession= UseLocationProfiles=0 LocaleSafe=1033 DDExtEnabled=1 DDExtTimeout=1000 DefaultDirIsHome=1 TemporaryDirectoryCleanup=1 ConfirmTemporaryDirectoryCleanup=1 PreservePanelState=1 Theme=OfficeXP PathInCaption=0 MinimizeToTray=0 BalloonNotifications=1 NotificationsTimeout=10 NotificationsStickTime=2 CopyParamAutoSelectNotice=1 SessionToolbarAutoShown=0 LockToolbars=0 AutoOpenInPutty=0 LastMonitor=0 [Configuration\Logging] Logging=0 LogFileName= LogFileAppend=1 LogWindowLines=100 LogProtocol=0 LogView=0 LogWindowOnStartup=1 LogWindowParams=-1;-1;500;400 [Configuration\Interface\CopyParam] AddXToDirectories=1 Masks=%2A.%2Ahtml;%20%2A.htm;%20%2A.txt;%20%2A.php;%20%2A.php3;%20%2A.cgi;%20%2A.c;%20%2A.cpp;%20%2A.h;%20%2A.pas;%20%2A.bas;%20%2A.tex;%20%2A.pl;%20.htaccess;%20%2A.xtml;%20%2A.css;%20%2A.cfg;%20%2A.ini;%20%2A.sh;%20%2A.xml FileNameCase=0 PreserveReadOnly=0 PreserveTime=1 PreserveRights=0 IgnorePermErrors=0 Text=rw-r--r-- TransferMode=2 ResumeSupport=1 ResumeThreshold=102400 ReplaceInvalidChars=1 LocalInvalidChars=/%5C:%2A%3F"<>| CalculateSize=1 ExcludeFileMask= NegativeExclude=0 ClearArchive=0 CPSLimit=0 Queue=0 QueueNoConfirmation=1 NewerOnly=0 CopyParamList=-1 [Configuration\Interface\NewDirectory] Valid=00 [Configuration\Interface\SynchronizeChecklist] WindowParams=0;-1;-1;600;450;0 ListParams=1;1|150,1;100,1;80,1;130,1;25,1;100,1;80,1;130,1|0;1;2;3;4;5;6;7 [Configuration\Interface\ConsoleWin] WindowSize=570,430 [Configuration\History\SpeedLimit] 0=Unlimited 1=1024 2=512 3=256 4=128 5=64 6=32 7=16 8=8 [Configuration\History\Mask] 0=%2A.%2Ahtml;%20%2A.htm;%20%2A.txt;%20%2A.php;%20%2A.php3;%20%2A.cgi;%20%2A.c;%20%2A.cpp;%20%2A.h;%20%2A.pas;%20%2A.bas;%20%2A.tex;%20%2A.pl;%20.htaccess;%20%2A.xtml;%20%2A.css;%20%2A.cfg;%20%2A.ini;%20%2A.sh;%20%2A.xml [Configuration\Interface\Editor] FontName=Courier%20New FontHeight=-12 FontStyle=0 FontCharset=1 WordWrap=0 FindTextA= ReplaceTextA= FindMatchCase=0 FindWholeWord=0 FindDown=1 TabSize=7 MaxEditors=500 EarlyClose=2 [Configuration\Interface\QueueView] Height=100 Layout=70,160,160,80,80,80 Show=1 LastHideShow=1 ToolBar=0 [Configuration\Interface\Updates] Period=7 LastCheck=0000000000000000 HaveResults=0 ShownResults=0 ConnectionType=1 ProxyHost= ProxyPort=8080 ForVersion=0 Version=0 Message= Critical=0 Release= Disabled=0 Url= UrlButton= [Configuration\Interface\Explorer] ToolbarsLayout=Queue_Visible=1,Queue_LastDock=QueueDock,... DirViewParams=0;1;0|150,1;70,1;101,1;79,1;62,1;55,1;20,0;150,0;125,0|0;1;8;2;3;4;5;6;7 LastLocalTargetDirectory=C:%5CUsers%5Cadministrator.advantis%5CDocuments StatusBar=1 WindowParams=-1;-1;600;400;0 ViewStyle=0 ShowFullAddress=1 DriveView=1 DriveViewWidth=180 [Configuration\Interface\Commander] ToolbarsLayout=Queue_Visible=1,Queue_LastDock=QueueDock,... CurrentPanel=0 LocalPanelWidth=000000000000E03F SwappedPanels=0 StatusBar=1 WindowParams=-1;-1;850;650;0 ExplorerStyleSelection=0 PreserveLocalDirectory=0 CompareByTime=1 CompareBySize=0 FullRowSelect=1 [Configuration\Interface\Commander\LocalPanel] DirViewParams=0;1;0|150,1;70,1;101,1;79,1;62,1;55,0|0;1;2;3;4;5 StatusBar=1 DriveView=0 DriveViewHeight=100 [Configuration\Interface\Commander\RemotePanel] DirViewParams=0;1;0|150,1;70,1;101,1;79,1;62,1;55,0;20,0;150,0;125,0|0;1;8;2;3;4;5;6;7 StatusBar=1 DriveView=0 DriveViewHeight=100 [Configuration\Interface\Editor\0] FileMask=%2A.%2A Editor=0 ExternalEditor= ExternalEditorText=1 MDIExternalEditor=0 DetectMDIExternalEditor=1 [Configuration\Interface\Editor\1] FileMask=%2A.%2A Editor=1 ExternalEditor=notepad.exe ExternalEditorText=1 MDIExternalEditor=0 DetectMDIExternalEditor=1 [Configuration\History\LocalTarget] 0=C:%5CUsers%5Cadministrator.advantis%5CDesktop%5C%2A.%2A 1=C:%5CUsers%5Cadministrator.advantis%5CDocuments%5C%2A.%2A