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.
vbarrios
Staff
Staff
Article Id 352382
Description This article describes how to fix HA out of sync which can be caused due to the command 'set password-expire' mismatching and admin credentials do not work on the Secondary unit. 
Scope FortiGate.
Solution

When going to FortiGate -> System -> HA the HA is out of sync due to the system.admin table:

 

HA.png

 

In such a case, proceed to check the system admin section config by running the command: 'show system admin'.

 

FGVM02TM22026828-VBA~IOS # show system admin
config system admin
 edit "admin"
  set accprofile "super_admin"
  set vdom "root"
  set password-expire 2025-01-30 03:10:00
end

 

Due to there being no access to the SECONDARY unit, it was not possible to confirm what are the dates/times set with the 'password-expire' command on the peer unit which might be mismatching so it was not possible to adjust it manually.

 

To fix the authentication and HA out-of-sync issues,  apply the following:

 

  1. Remove the 'password-expire' command from the primary unit: 

 

FGVM02TM22026828-VBA~IOS # config system admin

FGVM02TM22026828-VBA~IOS (admin) # edit admin

FGVM02TM22026828-VBA~IOS (admin) # unset password-expire

FGVM02TM22026828-VBA~IOS (admin) # end

 

  1. Recalculate the checksum:

 

FGVM02TM22026828-VBA~IOS # diagnose sys ha checksum recalculate

 

  1. Run the following commands to debug HA synchronization and force a sync: 

 

FGVM02TM22026828-VBA~IOS # diagnose debug app hasync 255
FGVM02TM22026828-VBA~IOS # diagnose debug enable
FGVM02TM22026828-VBA~IOS # execute ha synchronize start

 

Proceed to check with the command 'get system ha status' until both devices show back to the in-sync state.


Reason: 2

 

Another possible reason for HA being out of sync on the system.admin parameter is if the old backup imported to the secondary device was not created by the local superadmin user.

 

Always use a Super Admin account to take backups; otherwise, the HA may become out of sync, as backups created with other admin profiles do not include the Super Admin account.

 

Note:

 

If this does not resolve the issue, run the command 'diagnose sys ha checksum show global system.admin' on both units to compare the checksums for each admin.

 

sysadmin.png

 

Related article:

Troubleshooting Tip: How to troubleshoot HA synchronization issue using GUI and CLI on FortiGate