Technical Tip: [FortiSOAR Tricks'n'Tips] Web Socket (Live Sync) is Red (Not Working)
Web Socket (Live UI)
Live UI provides users with many benefits, such as immediate refreshing of records in case of an update by users or workflow (playbook or API), without the users having to refresh the views to see the updates manually.
This is applicable for the following UI components:
- Grid and Relationship grid (view panel)
- Details View Panel
- Collaboration Panel: Comments or Attachments
- Approvals in notification panel

Challenge
Sometimes while working with FortiSOARâ„¢ or after upgrading your FortiSOARâ„¢ instance, after you log on into the FortiSOARâ„¢ UI, you might observe that the Web Socket (Live UI) is "Red" which indicates that the FortiSOARâ„¢ instance is disconnected to the web sockets server as shown in the following image:

Solution
To resolve this issue, you can use any of the following methods.
Method 1: Check the Tomcat Service
- ssh to machine as a root user and type the following command:
csadm services --status
The output of the above command get displayed as follows:
- If the "Tomcat" service is not running, restart the Tomcat service using the following command:
# systemctl restart cyops-tomcat - Check the status of all the services again using the the following command:
csadm service --status
Now, the Tomcat service should be running, as displayed in the following image:
- Verify the web socket status on the UI, if it is "Green", then the Web Socket (Live Sync) is in a working state.
Method 2: Check that the hostname is pointing to your FortiSOARâ„¢ instance
- ssh to machine as a root user.
- Check the notifier logs using the following command:
# less /var/log/cyops/cyops-notifier/notifier.log - Check if the notifier.log contains the following type of exception:
Caused by: org.springframework.web.client.ResourceAccessException: I/O error Get request for https://Hostname/api/3:Hostname: Name or service not known; nested exception is java.net.UnknownException: Hostname: Name or service not known.
This exception means that the hostname in /etc/cyops/config.yml file is not pointing to your FortiSOARâ„¢ instance. - The hostname in the /etc/cyops/config.yml file must point to your FortiSOARâ„¢ instance. It must resolve to the current node, or alternatively, you can set it to "localhost" as follows:
# vi /etc/cyops/config.yml
crudhub_host: https://Hostname - Restart the Tomcat service using the following command:
# systemctl restart cyops-tomcat
