Page 1 of 1

ERROR inputstream is closed

Posted: Wed Aug 03, 2016 7:01 pm
by vinhtran
Hi there,

I'm trying to resolve a intermittent error that appears every so often. we have a transfer job that is scheduled to run every 10 mins and every so often the Job fails with the error message - ERROR inputstream is closed.

I've pasted a sample of the log below. Has anyone come across this issue?

4/8/16 4:50:30 INFO Start Date and Time: 4/8/16 4:50:30
4/8/16 4:50:30 INFO Job Number: 1000001651213
4/8/16 4:50:30 INFO Project Name: /sftp-ftp-***
4/8/16 4:50:30 INFO Submitted By: UPYPSJ0003
4/8/16 4:50:30 INFO Submitted From: Scheduler
4/8/16 4:50:30 INFO GoAnywhere 5.0.1 running on Windows Server 2008 R2 6.1 (amd64)
4/8/16 4:50:30 INFO Overriding variable 'JobUsername' with value 'UPJ0003'
4/8/16 4:50:30 INFO Overriding variable 'JobPrivateKeyPassphrase' with value '***'
4/8/16 4:50:30 INFO Executing project 'sftp-ftp-***'
4/8/16 4:50:30 INFO Project location: d:\userdata\projects\sftp-ftp-***.xml
4/8/16 4:50:30 INFO Executing module 'Main'
4/8/16 4:50:30 INFO Executing task 'createWorkspace 1.0 (Create clean workspace for transfer)'
4/8/16 4:50:30 INFO Workspace directory for this job is set to 'd:\userdata\workspace\1000001651213'.
4/8/16 4:50:30 INFO Finished task 'createWorkspace 1.0 (Create clean workspace for transfer)'
4/8/16 4:50:30 INFO Executing task 'sftp 1.0 (SFTP Get src data)'
4/8/16 4:50:30 INFO Connecting to 'company.org' at port '22' as user 'UPJ0003'
4/8/16 4:50:30 INFO Executing sub-task 'get'
4/8/16 4:50:30 INFO Closed the FTP connection
4/8/16 4:50:30 ERROR inputstream is closed
4/8/16 4:50:30 INFO Finished project 'sftp-ftp-***'
4/8/16 4:50:30 ERROR inputstream is closed
com.linoma.ga.projects.runtime.JobFailedException: inputstream is closed
at com.linoma.ga.projects.runtime.Job.run(Unknown Source)
at com.linoma.dpa.util.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at com.linoma.dpa.util.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: com.linoma.dpa.ExecutionException: inputstream is closed
at com.linoma.ga.projects.tasks.ftp.FTPFileSet.getFileList(Unknown Source)
at com.linoma.ga.projects.tasks.ftp.FTPFileSet.getFileList(Unknown Source)
at com.linoma.ga.projects.tasks.ftp.FTPUtilities.getMasterRemoteFileList(Unknown Source)
at com.linoma.ga.projects.tasks.ftp.GetAction.internalValidate(Unknown Source)
at com.linoma.ga.projects.tasks.ftp.GetAction.execute(Unknown Source)
at com.linoma.ga.projects.tasks.ftp.AbstractFTPTask.execute(Unknown Source)
at com.linoma.ga.projects.ModuleV2.execute(Unknown Source)
at com.linoma.ga.projects.Project.execute(Unknown Source)
at com.linoma.ga.projects.runtime.Job.executeProject(Unknown Source)
... 4 more
Caused by: com.linoma.ga.projects.tasks.ftp.FTPInterfaceException: inputstream is closed
at com.linoma.ga.projects.tasks.ftp.SFTPImpl.setWorkingDirectory(Unknown Source)
... 13 more
Caused by: inputstream is closed (status_code=4)
at com.jcraft.jsch.ChannelSftp.cd(Unknown Source)
at com.jcraft.jsch.ChannelSftp.cd(Unknown Source)
... 14 more
Caused by: java.io.IOException: inputstream is closed
at com.jcraft.jsch.ChannelSftp.fill(Unknown Source)
at com.jcraft.jsch.ChannelSftp.header(Unknown Source)
at com.jcraft.jsch.ChannelSftp._realpath(Unknown Source)
... 16 more
4/8/16 4:50:30 INFO End Date and Time: 4/8/16 4:50:30

Re: ERROR inputstream is closed

Posted: Thu Aug 04, 2016 8:12 am
by Support_Tim
Hi Vinhtran,

Because it is not as timely and sometimes difficult to troubleshoot issues via the forum, we recommend that you contact your Linoma Reseller support team and open a support ticket.

The error in the log provided indicates an issue with the SFTP connection. In this case, it is always recommended that you set the project logging to debug detail to get more information your specific SFTP connection issue. Do this and check the log to see the cause. If you need further assistance, send this job log to your your Linoma Reseller support team with a brief explanation of the issue, GoAnywhere version and Operating System/platform that GoAnywhere is running on.

Re: ERROR inputstream is closed

Posted: Thu Aug 04, 2016 8:24 am
by Support_Tim
Hi Vinhtran,
Additionally, if the test project and debug job log does not provide information to resolve the issue, I suggest you contact the administrator of the SFTP host server and ask them to review their log to see why it is disconnecting.