[8098 - SFTP] File Not Found

Post any question you may have in regards to GoAnywhere Director and let our talented support staff and other users assist you.
4 posts Page 1 of 1

Shoma_Costco

Posts: 17
Joined: Thu May 08, 2014 2:07 am

Post by Shoma_Costco » Fri Jan 08, 2016 12:11 am
When I try to send a file over SFTP server using the SFTP task, I'm getting the error [8098 - SFTP] File not found in the Put task. Is it because the file path is wrong for the file to be copied or is it because the destination path may be incorrect? Project code is as below. Any help would be great!

My source file is in the IFS directory /Blackline/Extract.txt
Code: Select all
<project name="Blackline" mainModule="Main" version="1.0">

	<module name="Main">

		<sftp resourceId="Blackline" version="1.0">
			<put destinationDir="/OD/QA_AU" processedSourceFilesVariable="SrcFiles">
				<fileset dir="/Blackline">
					<wildcardFilter>
						<include pattern="*.*" />
					</wildcardFilter>
				</fileset>
			</put>
		</sftp>


		<copy sourceFilesVariable="${SrcFiles}" destDir="/Blackline/Backup" whenFileExists="rename" version="1.0" />


		<delete inputFilesVariable="${SrcFiles}" version="1.0" />

	</module>

	<description>Send GL file to Blackline </description>
</project>

Support_Rick

Support Specialist
Posts: 592
Joined: Tue Jul 17, 2012 2:12 pm
Location: Phoenix, AZ

Post by Support_Rick » Fri Jan 08, 2016 8:59 am
Shoma,

Since there is no debug joblog attached to review, I can only speculate.

I would assume that this is on the TARGET system, unless the directory "/Blackline" doesn't exist in the root of your IFS system.

Just verify that the folders (To and From) exists before trying to place the file.
Rick Elliott
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696

Shoma_Costco

Posts: 17
Joined: Thu May 08, 2014 2:07 am

Post by Shoma_Costco » Sun Jan 10, 2016 7:02 pm
Hi Rick,

Thanks for the reply. I'm attaching the logs below. Hope it says something about where the error is.

My IFS folder has a root /Blackline and source file is created as /Blackline/GLExtract01062016.txt
Code: Select all
16/1/11 10:57:27 AM           ERROR     [8098 - SFTP] File not found 
16/1/11 10:57:27 AM           INFO      Finished project 'Blackline'
16/1/11 10:57:27 AM           ERROR     [8098 - SFTP] File not found 
                                        com.linoma.ga.projects.runtime.JobFailedException: [8098 - SFTP] File not found 
                                        	at com.linoma.ga.projects.runtime.Job.run(Unknown Source)
                                        	at com.linoma.ga.projects.runtime.Runtime.executeProject(Unknown Source)
                                        	at com.linoma.ga.projects.runtime.Runtime.executeProject(Unknown Source)
                                        	at com.linoma.ga.projects.runtime.Runtime.executeProject(Unknown Source)
                                        	at com.linoma.ga.projects.runtime.Runtime.executeProject(Unknown Source)
                                        	at com.linoma.ga.ui.admin.projects.servlet.RunProjectCommandServlet.doPost(Unknown Source)
                                        	at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
                                        	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
                                        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
                                        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
                                        	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
                                        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
                                        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
                                        	at com.linoma.dpa.security.SecurityFilter.doFilter(Unknown Source)
                                        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
                                        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
                                        	at com.linoma.ga.ui.core.filter.IFrameEmbeddingFilter.doFilter(Unknown Source)
                                        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
                                        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
                                        	at com.linoma.ga.ui.core.filter.NoCacheFilter.doFilter(Unknown Source)
                                        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
                                        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
                                        	at com.linoma.ga.ui.core.filter.IECompatibilityModeFilter.doFilter(Unknown Source)
                                        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
                                        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
                                        	at com.linoma.dpa.j2ee.AdminRedirectFilter.doFilter(Unknown Source)
                                        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
                                        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
                                        	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
                                        	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
                                        	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)
                                        	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
                                        	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
                                        	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
                                        	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
                                        	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
                                        	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
                                        	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)
                                        	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1177)
                                        	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
                                        	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
                                        	at java.lang.Thread.run(Thread.java:857)
                                        Caused by: com.linoma.dpa.ExecutionException: [8098 - SFTP] File not found 
                                        	at com.linoma.ga.projects.ProjectUtilities.getExecutionException(Unknown Source)
                                        	at com.linoma.ga.projects.tasks.ftp.PutAction.execute(Unknown Source)
                                        	at com.linoma.ga.projects.tasks.ftp.AbstractFTPTask.execute(Unknown Source)
                                        	at com.linoma.ga.projects.Module.execute(Unknown Source)
                                        	at com.linoma.ga.projects.Project.execute(Unknown Source)
                                        	at com.linoma.ga.projects.runtime.Job.executeProject(Unknown Source)
                                        	... 42 more
                                        Caused by: com.linoma.ga.projects.tasks.ftp.FTPInterfaceException: File not found
                                        	at com.linoma.ga.projects.tasks.ftp.SFTPImpl.upload(Unknown Source)
                                        	at com.linoma.ga.projects.tasks.ftp.PutAction.processFile(Unknown Source)
                                        	at com.linoma.ga.projects.tasks.ftp.PutAction.uploadFiles(Unknown Source)
                                        	... 47 more
                                        Caused by: File not found (status_code=2)
                                        	at com.jcraft.jsch.ChannelSftp.throwStatusError(Unknown Source)
                                        	at com.jcraft.jsch.ChannelSftp._put(Unknown Source)
                                        	at com.jcraft.jsch.ChannelSftp.put(Unknown Source)
                                        	... 50 more
