Can someone translate?

Advertisement

thefugitive
Joined:
Posts:
15

Can someone translate?

Can someone please help translate the components of the following log excerpt(s)?

2012-05-31 21:00:11.421 PrTime: No; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 01; Resume: S (102400); CalcS: No; Mask:


. 2012-05-31 21:00:31.247 Transfer was succesfully finished, but temporary transfer file '12M64_120531_EFT7423867.835.filepart' could not be renamed to target file name '12M64_120531_EFT7423867.835'. If the problem persists, you may try to turn off transfer resume support. ("No such file or directory.
. 2012-05-31 21:00:31.247 Error code: 2
. 2012-05-31 21:00:31.247 Error message from server (en): File not found
. 2012-05-31 21:00:31.247 Request code: 18")
* 2012-05-31 21:00:31.247 (EScpSkipFile) Transfer was succesfully finished, but temporary transfer file '12M64_120531_EFT7423867.835.filepart' could not be renamed to target file name '12M64_120531_EFT7423867.835'. If the problem persists, you may try to turn off transfer resume support.
* 2012-05-31 21:00:31.247 No such file or directory.
* 2012-05-31 21:00:31.247 Error code: 2
* 2012-05-31 21:00:31.247 Error message from server (en): File not found
* 2012-05-31 21:00:31.247 Request code: 18
. 2012-05-31 21:00:31.247 Script: Failed
. 2012-05-31 21:00:31.247 Closing connection.
. 2012-05-31 21:00:31.247 Sending special code: 12
. 2012-05-31 21:00:31.247 Sent EOF message

Reply with quote

Advertisement

thefugitive
Joined:
Posts:
15

Listed below is my WinSCP configuration and I believe I've turned off "Resume Transfer", but I am still receving the error. Any guidance would be greatly appreciated.

[Configuration\Interface]
RandomSeedFile=%25APPDATA%25%5Cwinscp.rnd
PuttyRegistryStorageKey=Software%5CSimonTatham%5CPuTTY
ConfirmOverwriting=1
ConfirmResume=0
AutoReadDirectoryAfterOp=1
SessionReopenAuto=30000
SessionReopenBackground=2000
SessionReopenTimeout=0
TunnelLocalPortNumberLow=50000
TunnelLocalPortNumberHigh=50099
CacheDirectoryChangesMaxSize=100
ShowFtpWelcomeMessage=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
SessionReopenAutoIdle=30000
Interface=0
ShowAdvancedLoginOptions=1
ConfirmExitOnCompletion=1
CopyOnDoubleClick=2
CopyOnDoubleClickConfirmation=0
DDAllowMove=0
DDAllowMoveInit=0
DDTransferConfirmation=1
DDTemporaryDirectory=
DDWarnLackOfTempSpace=1
DDWarnLackOfTempSpaceRatio=9A9999999999F13F
DeleteToRecycleBin=1
DimmHiddenFiles=1
RenameWholeName=0
SelectDirectories=0
SelectMask=%2A.%2A
ShowHiddenFiles=1
ShowInaccesibleDirectories=1
ConfirmTransferring=1
ConfirmDeleting=1
ConfirmRecycling=1
ConfirmClosingSession=1
AutoStartSession=
UseLocationProfiles=0
UseSharedBookmarks=0
LocaleSafe=1033
DDExtEnabled=1
DDExtTimeout=1000
DefaultDirIsHome=1
TemporaryDirectoryAppendSession=0
TemporaryDirectoryAppendPath=1
TemporaryDirectoryCleanup=1
ConfirmTemporaryDirectoryCleanup=0
PreservePanelState=1
Theme=OfficeXP
PathInCaption=1
MinimizeToTray=0
BalloonNotifications=0
NotificationsTimeout=10
NotificationsStickTime=2
CopyParamAutoSelectNotice=1
SessionToolbarAutoShown=0
LockToolbars=0
AutoOpenInPutty=0
LastMonitor=0
VersionHistory=403051463,stable

[Configuration\Logging]
Logging=0
LogFileName=
LogFileAppend=1
LogWindowLines=100
LogProtocol=0
LogActions=0
LogView=0
LogWindowOnStartup=1
LogWindowParams=-1;-1;500;400

[Configuration\Interface\CopyParam]
AddXToDirectories=1
Masks=%2A.%2Ahtml;%20%2A.htm;%20%2A...
FileNameCase=0
PreserveReadOnly=0
PreserveTime=1
PreserveRights=0
IgnorePermErrors=1
Text=rw-r--r--
TransferMode=2
ResumeSupport=2
ResumeThreshold=102400
ReplaceInvalidChars=1
LocalInvalidChars=/%5C:%2A%3F"<>|
CalculateSize=1
ExcludeFileMask=
NegativeExclude=0
ClearArchive=0
CPSLimit=0
Queue=0
QueueNoConfirmation=1
QueueIndividually=0
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\FindFile]
WindowParams=646,481
ListParams=3;1|125,1;181,1;80,1;122,1|0;1;2;3

