Struggling to launch with npx nx database:reset twenty-server

Seems like I'm getting an issue with a password authentication in when I execute this command.
No description
25 Replies
r
r4mo ago
@spleenatsteam I had the same issue before. If you're just testing, you can try changing 'peer' to 'trust' in your PostgreSQL config usually in /etc/postgresql/16/main/pg_hba.conf . However, keep in mind that this setting allows local connections (from the same machine) without a password, which is generally safe but not ideal for production environments.
spleenatsteam
spleenatsteamOP4mo ago
I can't seem to find that file, where can I find this?
r
r4mo ago
which version of postgres are you using? @spleenatsteam
spleenatsteam
spleenatsteamOP4mo ago
Uh, 14 I think? It seemed to install that version
r
r4mo ago
In that case it should be /etc/postgresql/14/main/pg_hba.conf Replace the number with your version of postgres
spleenatsteam
spleenatsteamOP4mo ago
Would it be under the twenty directory?
No description
r
r4mo ago
No It depends on your postgres installation Try sudo nano /etc/postgresql/14/main/pg_hba.conf
spleenatsteam
spleenatsteamOP4mo ago
oh shit that did something
spleenatsteam
spleenatsteamOP4mo ago
No description
r
r4mo ago
Yes that's the one Go to the bottom and do this You can use your preferred text editor if you're not familiar with nano
spleenatsteam
spleenatsteamOP4mo ago
This is the first time I've seen nano haha
r
r4mo ago
What do you use then?
spleenatsteam
spleenatsteamOP4mo ago
I see this right now, there's a few peers
No description
r
r4mo ago
Try changing all of them to trust Including the scram-sha-256 Save and then restart postgres
spleenatsteam
spleenatsteamOP4mo ago
Alright let me try to do that again
spleenatsteam
spleenatsteamOP4mo ago
I seem to still get issues with running this command: npx nx database:reset twenty-server
No description
r
r4mo ago
Did you changed all the method to trust? And restart pg?
spleenatsteam
spleenatsteamOP4mo ago
I did change all to trust, I think I restarted PG, not sure though?
spleenatsteam
spleenatsteamOP4mo ago
I got something new however,
No description
spleenatsteam
spleenatsteamOP4mo ago
No description
spleenatsteam
spleenatsteamOP4mo ago
Got it!!
spleenatsteam
spleenatsteamOP4mo ago
No description
spleenatsteam
spleenatsteamOP4mo ago
@r
r
r4mo ago
Glad it worked!!
stormej
stormej4mo ago
hey guys i am using this via docker so is there a solution for that? nvm i think it works now, i had done something wrong just had to clear the docker volume

Did you find this page helpful?