16/1/11 10:57:27 AM           INFO      End Date and Time: 16/1/11 10:57:27 AM
Code: Select all
INFO Executing sub-task 'put'
16/1/11 11:09:41 AM ERROR [8098 - SFTP] File not found 
16/1/11 11:09:41 AM INFO Finished project 'Blackline'
16/1/11 11:09:41 AM ERROR [8098 - SFTP] File not found 
com.linoma.ga.projects.runtime.JobFailedException: [8098 - SFTP] File not found 
at com.linoma.ga.projects.runtime.Job.run(Unknown Source)
at com.linoma.ga.projects.runtime.Runtime.executeProject(Unknown Source)
at com.linoma.ga.projects.runtime.Runtime.executeProject(Unknown Source)
at com.linoma.ga.projects.runtime.Runtime.executeProject(Unknown Source)
at com.linoma.ga.projects.runtime.Runtime.executeProject(Unknown Source)
at com.linoma.ga.ui.admin.projects.servlet.RunProjectCommandServlet.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at com.linoma.dpa.security.SecurityFilter.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at com.linoma.ga.ui.core.filter.IFrameEmbeddingFilter.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at com.linoma.ga.ui.core.filter.NoCacheFilter.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at com.linoma.ga.ui.core.filter.IECompatibilityModeFilter.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at com.linoma.dpa.j2ee.AdminRedirectFilter.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1177)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:857)
Caused by: com.linoma.dpa.ExecutionException: [8098 - SFTP] File not found 
at com.linoma.ga.projects.ProjectUtilities.getExecutionException(Unknown Source)
at com.linoma.ga.projects.tasks.ftp.PutAction.execute(Unknown Source)
at com.linoma.ga.projects.tasks.ftp.AbstractFTPTask.execute(Unknown Source)
at com.linoma.ga.projects.Module.execute(Unknown Source)
at com.linoma.ga.projects.Project.execute(Unknown Source)
at com.linoma.ga.projects.runtime.Job.executeProject(Unknown Source)
... 42 more
Caused by: com.linoma.ga.projects.tasks.ftp.FTPInterfaceException: File not found
at com.linoma.ga.projects.tasks.ftp.SFTPImpl.upload(Unknown Source)
at com.linoma.ga.projects.tasks.ftp.PutAction.processFile(Unknown Source)
at com.linoma.ga.projects.tasks.ftp.PutAction.uploadFiles(Unknown Source)
... 47 more
Caused by: File not found (status_code=2)
at com.jcraft.jsch.ChannelSftp.throwStatusError(Unknown Source)
at com.jcraft.jsch.ChannelSftp._put(Unknown Source)
at com.jcraft.jsch.ChannelSftp.put(Unknown Source)
... 50 more
16/1/11 11:09:41 AM INFO End Date and Time: 16/1/11 11:09:41 AM

Support_Rick

Support Specialist
Posts: 592
Joined: Tue Jul 17, 2012 2:12 pm
Location: Phoenix, AZ

Post by Support_Rick » Sun Jan 10, 2016 9:22 pm
Shoma,

Did you check the Target system? Logs say that there is an issue during the PUT as I mentioned in my earlier post. Please make sure that your Target system contains the path that you need to connect to. That should take care of your system.
Rick Elliott
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696
4 posts Page 1 of 1