FortiSwitch
FortiSwitch: secure, simple and scalable Ethernet solutions
sachitdas_FTNT
Article Id 333543
Description This article describes how to resolve a scenario where FortiSwitch is showing the error 'Fail to create socket connection' and not coming online on FortiLAN Cloud.
Scope

FortiSwitch versions 7.2.x and above, FortiLan Cloud.

Solution

To understand how to provision FortiSwitch on FortiLAN Cloud, see this documentation.

 

This article explains the following errors that prevent FortiSwitch from showing online on FortiLAN Cloud.

 

get system flan-cloud-mgr connection-info

Fail to create socket connection

 

When FortiLAN debug is run on the FortiSwitch, the following errors are noticed:

 

diagnose debug application flan-mgr -1

diag debug console timestamp enable

diag debug enable

FortiSwitch # create_and_conn_sockfd:925: [SID: -1] connect() error 10.34.93.89::443. err=Operation now in progress
post_switch_info_pkt:1358: [SID: -1] socket() create error (err=Operation now in progress)
post_switch_info_pkt:1465: Exiting ...(rcode =0)
__switch_state_advt_enter:90: Device [FS1D24Txxxxx] is not authorized for cloud-management.
__do_fsm_restart:70: Entering ...
__do_fsm_restart:86: ** RE-STARTING STATE MACHINE (reason =Fail to create socket connection) **
__do_fsm_restart:198: Starting Service, cloud_suggest_delay= 0, rand_interval= 4
__do_fsm_restart:204: flan_cloud user cfg status = 1
__do_fsm_restart:212: Starting Service, Interval= 4

 

Disable the debugging:

 

diag debug disable

diag debug reset

 

Solution: Make sure that auto-network is disabled.

 

config switch auto-network

set status disable

end

 

Reason: FortiSwitch should be in standalone mode to come online on FortiLAN. Refer to the following article for an explanation of the auto-network functionality: Configuring auto-topology - FortiSwitch OS administration guide.