FortiNAC
NOTE: FortiNAC is now named FortiNAC-F. For post-9.4 articles, see FortiNAC-F. FortiNAC is a zero-trust network access solution that provides users with enhanced visibility into the Internet of Things (IoT) devices on their enterprise networks.
lfrancelj
Staff
Staff
Article Id 194417

Description


This article describes how to refresh database replication in case this error message in the GUI Events appears 'Database Replication Error' or 'slave is inactive' when executing hsIsSlaveActive on the Secondary Server.

 

Scope


FortiNAC.


Solution


1) Login to secondary (not the virtual IP) FortiNAC with SSH client using 'root' account.

 

2) Type in the following command:

 

# reboot

 

3) Wait for the secondary server to come back online and all services are started, it can take up to 10 minutes, depending on the size of a database.


4) Check if database replication is active with the following command (executed on secondary node):

 

# hsIsSlaveActive

 

Expected output:

 

Host  fortinac
SQL version 5.6.39,

slave is active  <-- This indicates that database replication is active.

 

5) Verify the logs to confirm that database replication started and finished successfully:

 

# cd /bsc/logs

 

Open 'output.processManager' with the favorite text editor or use 'less' for example:

 

# less output.processManager

 

Search for strings 'Database replication starting' and 'Database replication finished: SUCCESS'.

 

If Database replication continues to fail:


1) Gather logs from both the Primary and Secondary Servers using the grab-log-snapshot script. For instructions see KB article 190755.

 

2) Open a support ticket and provide the following:


- Logs from step 1.
- Output of hsIsSlaveActive command from the Secondary Server.

 

Related links.
https://docs.fortinet.com/document/fortinac/8.8.0/high-availability

https://docs.fortinet.com/document/fortinac/9.2.0/high-availability

 

Contributors