IBM Support

File transfer error when sending files on the cloud object stores

How To


Summary

During file transfer operations to a cloud object store, the transfer may fail if there is insufficient space available in the /tmp directory.

The following error is observed on the STAT/ Work logs located inside /{CD_Install_dir}/work/{nodename}/Syyyymmdd.nnn where y represents year, m represents month, d represents the date and n is the log rolling number:
Failed to create temporary file for /com/sun/jna/linux-x86-64/libjnidispatch.so library
No space left on device

This issue occurs because the Java Native Access (JNA) library attempts to create temporary files in the default /tmp location, which does not have sufficient disk space.

Objective

To provide remediation steps for resolving the temporary file creation error encountered during file transfers to cloud object storage.

Environment

Red Hat Enterprise Linux (RHEL)

Steps

To resolve the issue, configure JNA to use an alternative temporary directory with sufficient space.

Steps

  1. Open the initparm configuration file.

  2. Navigate to the S3 IO Exit plugin section.

  3. Add the following JVM system property:

    1. -Djna_tmpdir=<folder_location>

  4. Replace <folder_location> with a directory path that:

    • Has sufficient free disk space.

    • Grants execute permissions to the user performing the file transfer. Ensure appropriate permissions are set:

                               Example

 
                    -Djna_tmpdir=/opt/app/tmp
 
 
                     chmod 755 /opt/app/tmp

Additional Information

Root cause:

By default, the JNA library extracts native components (such as libjnidispatch.so) into the system /tmp directory.

If /tmp is full or lacks sufficient space, the library fails to initialize, resulting in the transfer failure.

If you know about Java, you can also look at the link: https://javadoc.io/doc/net.java.dev.jna/jna/latest/com/sun/jna/Native.html#getTempDir()

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSKTYY","label":"IBM Sterling Connect:Direct for UNIX"},"ARM Category":[{"code":"a8m0z000000cwUgAAI","label":"CONFIGURATION"}],"ARM Case Number":"TS021073911","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.3.0;6.4.0"}]

Document Information

Modified date:
16 February 2026

UID

ibm17260617