BeaconCMS / beacon_demo

Sample application running Beacon, a open-source content management system (CMS) built with Phoenix LiveView.
https://beaconcms.org
MIT License
50 stars 14 forks source link

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

Open raffaelschneider opened 1 year ago

raffaelschneider commented 1 year ago

Setup

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 commented 1 year ago

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';