Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The setup fails #335

Closed
pmareke opened this issue Feb 6, 2024 · 5 comments
Closed

The setup fails #335

pmareke opened this issue Feb 6, 2024 · 5 comments

Comments

@pmareke
Copy link
Contributor

pmareke commented Feb 6, 2024

Something has changed in the last commits (this morning it workings as expected) and right now the setup fails (the devcontainers are up and running):

image

Related with this another PR

@SiboVG
Copy link

SiboVG commented Feb 6, 2024

Don't know if this is helpful, but I fixed this by starting the PostgreSQL service with brew:

brew services start postgresql

@pmareke
Copy link
Contributor Author

pmareke commented Feb 7, 2024

Don't know if this is helpful, but I fixed this by starting the PostgreSQL service with brew:

brew services start postgresql

Thanks @SiboVG, but I don't want to have Postgres install on my machine, this is why ww use Devcontainers.

@ItsRyanWu
Copy link

Don't know if this is helpful, but I fixed this by starting the PostgreSQL service with brew:

brew services start postgresql

I tried but didn't work
image

@lcx
Copy link
Contributor

lcx commented Feb 7, 2024

@ItsRyanWu this isn't really related to maybe. Here the issue seems to be that there is no postgres user in your postgresql installed by brew. You will have to fix the connection string from rails to use existing users that your setup has.

 host: <%= ENV.fetch("DB_HOST") { "127.0.0.1" } %>
  password: <%= ENV.fetch("POSTGRES_PASSWORD") { nil } %>
  user: <%= ENV.fetch("POSTGRES_USER") { nil } %>

defining the correct values in the .env file for POSTGRES_USER and POSTGRES_PASSWORD should probably fix this issue given what I can see in the PR mentioned by @pmareke

Is this still an issue for you @pmareke because I started it with devcontainers about 10 hours ago and had no issue with postgresql connection issues.

@pmareke
Copy link
Contributor Author

pmareke commented Feb 7, 2024

The problem is fixed now with the PR, thanks!

@pmareke pmareke closed this as completed Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants