My Oracle Support Banner

E-FTP: SFTP Getting Failed for File Greater than 32 KB Getting Error "Failed to close libssh2 file: -7 Unable to send FXP_CLOSE command" (Doc ID 2800332.1)

Last updated on AUGUST 18, 2021

Applies to:

PeopleSoft Enterprise PT PeopleTools - Version 8.58 and later
Information in this document applies to any platform.


The issue is not related to peoplesoft but a network issue. In case of further queries, Please reach out to Oracle Community at

On : 8.58 version, File Attachments

SFTP transfer from PS Process scheduler server to SFTP server through Application Engine is getting failed with below error

- Test file transfer with sftp command from server’s OS. It worked.
- Test file transfer with curl: File transfer is stuck in processing endlessly

** Same issue replicate when tested on Peopletools Test Utilities page.

Error in Application Engine Trace File:
1799588 10:01:34.729 960.633997 PSCurlFileTransferSession: Upload : File Transfer Failed : FTP library Error code : 79 - Error in the SSH layer
1799589 10:01:34.729 0.000030 PSCurlFileTransferSession: MapErrorcode.
1799590 10:01:34.729 0.000080 PSCurlFileTransferSession: Destructing the file transfer library object


Application Server Log
PSAPPSRV.3159 (499) ### ICPanel] E07Rfbp7Z0ygQQ 7493537145436644353 PS (1)   specified (masked) URL = "sftp://<ip>/<path>/".
PSAPPSRV.3159 (499) ### E07Rfbp7Z0ygQQ 7493537145436644353 PS (1)   specified local file name = "PIA_servlets1.log.0".
PSAPPSRV.3159 (499) ### ICPanel] E07Rfbp7Z0ygQQ 7493537145436644353 PS (1)     EvalAddAttachment (error): return code (1) indicates attempt to upload file to storage failed.


FileTransfer<pid> Log
*   Trying <ip>...
* Connected to <ip> (<ip>) port <port no.> (#0)
* SSH MD5 fingerprint: ################
* SSH authentication methods available: publickey,password
* Initialized password authentication
* Authentication complete
* Failed to close libssh2 file: -7 Unable to send FXP_CLOSE command
* Closing connection 0

The issue can be reproduced at will with the following steps:
1. Setup the sftp URL Properties
2. Navigate to PeopleTools > Utilities > Debug > PeopleTools Test Utilities
3. Provide the URLID which you have created. Try to SFTP file to Linux File server. It fail for file > 32 kb.





To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.