Created on
05-24-2023
08:49 AM
Edited on
10-14-2025
03:30 AM
By
Chairman_82
Description
This article describes what the 'Unexpected setup rsp code 401' error means and how to resolve the issue.
Scope
FortiGate VM.
Solution
get system status
Version: FortiGate-VM64-KVM v7.0.11,build0489,230314 (GA.M)
---truncated---
Serial-Number: FGVM02TMXXXXXXXX
License Status: Invalid Copy
---truncated---
Upon performing a debug update, the update will fail:
diagnose debug application update -1
diagnose debug enable
execute update-now
upd_vm_cfg_set_status[281]- Saved status code 401
upd_pkg_verify_setup_rsp[1145]- Unexpected setup rsp code 401
upd_act_setup_with_action[208]-Received invalid setup rsp
---truncated---
upd_vm_process[867]-last duplicate 316 seconds ago
upd_vm_process[867]-last duplicate 321 seconds ago
upd_vm_process[867]-last duplicate 326 seconds ago
diagnose hardware sysinfo vm full
UUID: 91d3578cb18747b6be411xxxxxxxxx
valid: 1
status: 4
code: 401 <- Code for Duplicate License used.
warn: 0
copy: 1
received: 4294940543
warning: 4295030640
recv: 202305101410
dup: 202305101352
On the system event log:
date=2021-03-01 time=09:22:47 eventtime=1614619367380442747 tz="-0800" logid="0100022804" type="event" subtype="system" level="critical" vd="root" logdesc="License status changed" service="license" sn="FGVM02TMXXXXXXXX" status="INVALID" msg="Duplicate License has been detected"
This errors occurs because this FortiGate VM loads a license which is being used by another FortiGate VM.
To solve this, ensure the correct license file has been downloaded and is not in use by any other VM. If it's used on another VM then please ensure to shutdown that VM or remove the VM instance. Then, navigate to System -> FortiGuard in the GUI and select FortiGate VM license:
Upload the new license to '<file-name>.lic'.
If the issue persists even after performing the above steps, please open the case with the Fortinet TAC support.
Related document:
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.