NicolasConstant / BirdsiteLive

An ethical bridge from Twitter
GNU Affero General Public License v3.0
457 stars 36 forks source link

[Issue] Npgsql.PostgresException - password authentication failed for user #146

Closed Goelant closed 2 years ago

Goelant commented 2 years ago

Hey ! First of all : what a great tool you made, thanks a lot !

I just had a little issue while creating my instance. I was trying to change all passwords from the database area, looking to not make any miss-match between up and down section.

Once done, I ran the docker compose command but when I tried to run the website, it gave me a 500 : With docker logs I found the error code of this issue's title.

I then recovered the default DB name, username and password and it worked. I added this same single letter to both of them, composed and got the 500 back.

Maybe i made a mistake on how to edit postgre's password ?

Here is my .yml file, and as you can see, Name, Password and User strings are the same image

Here is my failing request with custom credentials : image

And finaly logs from docker : image image

I'm pretty sure that I'm doing a bad mistake but well, if I can then help other peoples doing mistakes by filling an issue i'm doing it xD !

NicolasConstant commented 2 years ago

If you started-up the instance with defaults credentials before changing them, then your postgres DB is already created and will not be changed/recreated after that.

To reset the DB, just remove the ./postgres folder and relaunch the instance with the proper credentials you want to use. It should work after that. 🙂

Goelant commented 2 years ago

I tried to do that but it seems I can't get it to work even by deleting ./postgres ... I maybe have somehwere a problem with docker ... I'll keep you up

NicolasConstant commented 2 years ago

Please try this;

it should be working at this point

Goelant commented 2 years ago

Well now that I swaped docker-compose file to stock one I cant get it to work at all anymore, it must be a problem with docker, i'll try to find out why it cant log to postgres ... Thanks a lot for your help and your time i'll keep you up

[EDIT] I made a huge breakthrough :

   Exception data:
     Severity: ERROR
     SqlState: 42P01
     MessageText: relation "twitter_users" does not exist
      Position: 22
     File: parse_relation.c
     Line: 1160
     Routine: parserOpenTable

It seems that I can log but now there is an issue with my tables

Goelant commented 2 years ago

OMG I GOT IT TO WORK !

So this is what I did :

Thanks a lot again, I'm now waiting for twitter to give me elevated accesses and there will be a new birdsitelive instance :D

NicolasConstant commented 2 years ago

Glad it work!

found out I didn't have postgressql installed globaly, but I do not think there were an effect ... In a doubting situation I installed it

You weren't using the postgres docker image?

Goelant commented 2 years ago

I was using it but I think I was so desesperate that I tried to find issues in another place ... xD I'm pretty sure installing postgres aside didn't change anything ahah

NicolasConstant commented 2 years ago

It's working, it's the more important. 🙂