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
r3mo 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
spleenatsteamOP3mo ago
I can't seem to find that file, where can I find this?
r
r3mo ago
which version of postgres are you using? @spleenatsteam
spleenatsteam
spleenatsteamOP3mo ago
Uh, 14 I think? It seemed to install that version
r
r3mo ago
In that case it should be /etc/postgresql/14/main/pg_hba.conf Replace the number with your version of postgres
spleenatsteam
spleenatsteamOP3mo ago
Would it be under the twenty directory?
No description
r
r3mo ago
No It depends on your postgres installation Try sudo nano /etc/postgresql/14/main/pg_hba.conf
spleenatsteam
spleenatsteamOP3mo ago
oh shit that did something
spleenatsteam
spleenatsteamOP3mo ago
No description
r
r3mo 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
spleenatsteamOP3mo ago
This is the first time I've seen nano haha
r
r3mo ago
What do you use then?
spleenatsteam
spleenatsteamOP3mo ago
I see this right now, there's a few peers
No description
r
r3mo ago
Try changing all of them to trust Including the scram-sha-256 Save and then restart postgres
spleenatsteam
spleenatsteamOP3mo ago
Alright let me try to do that again
spleenatsteam
spleenatsteamOP3mo ago
I seem to still get issues with running this command: npx nx database:reset twenty-server
No description
r
r3mo ago
Did you changed all the method to trust? And restart pg?
spleenatsteam
spleenatsteamOP3mo ago
I did change all to trust, I think I restarted PG, not sure though?
spleenatsteam
spleenatsteamOP3mo ago
I got something new however,
No description
spleenatsteam
spleenatsteamOP3mo ago
No description
spleenatsteam
spleenatsteamOP3mo ago
Got it!!
spleenatsteam
spleenatsteamOP3mo ago
No description
spleenatsteam
spleenatsteamOP3mo ago
@r
r
r3mo ago
Glad it worked!!
stormej
stormej3mo 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?