OctoPrint State is "Connecting" all the time

What is the problem?
I can no longer connect to Octoprint through my browser. Octoprint State showing "Connecting" although I'm getting live nozzle and bed temp feed in the terminal.
X,Y & Z controls are blacked out. /dev/ttyACM0 is listed under Serial Port. I could control the printer through the touchscreen normally.

What did you already try to solve it?
Restarted OctoPrint, shut down OctoPrint, and unplugged, turning the printer on first and then OctoPrint, tried multiple cables. the printer connects normally using Pronterface and Repetier Host.

Logs
octoprint-systeminfo-20211026121841.zip (252.9 KB)

Additional information about your network
Custom Made 3D printer, SKR 2 Controller, Marlin 2 firmware, the browser is Chrome, Windows 10 64bit, Raspberry Pi 4 Model B 4GB RAM, OctoPrint v1.7.0, OctoPi 0.18.0

browser.user_agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36
connectivity.connection_check: 1.1.1.1:53
connectivity.connection_ok: true
connectivity.enabled: true
connectivity.online: true
connectivity.resolution_check: octoprint.org
connectivity.resolution_ok: true
env.hardware.cores: 4
env.hardware.freq: 1500
env.hardware.ram: 3959984128
env.os.bits: 32
env.os.id: linux
env.os.platform: linux
env.plugins.pi_support.model: Raspberry Pi 4 Model B Rev 1.2
env.plugins.pi_support.octopi_version: 0.18.0
env.plugins.pi_support.throttle_state: 0x0
env.python.pip: 20.3.3
env.python.version: 3.7.3
env.python.virtualenv: true
octoprint.safe_mode: false
octoprint.version: 1.7.0
systeminfo.generator: systemapi

How can you access the OctoPrint terminal when you can't connect to OctoPrint?
And how do you get the logs?