[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%...

[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
SDIShellEditor=0
WindowParams=

[Configuration\Interface\QueueView]
Height=100
Layout=70,160,160,80,80,80
Show=1
LastHideShow=1
ToolBar=0

[Configuration\Interface\Updates]
Period=0
LastCheck=0000000000000000
HaveResults=0
ShownResults=0
BetaVersions=1
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_LastDoc...
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%5Cjpatel%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_LastDo...
CurrentPanel=0
LocalPanelWidth=000000000000E03F
SwappedPanels=0
StatusBar=1
WindowParams=-1;-1;850;650;0
ExplorerStyleSelection=2
PreserveLocalDirectory=0
CompareByTime=1
CompareBySize=0
FullRowSelect=1
TreeOnLeft=0

[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
DriveViewWidth=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
DriveViewWidth=100

[Configuration\Security]
UseMasterPassword=0
MasterPasswordVerifier=

[Configuration\Interface\Editor\0]
FileMask=%2A.%2A
Editor=0
ExternalEditor=
ExternalEditorText=1
SDIExternalEditor=0
DetectMDIExternalEditor=0

[Configuration\Interface\Editor\1]
FileMask=%2A.%2A
Editor=1
ExternalEditor=notepad.exe
ExternalEditorText=1
SDIExternalEditor=0
DetectMDIExternalEditor=0


> 2012-06-27 21:00:06.436 Script: lcd "\\NTS02\InsightCS\ERA\Files To Export"
< 2012-06-27 21:00:06.514 Script: \\NTS02\InsightCS\ERA\Files To Export
> 2012-06-27 21:00:06.514 Script: cd "/"
. 2012-06-27 21:00:06.514 Cached directory change via "/" to "/".
. 2012-06-27 21:00:06.514 Getting current directory name.
< 2012-06-27 21:00:06.514 Script: /
> 2012-06-27 21:00:06.514 Script: put -delete -nopreservetime -nopermissions *.835
. 2012-06-27 21:00:06.530 Copying 10 files/directories to remote directory "/"
. 2012-06-27 21:00:06.530 PrTime: No; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 01; Resume: S (102400); CalcS: No; Mask:
. 2012-06-27 21:00:06.530 TM: B; ClAr: No; CPS: 0; ExclM(No):
. 2012-06-27 21:00:06.530 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2012-06-27 21:00:06.530 File: "108368554_ERA_835_4010_20120619.835"
. 2012-06-27 21:00:06.530 Copying "108368554_ERA_835_4010_20120619.835" to remote directory started.
. 2012-06-27 21:00:06.530 Binary transfer mode selected.
. 2012-06-27 21:00:06.530 Opening remote file.
> 2012-06-27 21:00:06.530 Type: SSH_FXP_OPEN, Size: 61, Number: 259
< 2012-06-27 21:00:06.592 Type: SSH_FXP_HANDLE, Size: 10, Number: 259
> 2012-06-27 21:00:06.624 Type: SSH_FXP_WRITE, Size: 3553, Number: 774
> 2012-06-27 21:00:06.624 Type: SSH_FXP_CLOSE, Size: 10, Number: 1028
< 2012-06-27 21:00:07.171 Type: SSH_FXP_STATUS, Size: 21, Number: 774
< 2012-06-27 21:00:07.171 Type: SSH_FXP_STATUS, Size: 21, Number: 1028
< 2012-06-27 21:00:07.171 Status code: 0
. 2012-06-27 21:00:07.171 File: "108431845_ERA_835_4010_20120620.835"
. 2012-06-27 21:00:07.171 Copying "108431845_ERA_835_4010_20120620.835" to remote directory started.
. 2012-06-27 21:00:07.171 Binary transfer mode selected.
. 2012-06-27 21:00:07.171 Checking existence of file.
> 2012-06-27 21:00:07.171 Type: SSH_FXP_LSTAT, Size: 45, Number: 1287
< 2012-06-27 21:00:07.233 Type: SSH_FXP_STATUS, Size: 33, Number: 1287
< 2012-06-27 21:00:07.296 Status code: 2
. 2012-06-27 21:00:07.296 Checking existence of partially transfered file.
> 2012-06-27 21:00:07.296 Type: SSH_FXP_LSTAT, Size: 54, Number: 1543
< 2012-06-27 21:00:07.374 Type: SSH_FXP_STATUS, Size: 33, Number: 1543
< 2012-06-27 21:00:07.374 Status code: 2
. 2012-06-27 21:00:07.374 Opening remote file.
> 2012-06-27 21:00:07.374 Type: SSH_FXP_OPEN, Size: 70, Number: 1795
< 2012-06-27 21:00:07.483 Type: SSH_FXP_HANDLE, Size: 10, Number: 1795
> 2012-06-27 21:00:07.780 Type: SSH_FXP_WRITE, Size: 4118, Number: 2310
. 2012-06-27 21:00:21.421 87 skipped SSH_FXP_WRITE, SSH_FXP_READ, SSH_FXP_DATA and SSH_FXP_STATUS packets.
> 2012-06-27 21:00:21.421 Type: SSH_FXP_CLOSE, Size: 10, Number: 13828
< 2012-06-27 21:00:21.546 Type: SSH_FXP_STATUS, Size: 21, Number: 13318
< 2012-06-27 21:00:22.577 Type: SSH_FXP_STATUS, Size: 21, Number: 13574
< 2012-06-27 21:00:22.577 Type: SSH_FXP_STATUS, Size: 21, Number: 13828
< 2012-06-27 21:00:22.577 Status code: 0
> 2012-06-27 21:00:22.577 Type: SSH_FXP_RENAME, Size: 94, Number: 14098
< 2012-06-27 21:00:23.874 Type: SSH_FXP_STATUS, Size: 33, Number: 14098
< 2012-06-27 21:00:23.874 Status code: 2, Message: 14098, Server: File not found, Language: en
* 2012-06-27 21:00:23.890 (ETerminal) No such file or directory.
* 2012-06-27 21:00:23.890 Error code: 2
* 2012-06-27 21:00:23.890 Error message from server (en): File not found
* 2012-06-27 21:00:23.890 Request code: 18
. 2012-06-27 21:00:23.890 Asking user:
. 2012-06-27 21:00:23.890 Transfer was succesfully finished, but temporary transfer file '108431845_ERA_835_4010_20120620.835.filepart' could not be renamed to target file name '108431845_ERA_835_4010_20120620.835'. If the problem persists, you may try to turn off transfer resume support. ("No such file or directory.
. 2012-06-27 21:00:23.890 Error code: 2
. 2012-06-27 21:00:23.890 Error message from server (en): File not found
. 2012-06-27 21:00:23.890 Request code: 18")
* 2012-06-27 21:00:23.890 (EScpSkipFile) Transfer was succesfully finished, but temporary transfer file '108431845_ERA_835_4010_20120620.835.filepart' could not be renamed to target file name '108431845_ERA_835_4010_20120620.835'. If the problem persists, you may try to turn off transfer resume support.
* 2012-06-27 21:00:23.890 No such file or directory.
* 2012-06-27 21:00:23.890 Error code: 2
* 2012-06-27 21:00:23.890 Error message from server (en): File not found
* 2012-06-27 21:00:23.890 Request code: 18
. 2012-06-27 21:00:23.890 Script: Failed
. 2012-06-27 21:00:23.890 Closing connection.
. 2012-06-27 21:00:23.890 Sending special code: 12
. 2012-06-27 21:00:23.890 Sent EOF message

Reply with quote

martin
Site Admin
martin avatar

Yes, ResumeSupport=2, so it is turned off. Most likely you are actually not using the INI file for the script. Can you post a complete log file? Particularly its header? It shows where the configuration is read from. (Make sure you are using the latest version).

Reply with quote

thefugitive
Joined:
Posts:
15

Below you'll find the entire session log as well as my command line code and batch script.
I'm calling WinSCP via a scheduled task on a Win2K8 R2 server that was credentialed using a service account.

Also I am running WinSCP 4.3.5 because that was the version I was requested to use by a vendor, but am open to updating my version if it'll address my issue.

@echo on

C:
cd Program Files
cd WinSCP
winscp.com /script=XXXXXXX_835_SFTP.txt /log=XXXXXX_835_SFTP_LOG.txt

option batch abort

option confirm off

open sftp://XXXX:XXXXXX@XXXXX.XXXXXXX.com -hostkey="ssh-dss 1024 XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX"

option transfer binary

lcd "\\NTS02\InsightCS\ERA\Files To Export"

cd "/"

put -delete -nopreservetime -nopermissions *.835

close

exit



2012-06-27 21:00:01.108 --------------------------------------------------------------------------
. 2012-06-27 21:00:01.108 WinSCP Version 4.3.5 (Build 1463) (OS 6.0.6002 Service Pack 2)
. 2012-06-27 21:00:01.108 Configuration: HKEY_CURRENT_USER\Software\Martin Prikryl\WinSCP 2\
. 2012-06-27 21:00:01.108 Local account: TMMC_DOMAIN\spsadmin
. 2012-06-27 21:00:01.108 Login time: Wednesday, June 27, 2012 9:00:01 PM
. 2012-06-27 21:00:01.108 --------------------------------------------------------------------------
. 2012-06-27 21:00:01.108 Session name: XXXX@XXXX.XXXXXXXXX.com (Ad-Hoc session)
. 2012-06-27 21:00:01.108 Host name: XXXX.XXXXXX.com (Port: 22)
. 2012-06-27 21:00:01.108 User name: XXXX (Password: Yes, Key file: No)
. 2012-06-27 21:00:01.108 Tunnel: No
. 2012-06-27 21:00:01.108 Transfer Protocol: SFTP
. 2012-06-27 21:00:01.108 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2012-06-27 21:00:01.108 Proxy: none
. 2012-06-27 21:00:01.108 SSH protocol version: 2; Compression: No
. 2012-06-27 21:00:01.108 Bypass authentication: No
. 2012-06-27 21:00:01.108 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2012-06-27 21:00:01.108 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2012-06-27 21:00:01.108 SSH Bugs: -,-,-,-,-,-,-,-,-
. 2012-06-27 21:00:01.108 SFTP Bugs: -,-
. 2012-06-27 21:00:01.108 Return code variable: Autodetect; Lookup user groups: Yes
. 2012-06-27 21:00:01.108 Shell: default
. 2012-06-27 21:00:01.108 EOL: 0, UTF: 2
. 2012-06-27 21:00:01.108 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2012-06-27 21:00:01.108 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2012-06-27 21:00:01.108 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2012-06-27 21:00:01.108 Cache directory changes: Yes, Permanent: Yes
. 2012-06-27 21:00:01.108 DST mode: 1
. 2012-06-27 21:00:01.108 --------------------------------------------------------------------------
. 2012-06-27 21:00:01.108 Looking up host "XXXX.XXXXXX.com"
. 2012-06-27 21:00:01.202 Connecting to XXXX.XXX.XXX.XXX port 22
. 2012-06-27 21:00:02.045 Server version: SSH-2.0-1.36_sshlib GlobalSCAPE
. 2012-06-27 21:00:02.045 We believe remote version ignores SSH-2 maximum packet size
. 2012-06-27 21:00:02.045 We believe remote version has SSH-2 ignore bug
. 2012-06-27 21:00:02.045 Using SSH protocol version 2
. 2012-06-27 21:00:02.045 We claim version: SSH-2.0-WinSCP_release_4.3.5
. 2012-06-27 21:00:04.452 Doing Diffie-Hellman group exchange
. 2012-06-27 21:00:04.686 Doing Diffie-Hellman key exchange with hash SHA-1
. 2012-06-27 21:00:04.827 Host key fingerprint is:
. 2012-06-27 21:00:04.827 ssh-dss 1024 XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX
. 2012-06-27 21:00:04.827 Initialised AES-128 CBC client->server encryption
. 2012-06-27 21:00:04.827 Initialised HMAC-SHA1 client->server MAC algorithm
. 2012-06-27 21:00:04.827 Initialised AES-128 CBC server->client encryption
. 2012-06-27 21:00:04.827 Initialised HMAC-SHA1 server->client MAC algorithm
! 2012-06-27 21:00:05.108 Using username "XXXX".
. 2012-06-27 21:00:05.186 Prompt (7, SSH password, , &Password: )
. 2012-06-27 21:00:05.249 Using stored password.
. 2012-06-27 21:00:05.249 Sent password
. 2012-06-27 21:00:05.967 Access granted
. 2012-06-27 21:00:06.030 Opened channel for session
. 2012-06-27 21:00:06.311 Started a shell/command
. 2012-06-27 21:00:06.311 --------------------------------------------------------------------------
. 2012-06-27 21:00:06.311 Using SFTP protocol.
. 2012-06-27 21:00:06.311 Doing startup conversation with host.
> 2012-06-27 21:00:06.311 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2012-06-27 21:00:06.374 Type: SSH_FXP_VERSION, Size: 5, Number: -1
. 2012-06-27 21:00:06.374 SFTP version 3 negotiated.
. 2012-06-27 21:00:06.374 We believe the server has signed timestamps bug
. 2012-06-27 21:00:06.374 We will use UTF-8 strings for status messages only
. 2012-06-27 21:00:06.374 Getting current directory name.
. 2012-06-27 21:00:06.374 Getting real path for '.'
> 2012-06-27 21:00:06.374 Type: SSH_FXP_REALPATH, Size: 10, Number: 16
< 2012-06-27 21:00:06.436 Type: SSH_FXP_NAME, Size: 23, Number: 16
. 2012-06-27 21:00:06.436 Real path is '/'
. 2012-06-27 21:00:06.436 Startup conversation with host finished.
< 2012-06-27 21:00:06.436 Script: Active session: [1] XXXX@XXXX.XXXXXX.com
> 2012-06-27 21:00:06.436 Script: option transfer binary
< 2012-06-27 21:00:06.436 Script: transfer binary
> 2012-06-27 21:00:06.436 Script: lcd "\\NTS02\InsightCS\ERA\Files To Export"
< 2012-06-27 21:00:06.514 Script: \\NTS02\InsightCS\ERA\Files To Export
> 2012-06-27 21:00:06.514 Script: cd "/"
. 2012-06-27 21:00:06.514 Cached directory change via "/" to "/".
. 2012-06-27 21:00:06.514 Getting current directory name.
< 2012-06-27 21:00:06.514 Script: /
> 2012-06-27 21:00:06.514 Script: put -delete -nopreservetime -nopermissions *.835
. 2012-06-27 21:00:06.530 Copying 10 files/directories to remote directory "/"
. 2012-06-27 21:00:06.530 PrTime: No; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 01; Resume: S (102400); CalcS: No; Mask:
. 2012-06-27 21:00:06.530 TM: B; ClAr: No; CPS: 0; ExclM(No):
. 2012-06-27 21:00:06.530 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2012-06-27 21:00:06.530 File: "108368554_ERA_835_4010_20120619.835"
. 2012-06-27 21:00:06.530 Copying "108368554_ERA_835_4010_20120619.835" to remote directory started.
. 2012-06-27 21:00:06.530 Binary transfer mode selected.
. 2012-06-27 21:00:06.530 Opening remote file.
> 2012-06-27 21:00:06.530 Type: SSH_FXP_OPEN, Size: 61, Number: 259
< 2012-06-27 21:00:06.592 Type: SSH_FXP_HANDLE, Size: 10, Number: 259
> 2012-06-27 21:00:06.624 Type: SSH_FXP_WRITE, Size: 3553, Number: 774
> 2012-06-27 21:00:06.624 Type: SSH_FXP_CLOSE, Size: 10, Number: 1028
< 2012-06-27 21:00:07.171 Type: SSH_FXP_STATUS, Size: 21, Number: 774
< 2012-06-27 21:00:07.171 Type: SSH_FXP_STATUS, Size: 21, Number: 1028
< 2012-06-27 21:00:07.171 Status code: 0
. 2012-06-27 21:00:07.171 File: "108431845_ERA_835_4010_20120620.835"
. 2012-06-27 21:00:07.171 Copying "108431845_ERA_835_4010_20120620.835" to remote directory started.
. 2012-06-27 21:00:07.171 Binary transfer mode selected.
. 2012-06-27 21:00:07.171 Checking existence of file.
> 2012-06-27 21:00:07.171 Type: SSH_FXP_LSTAT, Size: 45, Number: 1287
< 2012-06-27 21:00:07.233 Type: SSH_FXP_STATUS, Size: 33, Number: 1287
< 2012-06-27 21:00:07.296 Status code: 2
. 2012-06-27 21:00:07.296 Checking existence of partially transfered file.
> 2012-06-27 21:00:07.296 Type: SSH_FXP_LSTAT, Size: 54, Number: 1543
< 2012-06-27 21:00:07.374 Type: SSH_FXP_STATUS, Size: 33, Number: 1543
< 2012-06-27 21:00:07.374 Status code: 2
. 2012-06-27 21:00:07.374 Opening remote file.
> 2012-06-27 21:00:07.374 Type: SSH_FXP_OPEN, Size: 70, Number: 1795
< 2012-06-27 21:00:07.483 Type: SSH_FXP_HANDLE, Size: 10, Number: 1795
> 2012-06-27 21:00:07.780 Type: SSH_FXP_WRITE, Size: 4118, Number: 2310
. 2012-06-27 21:00:21.421 87 skipped SSH_FXP_WRITE, SSH_FXP_READ, SSH_FXP_DATA and SSH_FXP_STATUS packets.
> 2012-06-27 21:00:21.421 Type: SSH_FXP_CLOSE, Size: 10, Number: 13828
< 2012-06-27 21:00:21.546 Type: SSH_FXP_STATUS, Size: 21, Number: 13318
< 2012-06-27 21:00:22.577 Type: SSH_FXP_STATUS, Size: 21, Number: 13574
< 2012-06-27 21:00:22.577 Type: SSH_FXP_STATUS, Size: 21, Number: 13828
< 2012-06-27 21:00:22.577 Status code: 0
> 2012-06-27 21:00:22.577 Type: SSH_FXP_RENAME, Size: 94, Number: 14098
< 2012-06-27 21:00:23.874 Type: SSH_FXP_STATUS, Size: 33, Number: 14098
< 2012-06-27 21:00:23.874 Status code: 2, Message: 14098, Server: File not found, Language: en
* 2012-06-27 21:00:23.890 (ETerminal) No such file or directory.
* 2012-06-27 21:00:23.890 Error code: 2
* 2012-06-27 21:00:23.890 Error message from server (en): File not found
* 2012-06-27 21:00:23.890 Request code: 18
. 2012-06-27 21:00:23.890 Asking user:
. 2012-06-27 21:00:23.890 Transfer was succesfully finished, but temporary transfer file '108431845_ERA_835_4010_20120620.835.filepart' could not be renamed to target file name '108431845_ERA_835_4010_20120620.835'. If the problem persists, you may try to turn off transfer resume support. ("No such file or directory.
. 2012-06-27 21:00:23.890 Error code: 2
. 2012-06-27 21:00:23.890 Error message from server (en): File not found
. 2012-06-27 21:00:23.890 Request code: 18")
* 2012-06-27 21:00:23.890 (EScpSkipFile) Transfer was succesfully finished, but temporary transfer file '108431845_ERA_835_4010_20120620.835.filepart' could not be renamed to target file name '108431845_ERA_835_4010_20120620.835'. If the problem persists, you may try to turn off transfer resume support.
* 2012-06-27 21:00:23.890 No such file or directory.
* 2012-06-27 21:00:23.890 Error code: 2
* 2012-06-27 21:00:23.890 Error message from server (en): File not found
* 2012-06-27 21:00:23.890 Request code: 18
. 2012-06-27 21:00:23.890 Script: Failed
. 2012-06-27 21:00:23.890 Closing connection.
. 2012-06-27 21:00:23.890 Sending special code: 12
. 2012-06-27 21:00:23.890 Sent EOF message

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

. 2012-06-27 21:00:01.108 Configuration: HKEY_CURRENT_USER\Software\Martin Prikryl\WinSCP 2\
That says WinSCP is loading configuration from registry, not an INI file. Where is your INI file located?
Upgrading is unlikely to help. But I definitelly suggest you use always the latest version.

Reply with quote

thefugitive
Joined:
Posts:
15

I exported the INI file to my desktop so I could include it in this post.

Also when I simply copy and paste files to the destination SFTP server using another client (i.e. FileZilla) I do not see '.filepart' added to the file name during transfer. I have zero desire to use FileZilla and 100% desire to use WinSCP to automate my transmission, I'm just perplexed by the inconsistency I'm running into. Is the '.filepart' added to the file name exclusively by the WinSCP client? In the documentation about .filepart on this site ,it states that this is part of 'SFTP'.

Status: Starting upload of X:\Era\Files To Export\47198_120612_0001418736-2012061200016670.835
Command: put "X:\Era\Files To Export\47198_120612_0001418736-2012061200016670.835" "47198_120612_0001418736-2012061200016670.835"
Status: local:X:\Era\Files To Export\47198_120612_0001418736-2012061200016670.835 => remote:/47198_120612_0001418736-2012061200016670.835
Status: File transfer successful, transferred 466,944 bytes in 3 seconds

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

thefugitive wrote:

I exported the INI file to my desktop so I could include it in this post.
That's a different story then.
You have probably turned the resume support off for your Windows account. But your script is running under the TMMC_DOMAIN\spsadmin account.
Please read:
https://winscp.net/eng/docs/faq_scheduler

Is the '.filepart' added to the file name exclusively by the WinSCP client? In the documentation about .filepart on this site ,it states that this is part of 'SFTP'.
It's done explicitly (though not exclusively) by WinSCP (Filezilla does not do that indeed). And only for SFTP.

Reply with quote

thefugitive
Joined:
Posts:
15

Re: Can someone translate?

So should I export the .INI file and try to script something like:

C:\Program Files\WinSCP
winscp.com /ini=WINSCPINI.ini /script=[script_name] /log=[log_name]

?

Sorry for being a dunderhead, I'm really trying to wrap my head around my options but the examples seem a little unclear to me.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

thefugitive wrote:

Is the following syntax valid?

winscp.com /ini=[INI_FILENAME] /command "open SESSION_NAME" /script=[SCRIPT_NAME] /log=[LOG_NAME]
Yes.
1) You should better use full path to the INI/script and log files.
2) You should better call "open" from the script file and only after "option batch" command, if any.

Reply with quote

thefugitive
Joined:
Posts:
15

Ok, I think I'm almost done emberassing myself on this thread but I'm going to add insult to injury.

My batch file is as barebones as follows:

winscp.com /ini="C:\Program Files\WinSCP.ini" /script="C:\Program Files\WinSCP\foo.txt" /log="C:\Program Files\WinSCP\foo_log.txt"

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

thefugitive wrote:

Ok, I think I'm almost done emberassing myself on this thread but I'm going to add insult to injury.

My batch file is as barebones as follows:

winscp.com /ini="C:\Program Files\WinSCP.ini" /script="C:\Program Files\WinSCP\foo.txt" /log="C:\Program Files\WinSCP\foo_log.txt"
And does it work now or not?

Reply with quote

Advertisement

thefugitive
Joined:
Posts:
15

martin wrote:

thefugitive wrote:

Ok, I think I'm almost done emberassing myself on this thread but I'm going to add insult to injury.

My batch file is as barebones as follows:

winscp.com /ini="C:\Program Files\WinSCP.ini" /script="C:\Program Files\WinSCP\foo.txt" /log="C:\Program Files\WinSCP\foo_log.txt"
And does it work now or not?

I was afraid to try it without your blessing, I was unsure about including the quotes around the /ini,/script, and /log values.

I'll give it a shot and post my results.
Sincerely, I appreciate the time you are taking to post to this thread.

Reply with quote

martin
Site Admin
martin avatar

thefugitive wrote:

I was afraid to try it without your blessing, I was unsure about including the quotes around the /ini,/script, and /log values.
Looks all good.

Reply with quote

Advertisement

You can post new topics in this forum