Learn Relational Databases by Building a Database of Video Game Characters - Build a Database of Video Game Characters bash: d: command not found

Tell us what’s happening:

Terminal commands in VS Code mac say “bash: d: command not found” for restarted Gitpod project / freecodecamp

I went to the Gitpod dashboard, restarted the project, I have used command palleted to run “CodeRoad: Start”. I can see the CodeRoad window in vscode which is uptodate, but no terminal commands will run

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36

Challenge Information:

Learn Relational Databases by Building a Database of Video Game Characters - Build a Database of Video Game Characters

1 Like

Would you post a screenshot of your workspace, please?

Did you log back in after you restarted? psql --username=freecodecamp --dbname=postgres

2 Likes

Hey - thanks for your help. I tried

psql --username=freecodecamp --dbname=postgres

in both the gitpod + vscode (desktop & browser) as well as running it in docker locally (via instructions here).

On both versions it didn’t work (screenshots attached).

I think it might be something to do with psql terminal application not starting as the behaviour is consistent via gitpod or local docker instance (docker was running in background)

Screenshots below / any suggestions appreciated - thank you.

Via gitpod / vs code


Via docker local

.

I made some progress on my local docker instance using:

  1. Manual psql terminal restart > sudo service postgresql start
  2. Confirm restart success > pg_isready
  3. psql --username=freecodecamp --dbname=postgres

Steps 1-3 work in docker:

but not 3 fails via gitpod (via vs code desktop):

issue with docker local instance is I don’t think there’s a way to reflect my progress on freecodecamp

1 Like

In your Gitpod environment, what do you see when you click the “Ports” tab?

This is what I’m seeing for the same project:

2 Likes

There’s a load of ports for some reason;

1 Like

note that only the green dots are active

1 Like

Did you do this bit from the instructions when you restarted your local Docker instance?

Also, in Gitpod, do you have more than one dashboard entry for the same project by chance? If so, you may need to delete all but the first to get your progress back.

On your local system, can you run other things under localhost successfully like right clicking on an index.html file and clicking “Open with Live Server”?

I will say that although I haven’t tried to run these projects locally like you have, I have found Gitpod to be a bit quirky.

appreciate your help :slightly_smiling_face:

Re Gitpod I have checked and can verify

:white_check_mark: I don’t have duplicated entries for the same project
:white_check_mark: I can run a simple hello via index.html in the project via live server (and have no issues using things like the next dev server etc in other projects).

:white_check_mark: I did try rebuild container previously but lost the progress so didn’t want to do it again.

Have also read Gitpod and maybe CodeRoad are a bit flakey so definitely aligns.

Not too blocked from a learning point of view because I’ve got it running on a docker instance but think it’s not great for learners etc.

Will see if I can report the bug / share feedback with the FreeCode camp team :slightly_smiling_face:

Thanks again for trying