Postgres Error During Local Setup
Hi, I am getting the following errors when following the local setup instructions (after running
npx nx database:reset twenty-server
):
7 Replies
hi @Bella H, what steps did you follow here https://twenty.com/developers/local-setup?
Twenty - Local Setup
Mostly for contributors or curious developers
Hi @thomast , I went through steps 1-7 for Mac OS, and ran into the above error after running
npx nx database:reset twenty-server
at step 7what option did you choose for step 3?
can you provide the available roles you have in your postgres DB?
could you provide your PG_DATABASE_URL in your .env @Bella H
Hi @thomast and @Bella H , I ran into the same error when trying trying to instal locally on Mac OS.
I chose option 1 (local DB provisioning).
I checked my .env file and it's default settings: PG_DATABASE_URL=postgres://postgres:postgres@localhost:5432/default
Postgres version looks OK:
psql (PostgreSQL) 16.6 (Homebrew)
Any idea how to fix this?
try with user twenty and pswd twenty in your PG_DATABASE_URL
Thank you for your reply @thomast; I tried twenty as user/password, it didn't fix the issue, it appears I can't properly access my Postgres DB, so I'm investigating it.