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