osome-iu / hoaxy-backend

Backend component for Hoaxy, a tool to visualize the spread of claims and fact checking
http://hoaxy.iuni.iu.edu/
GNU General Public License v3.0
138 stars 44 forks source link

Error when running hoaxy init #65

Closed awallemo closed 3 years ago

awallemo commented 3 years ago

File "/home/ubuntu/anaconda2/envs/hoaxy/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line 453, in connect return self.dbapi.connect(*cargs, cparams) File "/home/ubuntu/anaconda2/envs/hoaxy/lib/python3.7/site-packages/psycopg2/init.py", line 130, in connect conn = _connect(dsn, connection_factory=connection_factory, kwasync) sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) FATAL: password authentication failed for user "postgres" FATAL: password authentication failed for user "postgres"

I'm getting this error when I run the hoaxy init command. I've done all the steps before correctly. I have made a user, password, database and they are using port 5432 with localhost. I have specified all this info in the conf.yaml file yet I get this error every time.

glciampaglia commented 3 years ago

Hello, What is the name of the database user you created? The error says that user "postgres" could not login, is that the user name you chose?

awallemo commented 3 years ago

Hi gicimpaglia, I managed to resolve the issue. The problem was I created the users in postgres locally on my mac and not on the virtual machine where I was doing everything else.