Troublesooting Tip: CLI Console frequent 'Connection Lost' after enabling web-svc-perf under log setting
| Description | This article discusses an issue where the CLI console in the FortiOS web GUI intermittently loses connection and displays a 'Connection lost...' message. |
| Scope | FortiGate. |
| Solution | When this problem occurs, the CLI console in the FortiOS web GUI may frequently close and display the message 'Connection Lost. Press Enter to start a new session.'.
The behavior happens when the Node.JS process unexpectedly restarts while web service logging is enabled. To confirm if the issue matches this condition, review the crash log using the command 'diagnose debug crashlog read'.
Crash log example:
diagnose debug crashlog read ..... 46: 2026-03-31 20:35:01 <02454> Node.JS restarted: (unhandled rejection)
These crash log entries appear each time the Node.JS process restarts, corresponding with CLI console disconnections and the 'Connection Lost' error.
Workaround: Disable web service logging to prevent the issue:
config log setting
Resolution: A permanent fix is tentatively planned for FortiOS versions 7.4.13, 7.6.8, and 8.0.1, subject to change based on ongoing development and testing. |
