ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

FTP job is failing: Source file does not exist

book

Article ID: 223070

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

FTP job is failing with the error message belo.

 

2021-08-26 12:54:22             Copying from CONN.FTPAGENT to Local File System

2021-08-26 12:54:22             copy //Home/casplda02/univa/* to \\caspda01\files

2021-08-26 12:54:22             host name = casplda02, remote user identification  = uch_dev_UC4

2021-08-26 12:54:22             connecting on port : 1641

2021-08-26 12:54:22             Using hosts file = C:\Users\svc_Auto_Engine_dev/.ssh/known_hosts

2021-08-26 12:54:22             Connecting to casplda02 port 1641

2021-08-26 12:54:22             Connection established

 

 

 

2021-08-26 12:54:23             sftp channel opened

2021-08-26 12:54:24             0 files transferred, 1 not processed -

2021-08-26 12:54:24             Disconnecting from casplda02 port 1641

No such file

com.uc4.ftpjob.DataTransferException: Source file does not exist: //Home/casplda02/univa/20210825-5116.zip, can't open file.

        at com.uc4.ftpjob.commands.impl.CopyCommand.execute(CopyCommand.java:575)

        at com.uc4.ftpjob.commands.ThreadPoolJobExecutor$ThreadRunner.run(ThreadPoolJobExecutor.java:87)

        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)

        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)

        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)

        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)

        at java.base/java.lang.Thread.run(Thread.java:834)

Caused by: com.uc4.ftpjob.DataTransferException: No such file

        at com.uc4.ftpjob.commands.SFtpCommandImpl.getInputStream(SFtpCommandImpl.java:254)

        at com.uc4.ftpjob.commands.FtpFacadeCommandImpl.getInputStream(FtpFacadeCommandImpl.java:66)

        at com.uc4.ftpjob.commands.impl.CopyCommand.execute(CopyCommand.java:551)

        ... 6 more

Caused by: 2: No such file

        at com.jcraft.jsch.ChannelSftp.throwStatusError(ChannelSftp.java:2579)

        at com.jcraft.jsch.ChannelSftp._stat(ChannelSftp.java:2028)

        at com.jcraft.jsch.ChannelSftp.get(ChannelSftp.java:1188)

        at com.jcraft.jsch.ChannelSftp.get(ChannelSftp.java:1160)

        at com.uc4.ftpjob.commands.SFTPHelperDelegate$22.run(SFTPHelperDelegate.java:338)

Environment

Release :

Component :

Resolution

Troubleshooting steps:

-Check  if the login user in the ftp Connection object has the proper rights on this file