#Local setup Issue

1 messages · Page 1 of 1 (latest)

potent phoenix
#

While setting up the project locally when I run the command npx nx database:reset twenty-server
I keep getting this role does not exist error. Even though I have checked the docker container where twenty role does exist and is owner of default database. I don't understand what am I doing wrong. Please help

narrow spoke
#

Do you have Redis container installed?

potent phoenix
#

I did it just now. But still getting the same error role does not exist. Note: Postgres is running via docker and is running fine.

narrow spoke
#

Just to be sure, are postgres and docker containers running when you're executing this command?

potent phoenix
#

Yes, postgres docker container is running simultaneously on another tab

potent phoenix
#

Hey, I did

      - "5433:5432"

and changed to 5433 in PG_DATABASE_URL=postgres://twenty:twenty@localhost:5433/default

ran the command npx nx database:reset twenty-server once again, and everything worked smoothly. My local machine's postgres process was clashing with the docker one, hence it couldn't find the role "twenty"
Thanks for the support @narrow spoke 🙂

narrow spoke
#

Ah, that explains everything, good for you it worked out

potent phoenix
#

I now get this typescript issue. I haven't touched the code though. How can I fix this issue? Just commenting out the code will work or something is wrong in my configuration? @narrow spoke

narrow spoke
#

That's only a test, you don't have to worry about it unless some functionality is broken