Build a Database of Video Game Characters - Failed to start

I couldnt complete 165 lessons on Day-1 but only completed 35% and closed it.

Now after 2 days I opened it but I can’t get into psql shell. I ran CodeRoad: Start from Command Palette. It opened CodeRoad page but no psql shell. Here’s what I get if I try to get into psql shell with the command:

camper@codespaces-f9c78c:/workspace/project$ psql --username=freecodecamp --dbname=postgres
psql: error: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

Someone please tell me what I should do.

Hi, I ran into this issue as well. According to Gemini, the issue is with Postgres shutting off.

I was able to fix it by running the below command, then logging in with the command in the hint.

sudo service postgresql start