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

Mix setup on macOS leads to "role "postgres" does not exist" #5

Open
raffaelschneider opened this issue Aug 25, 2023 · 1 comment
Open

Comments

@raffaelschneider
Copy link

Setup

  • macOS Ventura 13.4
  • Elixir 1.14.4, Erlang/OTP 25 (erts-13.2.2)
  • cmark-gfm (0.29.0.gfm.13) compiled and installed

Issue
I tried to setup the project as described with $ mix setup and get the following log output.

Log output

`12:19:57.826 [debug] Downloading tailwind from https://github.com/tailwindlabs/tailwindcss/releases/download/v3.1.8/tailwindcss-macos-arm64

12:20:03.508 [debug] Downloading esbuild from https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.14.41.tgz

12:20:03.901 [error] Postgrex.Protocol (#PID<0.616.0>) failed to connect: ** (Postgrex.Error) FATAL 28000 (invalid_authorization_specification) role "postgres" does not exist

12:20:03.907 [error] Postgrex.Protocol (#PID<0.621.0>) failed to connect: ** (Postgrex.Error) FATAL 28000 (invalid_authorization_specification) role "postgres" does not exist
** (Mix) The database for BeaconDemo.Repo couldn't be created: killed`
@leandrocp
Copy link
Collaborator

Hi @raffaelschneider you can edit the database configuration to reflect your environment or you can create that user if it's missing:

CREATE USER postgres WITH PASSWORD 'postgres';

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

2 participants