Files missing out in FTP due to EOSError

Advertisement

PrateekG
Guest

Files missing out in FTP due to EOSError

Hi,

We are facing the issue WinSCP wherein 1 or 2 files are missed during FTP due to below error:

. 2013-05-05 19:00:23.436 File: "D:\OracleRetailStore\Server\pos\bin\POSLog\RTLOG_08513_20130505183529.DAT"
* 2013-05-05 19:00:23.437 (EOSError) System Error. Code: 2.

* 2013-05-05 19:00:23.437 The system cannot find the file specified
. 2013-05-05 19:00:23.437 Asking user:
. 2013-05-05 19:00:23.437 File or folder 'D:\OracleRetailStore\Server\pos\bin\POSLog\RTLOG_08513_20130505183529.DAT' does not exist. ("System Error. Code: 2.

. 2013-05-05 19:00:23.437 The system cannot find the file specified")
< 2013-05-05 19:00:23.437 Script: File or folder 'D:\OracleRetailStore\Server\pos\bin\POSLog\RTLOG_08513_20130505183529.DAT' does not exist.
< 2013-05-05 19:00:23.437 Script: System Error. Code: 2.

< 2013-05-05 19:00:23.437 The system cannot find the file specified
* 2013-05-05 19:00:23.438 (EScpSkipFile) File or folder 'D:\OracleRetailStore\Server\pos\bin\POSLog\RTLOG_08513_20130505183529.DAT' does not exist.
* 2013-05-05 19:00:23.438 System Error. Code: 2.
* 2013-05-05 19:00:23.438 The system cannot find the file specified
. 2013-05-05 19:00:23.438 Script: Failed
> 2013-05-05 19:00:23.438 Script: exit
. 2013-05-05 19:00:23.438 Script: Exit code: 1
. 2013-05-05 19:00:23.438 Closing connection.
. 2013-05-05 19:00:23.438 Sending special code: 12
. 2013-05-05 19:00:23.438 Sent EOF message

-----------------------------------------------

I have referred to bug fix 746 in ver 5.0.3. But we are using the ver 5.1.0 but still we are facing this issue. Please provide some pointers to resolve this issue.

Reply with quote

Advertisement

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

Re: Files missing out in FTP due to EOSError

It's difficult to tell what's going on without compete log.

Why is WinSCP trying to upload the RTLOG_08513_20130505183529.DAT file? Do you have an explicit command to upload the file in your script? Or is the file removed while WinSCP is uploading whole directory?

Reply with quote

PrateekG
Joined:
Posts:
8
Location:
Bangalore

Re: Files missing out in FTP due to EOSError

Hi Prikryl,

RTLOGs come to the directory D:\OracleRetailStore\Server\pos\bin\POSLog by default. From here my script FTPed these RTLOGs to Central Server and on successful transfer of a RTLOG, moved that RTLOG to D:\OracleRetailStore\Server\pos\bin\POSLog\archive folder.

There is no manual intervention with files present in this folder. Below is the sample script I am using:
echo option batch on > script_put.tmp
echo option confirm off >> script_put.tmp
echo open %session% >> script_put.tmp

echo put %local_folder%%%i %server_folder% >> script_put.tmp
echo exit >> script_put.tmp

%winscp_path% /script=script_put.tmp /log=%logfile_folder%putftplog_%current_date%.txt

I am attaching the log with some of the confidential values masked.

PrateekG

Reply with quote

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

Re: Files missing out in FTP due to EOSError

So it seems that you are explicitly uploading a file that does not exist, right?
Why don't you check for file existence in your batch file and avoid calling WinSCP, if it does not exist?

if not exists %local_folder%%%i exit

Reply with quote

Advertisement

You can post new topics in this forum