Postgres ECONN 5432?

Hey everyone, happy new year! I restarted my computer and started up my server again connected to a postgres DB and now am receiving this error:

I know 5432 is the default psql port, but I’m not entirely sure why this is happening. I would imagine postgres stopped running after the restart on my comp? What the heck is going on here?

Turns out the solution is from this three liner if your computer is abruptly restarted and your initial data_directory files in PG are not compatible with your current / updated version: