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

 

Press 'Ctrl+C' (Windows or Linux) or 'CMD+C' to stop the capture.

 

Alternatively, 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 fails, on FortiGate, the failed backup returns this 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:

 

Here are some common reasons for failed FTP backup:

 

  • Wrong credentials:
                     

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.