Cli not running

So I noticed my automations not running, tried to login to my ha and nothing , page not found, on all devices, pi boots up.i enter username: root and I get a message cli not running,
I really don’t want to have to reinstall again.
I can filezilla into my pi and my router is saying that my pi is one the local network.
Any ideas,I would be greatful.

Thank you