T
Twenty3mo ago
kshitij

Local setup Issue

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
No description
9 Replies
ɃØĦɆᵾS
ɃØĦɆᵾS3mo ago
Do you have Redis container installed? If not, there's necessary info https://discord.com/channels/1130383047699738754/1276587741144154193/1276601863218794536
kshitij
kshitijOP3mo ago
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.
ɃØĦɆᵾS
ɃØĦɆᵾS3mo ago
Just to be sure, are postgres and docker containers running when you're executing this command?
kshitij
kshitijOP3mo ago
Yes, postgres docker container is running simultaneously on another tab
No description
kshitij
kshitijOP3mo ago
Hey, I did
ports:
- "5433:5432"
ports:
- "5433:5432"
and changed to 5433 in
PG_DATABASE_URL=postgres://twenty:twenty@localhost:5433/default
PG_DATABASE_URL=postgres://twenty:twenty@localhost:5433/default
ran the command
npx nx database:reset twenty-server
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 @bob 🙂
ɃØĦɆᵾS
ɃØĦɆᵾS3mo ago
Ah, that explains everything, good for you it worked out
kshitij
kshitijOP3mo ago
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? @bob
No description
No description
ɃØĦɆᵾS
ɃØĦɆᵾS3mo ago
That's only a test, you don't have to worry about it unless some functionality is broken
kshitij
kshitijOP3mo ago
Commenting it out worked. Project opening fine on chrome. Thanks 🙂
Want results from more Discord servers?
Add your server