Closed myngpog closed 6 months ago
I am getting a similar error. I tried taking down, pruning, and rebuilding the containers and it still did not work. I also tried changing all my ports. It was working before with this same code.
this is for denormalized:
psql: FATAL: no pg_hba.conf entry for host "172.19.0.1", user "postgres", database "postgres", SSL off
this is for normalized_batch:
Traceback (most recent call last):
File "/home/vkrishnan/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 3371, in _wrap_pool_connect
return fn()
File "/home/vkrishnan/.local/lib/python3.6/site-packages/sqlalchemy/pool/base.py", line 327, in connect
return _ConnectionFairy._checkout(self)
File "/home/vkrishnan/.local/lib/python3.6/site-packages/sqlalchemy/pool/base.py", line 894, in _checkout
fairy = _ConnectionRecord.checkout(pool)
File "/home/vkrishnan/.local/lib/python3.6/site-packages/sqlalchemy/pool/base.py", line 493, in checkout
rec = pool._do_get()
File "/home/vkrishnan/.local/lib/python3.6/site-packages/sqlalchemy/pool/impl.py", line 146, in _do_get
self._dec_overflow()
File "/home/vkrishnan/.local/lib/python3.6/site-packages/sqlalchemy/util/langhelpers.py", line 72, in __exit__
with_traceback=exc_tb,
File "/home/vkrishnan/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 211, in raise_
raise exception
File "/home/vkrishnan/.local/lib/python3.6/site-packages/sqlalchemy/pool/impl.py", line 143, in _do_get
return self._create_connection()
File "/home/vkrishnan/.local/lib/python3.6/site-packages/sqlalchemy/pool/base.py", line 273, in _create_connection
return _ConnectionRecord(self)
File "/home/vkrishnan/.local/lib/python3.6/site-packages/sqlalchemy/pool/base.py", line 388, in __init__
self.__connect()
File "/home/vkrishnan/.local/lib/python3.6/site-packages/sqlalchemy/pool/base.py", line 691, in __connect
pool.logger.debug("Error on connect(): %s", e)
File "/home/vkrishnan/.local/lib/python3.6/site-packages/sqlalchemy/util/langhelpers.py", line 72, in __exit__
with_traceback=exc_tb,
File "/home/vkrishnan/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 211, in raise_
raise exception
File "/home/vkrishnan/.local/lib/python3.6/site-packages/sqlalchemy/pool/base.py", line 686, in __connect
self.dbapi_connection = connection = pool._invoke_creator(self)
File "/home/vkrishnan/.local/lib/python3.6/site-packages/sqlalchemy/engine/create.py", line 574, in connect
return dialect.connect(*cargs, **cparams)
File "/home/vkrishnan/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 598, in connect
return self.dbapi.connect(*cargs, **cparams)
File "/home/vkrishnan/.local/lib/python3.6/site-packages/psycopg2/__init__.py", line 122, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: FATAL: the database system is not yet accepting connections
DETAIL: Consistent recovery state has not been yet reached.
Please let me know if anyone has a solution.
is this for index or project? cause i am only working with the normalized stuff, I think I fixed it by changing the links in the .env files but I'm not sure yet as I am waiting for it to load (it's taking a while)
I am working on the indexes homework. What did you change to fix this?
unfortunately, I didn't have that problem when working on the indexes homework assignment. but looking at your error it may have something to do with your ports (I'm not 100% sure though, only like 50%)
hello, I am having the same issue were you able to solve this?
yeah i updated the .env files to match the URL
hey everyone!
To load the data, (Task 2.2) I am using the load_tweets.py and loat_parallel.sh files from twitter_postgres_parallel files (and have only changed the ports to match my current one), but when I run it
sh load_parallel.sh
, I get this:any idea? thanks!