FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
aahmadbasri
Staff
Staff
Article Id 336378
Description This article describes how to troubleshoot automation backup issues on FortiGate and the possible reasons.
Scope FortiGate.
Solution

To troubleshoot the automation backup issue, the following steps can be done:

 

  1. Check if the command works without automation stitch while taking a PCAP on a separate ssh session.

 

SSH 1 :

 

diagnose sniffer packet any "host <ftp server>" 6 0 l  

 

Or use the packet capture tools as described in Troubleshooting Tip: Packet Capture on FortiOS GUI.

 

SSH 2:

 

execute backup config ftp <filename> <ftp server>[:ftp port] <username> <password>

 

If the backup is failed, on FortiGate, failed backup return error:

 

Connect to ftp server 10.xx.xx.xx:21 ...
Please wait...
Send config file to ftp server via vdom root failed.
Command fail. Return code 12

 

On Wireshark, it is possible to view the error for a failed backup config transfer:

 

Common reason for failed FTP backup.

 

  • Wrong credential.
                     

KB_10_1.png

 

  • Wrong path.

 

KB_10_2.png

 

 

  1. After resolving the command issue, it is possible to use the command in automation stitch.