Topic "Files missing out in FTP due to EOSError"

Author Message
PrateekG

Guest


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.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
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?
_________________
Martin Prikryl
PrateekG
[View user's profile]

Joined: 2013-05-07
Posts: 8
Location: Bangalore
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
putftplog_05-05-2013.txt (800.88 KB) [Download]

Description: (none)

PrateekG
[View user's profile]

Joined: 2013-05-07
Posts: 8
Location: Bangalore
log attached
putftplog_05-05-2013.txt (800.88 KB) [Download]

Description: log

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
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?

Code:
if not exists %local_folder%%%i exit

_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License