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.
iskandar_lie
Staff
Staff
Article Id 257794

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 -

diagnose enabl

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
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. Then, navigate to System -> FortiGuard in the GUI and select FortiGate VM license:

 

license is invalid.PNG

 

Upload the new license to '<file-name>.lic'.

 

upload license.PNG

Related document:

https://community.fortinet.com/t5/FortiGate/Technical-Tip-VM-shows-License-status-Invalid-Copy/ta-p/...