SFTP job fails with java.io.EOFException (WA Agent)
search cancel

SFTP job fails with java.io.EOFException (WA Agent)

book

Article ID: 214833

calendar_today

Updated On:

Products

CA Workload Automation DE CA Workload Automation AE - Business Agents (AutoSys) CA Workload Automation AE - System Agent (AutoSys) Workload Automation Agent CA Workload Automation DE - System Agent (dSeries)

Issue/Introduction

SFTP job failed with java.io.EOFException when connecting to certain UNIX systems like AIX.

01/01/2021 00:00:12.345-0400 1 FtpPlugin.SCP Transfer thread for SFTP_JOB/CAWA_APP.1/MAIN.CybSFTPHandler.run[:979] - com.jscape.inet.sftp.SftpException: java.io.EOFException
at com.jscape.inet.sftp.SftpException.wrap(Unknown Source)
at com.jscape.inet.sftp.Sftp.a(Unknown Source)
at com.jscape.inet.sftp.Sftp.connect(Unknown Source)
at cybermation.plugins.ftp.scp.CybSFTPHandler.run(CybSFTPHandler.java:842)
at java.lang.Thread.run(Thread.java:821)
Caused by: com.jscape.util.o.b: java.io.EOFException
at com.jscape.util.o.b.a(Unknown Source)
at com.jscape.util.o.c.a(Unknown Source)
at com.jscape.inet.sftp.Sftp.b(Unknown Source)
at com.jscape.inet.sftp.Sftp.connect(Unknown Source)
at cybermation.plugins.ftp.scp.CybSFTPHandler.run(CybSFTPHandler.java:842)
at java.lang.Thread.run(Thread.java:821)
Caused by: java.io.EOFException: null
at com.jscape.util.wb.b(Unknown Source)
at com.jscape.util.i.a.g.a(Unknown Source)
at com.jscape.inet.ssh.protocol.v2.marshaling.primitive.Uint32Codec.readValue(Unknown Source)
at com.jscape.inet.sftp.protocol.marshaling.MessageCodec.read(Unknown Source)
at com.jscape.inet.sftp.SftpFileService4.j(Unknown Source)
at com.jscape.inet.sftp.SftpFileService4.c(Unknown Source)
at com.jscape.inet.sftp.SftpFileService4.i(Unknown Source)
at com.jscape.inet.sftp.SftpFileService4.actualStart(Unknown Source)
at com.jscape.util.o.c.a(Unknown Source)
at com.jscape.inet.sftp.Sftp.b(Unknown Source)
at com.jscape.inet.sftp.Sftp.connect(Unknown Source)
at cybermation.plugins.ftp.scp.CybSFTPHandler.run(CybSFTPHandler.java:842)
at java.lang.Thread.run(Thread.java:821)

Environment

Release : 11.5, R12.x

Component :  Workload Automation System Agent

Cause

On AIX and other ssh-server, the SFTP server may require 0644 permissions on /etc/ssh/sshd_config.

Resolution

Change the permission of  to 644 /etc/ssh/sshd_config. 

Additional Information

See this link for details (external link).

https://www.ibm.com/support/pages/ibm-aix-regular-users-can-ssh-aix-sftp-fails#:~:text=The most common reason for,etc/ssh/sshd_config file.&text=OpenSSH on AIX is configured,and owned by root system.