Description

This article addresses an issue where the configuration archival feature's transfer-on-commit functionality is failing on ACX7024 devices. The problem manifests as an inability to transfer archived configuration files to the specified remote location after a commit operation.

Symptoms

Configuration archival feature to transfer-on-commit is failing on lab ACX7024. 

Error messages in system logs indicating transfer failure:

Jul 18 17:01:46 ABCD  mgd[PID]: UI_COMMIT_COMPLETED: : commit complete
Jul 18 17:03:16 ABCD  mgd[PID]: UI_CMDLINE_READ_LINE: User 'root', command 'file copy /var/transfer/config/ABCD_juniper.conf.gz "scp://[email protected]/home/root/Config-BKUP" '
Jul 18 17:06:29 ABCD  mgd[PID]: UI_CMDLINE_READ_LINE: User 'root', command 'show configuration system | display set '
Jul 18 17:06:42 ABCD  mgd[PID]: UI_CONFIG_ARCHIVAL_RETRY_ITER: Error <256> uploading file '/var/transfer/config/ABCD_juniper.conf.gz'. Remaining retry attempts = 1, retry in 295 seconds...
Jul 18 17:06:42 ABCD  root[PID]: transfer-file failed to transfer /var/transfer/config/ABCD_juniper.conf.gz rc:1
Jul 18 17:11:37 ABCD  mgd[PID]: UI_CONFIG_ARCHIVAL_FAILED: Error <256> uploading file '/var/transfer/config/ABCD_juniper.conf.gz'
Jul 18 17:11:37 ABCD  root[PID]: transfer-file failed to transfer /var/transfer/config/ABCD_juniper.conf.gz rc:1


 

Solution

Root Cause:

The issue stems from an incompatibility with password arguments in the curl command used for file transfer on EVO platforms.

 

Workaround:

Do not include the password node in the archival configuration command for EVO platforms.

Correct configuration syntax:
set system archival configuration transfer-on-commit archive-sites scp://username@host/path

Incorrect syntax (avoid using):
set system archival configuration transfer-on-commit archive-sites scp://username@host/path password 'SECRET-DATA'

If using FTP, ensure to use double slashes at the beginning of the destination folder: ftp://ftpuser:password@host//path

Verify the configuration: show system archival configuration

After applying the correct configuration, commit the changes: commit

Monitor system logs to confirm successful transfers after commits.

Please refer this link on how to setup transfer-on-commit --> 
https://www.juniper.net/documentation/en_US/junos/topics/reference/configuration-statement/transfer-on-commit-edit-system.html


If the issue persists, reference PR 1705128 (https://prsearch.juniper.net/PR1705128) for additional information and potential updates.

For further assistance, contact Juniper Networks Support and provide the collected logs and configuration details.

Note: This issue is related to EVO platforms. Always ensure you're using the most recent Junos OS version that addresses known issues with the configuration archival feature.

Modification History

2024-02-28 : Article Created