The RADIUS service may fail to start with an error similar to:
/etc/raddb/radiusd.conf[89]: Duplicate home server name DefaultConfig
radius.service: Failed with result 'exit-code'
Failed to start fortinac system radius server
The condition occurs when more than one RadiusServerConfig object named DefaultConfig exists and FortiNAC generates multiple FreeRADIUS home_server definitions with the same name. In the affected environment, seven DefaultConfig entries were present.
Identify all DefaultConfig records:
SELECT
ID,
name,
type,
tlsServiceConfiguration,
LAST_MODIFIED_BY,
LAST_MODIFIED_DATE
FROM bsc.RadiusServerConfig
WHERE name = 'DefaultConfig'
ORDER BY LAST_MODIFIED_DATE;
In the affected environment, the following records were found:
| ID | Name | TLS Service Configuration | Type | Modified By | Last Modified |
|---:|---|---:|---:|---|---|
| 4 | DefaultConfig | 1 | 1 | SYSTEM | 2026-08-22 13:08:21 |
| 364400957614080 | DefaultConfig | 364400957589504 | 1 | SYSTEM | 2026-08-22 14:32:35 |
| 365649050552320 | DefaultConfig | 365649050517504 | 1 | SYSTEM | 2026-08-29 15:49:35 |
| 365650029555712 | DefaultConfig | 365650029522944 | 1 | SYSTEM | 2026-08-29 15:57:33 |
| 1496343664676883 | DefaultConfig | 1496343664631826 | 1 | SYSTEM | 2026-09-01 16:46:55 |
| 1496355865698325 | DefaultConfig | 1496355865640980 | 1 | SYSTEM | 2026-09-01 17:36:34 |
| 1496359675371541 | DefaultConfig | 1496359675306004 | 1 | SYSTEM | 2026-09-01 17:52:04 |
In this case, ID 4 was identified as the original DefaultConfig and was retained.
Note: Do not assume that the oldest record is always the correct record. Verify the configuration and dependencies before deleting any record.
Before deleting the duplicate candidates, identify all declared foreign keys referencing radiusServerConfig_id:
SELECT
k.TABLE_SCHEMA,
k.TABLE_NAME,
k.COLUMN_NAME,
k.CONSTRAINT_NAME,
r.DELETE_RULE,
r.UPDATE_RULE
FROM information_schema.KEY_COLUMN_USAGE k
LEFT JOIN information_schema.REFERENTIAL_CONSTRAINTS r
ON r.CONSTRAINT_SCHEMA = k.CONSTRAINT_SCHEMA
AND r.CONSTRAINT_NAME = k.CONSTRAINT_NAME
WHERE k.REFERENCED_TABLE_SCHEMA = 'bsc'
AND k.REFERENCED_TABLE_NAME = 'RadiusServerConfig'
AND k.REFERENCED_COLUMN_NAME = 'ID'
ORDER BY k.TABLE_NAME, k.COLUMN_NAME;
The following foreign key was present:
+--------------+-------------------------------------+-----------------------+-----------------+-------------+-------------+
| TABLE_SCHEMA | TABLE_NAME | COLUMN_NAME | CONSTRAINT_NAME | DELETE_RULE | UPDATE_RULE |
+--------------+-------------------------------------+-----------------------+-----------------+-------------+-------------+
| bsc | RadiusServerConfigWinbindConfigList | radiusServerConfig_id | fk_rsc | RESTRICT | RESTRICT |
+--------------+-------------------------------------+-----------------------+-----------------+-------------+-------------+
1 row in set (0.015 sec)
Search for application-level reference columns:
SELECT
TABLE_NAME,
COLUMN_NAME,
COLUMN_TYPE
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = 'bsc'
AND LOWER(COLUMN_NAME) LIKE '%radiusserverconfig%'
ORDER BY TABLE_NAME, COLUMN_NAME;
The system contained:
+-------------------------------------+-----------------------+-------------+
| TABLE_NAME | COLUMN_NAME | COLUMN_TYPE |
+-------------------------------------+-----------------------+-------------+
| RadiusServerConfigProxyServerIdList | radiusServerConfig_id | bigint(20) |
| RadiusServerConfigWinbindConfigList | radiusServerConfig_id | bigint(20) |
+-------------------------------------+-----------------------+-------------+
Check the duplicate candidates against Winbind and Proxy Server mapping tables:
MariaDB [bsc]> SELECT *
-> FROM bsc.RadiusServerConfigWinbindConfigList
-> WHERE radiusServerConfig_id IN (
-> 364400957614080,
-> 365649050552320,
-> 365650029555712,
-> 1496343664676883,
-> 1496355865698325,
-> 1496359675371541
-> );
Empty set (0.001 sec)
MariaDB [bsc]> SELECT *
-> FROM bsc.RadiusServerConfigProxyServerIdList
-> WHERE radiusServerConfig_id IN (
-> 364400957614080,
-> 365649050552320,
-> 365650029555712,
-> 1496343664676883,
-> 1496355865698325,
-> 1496359675371541
-> );
Empty set (0.001 sec)
An empty set result means that there are no references. Once the duplicate entries are verified as unreferenced, proceed with cleanup.
Delete identified duplicate records:
DELETE FROM bsc.RadiusServerConfig
WHERE ID IN (
364400957614080,
365649050552320,
365650029555712,
1496343664676883,
1496355865698325,
1496359675371541
)
AND name = 'DefaultConfig'
AND type = 1;
Expected result:
deleted_rows
------------
6
Verify that duplicate entries are removed and only correct DefaultConfig entry remains.
SELECT * FROM bsc.RadiusServerConfig;
Note: Direct database modifications should only be performed after taking a current database backup and preferably during a maintenance window under Fortinet Support guidance.
|