"get" error code

Advertisement

iceland
Guest

"get" error code

Why do I always get < 2008-05-13 17:27:27.106 Status/error code: 1
even though the file was successfully transferred?

Reply with quote

Advertisement

iceland
Guest

Re: "get" error code

iceland wrote:

Why do I always get < 2008-05-13 17:27:27.106 Status/error code: 1
even though the file was successfully transferred?

Hi,

Here it is, the text file is successfully transferred to my local machine, as well as other files also, which has the same error code of 1.

> 2008-05-13 17:31:05.801 Type: SSH_FXP_CLOSE, Size: 17, Number: 4356
. 2008-05-13 17:31:05.801 File: "md5sum.txt"
. 2008-05-13 17:31:05.801 Copying "md5sum.txt" to local directory started.
. 2008-05-13 17:31:05.801 Binary transfer mode selected.
. 2008-05-13 17:31:05.801 Opening remote file.
> 2008-05-13 17:31:05.801 Type: SSH_FXP_OPEN, Size: 64, Number: 4611
< 2008-05-13 17:31:06.067 Type: SSH_FXP_STATUS, Size: 21, Number: 4356
. 2008-05-13 17:31:06.067 Discarding reserved response
< 2008-05-13 17:31:06.348 Type: SSH_FXP_HANDLE, Size: 17, Number: 4611
> 2008-05-13 17:31:06.348 Type: SSH_FXP_FSTAT, Size: 17, Number: 4872
> 2008-05-13 17:31:06.348 Type: SSH_FXP_READ, Size: 29, Number: 5125
< 2008-05-13 17:31:06.614 Type: SSH_FXP_ATTRS, Size: 37, Number: 4872
. 2008-05-13 17:31:06.614 Storing reserved response
< 2008-05-13 17:31:07.161 Status/error code: 1

Reply with quote

martin
Site Admin
martin avatar

Re: "get" error code

SFTP status code 1 means "end of file". It is not an error. That's why there is "Status/error code", not just "Error code".

Reply with quote

Sanesh
Guest

Why do get Errorcode=1 evn though file is transferred

execs_vb_script.bat starting at Thu 09/24/2009 17:53:54.03
'In EXECS'
'calling'H:\appworx\scripts\xs_SFTP.vbs
First pass: ""c:\program files\winscp\winscp.exe"
"
later pass: " H:\Data\Site\Incoming\Informatica\
"
later pass: " /din-stg/
"
later pass: " data.DAT.pgp
"
later pass: " abc@AbcDropbox
"
later pass: " PUT
"
"cscript H:\appworx\scripts\xs_SFTP.vbs "c:\program files\winscp\winscp.exe" H:\Data\Site\Incoming\Informatica\ /din-stg/ data.DAT.pgp geam@GeamDropbox PUT"
NTSPAWN pid 7700:1e14
JOBID 8939273.02
Spawned process with ID 4156 103c
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

No error file found. [H:\Programs\Appworx6.1.4\run\doserr.8939273.02]end of H:\Programs\Appworx6.1.4\exec\BODY2.BAT status 1 Thu 09/24/2009 17:56:19.03
err is:'1'
log_run is:'Y'
min_run_time=0
exiting BODY2
JOB_COMPLETION 8939273.02 ABORTD "ABORTD" 0 0 1
in BODY3
PRINTSIZE stdout file H:\Programs\Appworx6.1.4\out\o8939273.02.log
Looking for print files
Exit BODY3
20090924175622

Reply with quote

Advertisement

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

Re: Why do get Errorcode=1 evn though file is transferred

Sanesh wrote:

execs_vb_script.bat starting at Thu 09/24/2009 17:53:54.03
...
Post output of the script and script itself.

Reply with quote

akshaychand
Guest

Status/error Code = 1

I understand that Status/error Code 1 signifies an EOF and not an error message. But why is it that WinSCP's exit code is 1 in this case. I am using .NET's Process to execute WinSCP, and when I check the exit Code it is set to 1, which, by convention means an error.

Reply with quote

Guest

Re: Status/error Code = 1

akshaychand wrote:

I understand that Status/error Code 1 signifies an EOF and not an error message. But why is it that WinSCP's exit code is 1 in this case. I am using .NET's Process to execute WinSCP, and when I check the exit Code it is set to 1, which, by convention means an error.

I forgot to post the logs. .NET's Exit code is 1, although the file got transfered and there's nothing in the logs.

Here are the logs.

. 2010-05-14 10:02:43.753 Using SFTP protocol.
. 2010-05-14 10:02:43.753 Doing startup conversation with host.
> 2010-05-14 10:02:43.753 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2010-05-14 10:02:43.941 Type: SSH_FXP_VERSION, Size: 5, Number: -1
. 2010-05-14 10:02:43.941 SFTP version 3 negotiated.
. 2010-05-14 10:02:43.941 We believe the server has signed timestamps bug
. 2010-05-14 10:02:43.941 We will use UTF-8 strings for status messages only
. 2010-05-14 10:02:43.941 Getting current directory name.
. 2010-05-14 10:02:43.941 Getting real path for '.'
> 2010-05-14 10:02:43.941 Type: SSH_FXP_REALPATH, Size: 10, Number: 16
< 2010-05-14 10:02:44.441 Type: SSH_FXP_NAME, Size: 51, Number: 16
. 2010-05-14 10:02:44.441 Real path is '/'
. 2010-05-14 10:02:44.441 Startup conversation with host finished.
. 2010-05-14 10:02:44.441 Listing file "XYZ.pdf".
> 2010-05-14 10:02:44.441 Type: SSH_FXP_LSTAT, Size: 29, Number: 263
< 2010-05-14 10:02:45.363 Type: SSH_FXP_ATTRS, Size: 37, Number: 263
. 2010-05-14 10:02:45.363 File: "/XYZ.pdf"
. 2010-05-14 10:02:45.363 Copying "/XYZ.pdf" to local directory started.
. 2010-05-14 10:02:45.363 Binary transfer mode selected.
. 2010-05-14 10:02:45.363 Confirming overwriting of file.
. 2010-05-14 10:02:45.363 Opening remote file.
> 2010-05-14 10:02:45.363 Type: SSH_FXP_OPEN, Size: 37, Number: 515
< 2010-05-14 10:02:45.800 Type: SSH_FXP_HANDLE, Size: 10, Number: 515
> 2010-05-14 10:02:45.800 Type: SSH_FXP_READ, Size: 22, Number: 1029
< 2010-05-14 10:02:47.035 Status/error code: 1
. 2010-05-14 10:02:47.035 22 skipped SSH_FXP_WRITE, SSH_FXP_READ, SSH_FXP_DATA and SSH_FXP_STATUS packets.
> 2010-05-14 10:02:47.035 Type: SSH_FXP_CLOSE, Size: 10, Number: 4356
< 2010-05-14 10:02:47.035 Type: SSH_FXP_STATUS, Size: 17, Number: 3589
< 2010-05-14 10:02:47.035 Type: SSH_FXP_STATUS, Size: 17, Number: 3845
< 2010-05-14 10:02:47.050 Type: SSH_FXP_STATUS, Size: 17, Number: 4101
. 2010-05-14 10:02:47.050 Closing connection.
. 2010-05-14 10:02:47.050 Sending special code: 12
. 2010-05-14 10:02:47.050 Sent EOF message

Reply with quote

martin
Site Admin
martin avatar

Re: Status/error Code = 1

Anonymous wrote:

I forgot to post the logs. .NET's Exit code is 1, although the file got transfered and there's nothing in the logs.
Post an output of the script.

Reply with quote

Advertisement

You can post new topics in this forum