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.
acardona
Staff
Staff
Article Id 383088
Description This article describes how to correct the issue when the FortiGate shows the error:'-333' via CLI when trying to provision the mobile token.
Scope FortiGate.
Solution

When trying to provision the new mobile token, the error shown by the CLI is '-333'. The debug shows error 503 Services Unavailable or response invalid, from CLI when trying to provision the token, the error is '-333':

 

To enable debugging:

diagnose fortitoken debug enable
diagnose debug enable

 

ftm_fc_comm_recv_response[239]:response invalid
HTTP/1.1 503 Service Unavailable

 

To disable debugging:

 

diagnose debug disable

 

Verify the following to fix the issue:

  1. If the FortiGate belongs to a cluster, verify that the current primary is registered with the FortiToken licenses:

 

config user fortitoken

    edit <Serial number>

    show

 

  1. Change the FortiGuard configuration to the following:

 

config system fortiguard
    set fortiguard-anycast enable
end 

 

After performing these changes, the debug shows the following message:


ftm_fc_comm_recv_response[266]:receive packet success.

ftm_cfg_send_token_activation_code[338]:sent activation code:

 

After performing the changes from above, and if errors appear like below:

 

image (13).png

 

Continue with restarting the process forticldd to resolve the issue: fnsysctl killall forticldd.

 

Note: unexpected eof while reading is an SSL error. This means the FortiGate started an encrypted SSL connectivity towards FortiCare, but the connection was closed by the remote side unexpectedly, before it finished reading the expected data. Sometimes it can be an issue on a device above the FortiGate unit, like another firewall or router.

 

Sometimes in FortiGuard settings, users might have set the source-ip address as a private IP address when using the SD-WAN scenario, then users can also expect the following error.

 

2026-01-08 10:21:30 ftm_fc_comm_recv_response[229]:recv packet error: -1,tcps_read,1053, error=1, errno=0, error:0A000126:SSL routines::unexpected eof while reading
2026-01-08 10:21:30 ftm_fc_command[601]:receive from forticare error [-333]
import fortitoken license error: -333

 

Solution: Verify the source-ip configuration under 'config system fortiguard' and unset the source-ip and select the correct 'interface'.