-
Notifications
You must be signed in to change notification settings - Fork 680
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AssertionError: Result length not requested length: #278
Comments
I am also getting this kind of error. had to wrap try/catch block to skip this
|
Could you please specify the following:
|
I run into this problem today, have anyone managed to come up with a solution? |
|
@dongwook-chan Is there a way to avoid this error by doing some try/catch and keep the replication running? |
Hi @dongwook-chan, any updates for me? Thanks |
@hgdangkhoi |
So I have scenario.
Than you'll see error something like this:
|
Thank you for the detailed instruction. I managed to follow the steps 1 to 5. ...
pg_cham:
build:
context: .
dockerfile: pg_cham_build
... However, I ran into exceptions below while executing the first command in step 6; commands for step 6[@host]$ sudo docker exec -it {continaer id} /bin/bash
pg_cham@{container id}$ chameleon create_replica_schema --debug exceptionspg_cham@ac9fda246651:/code$ chameleon create_replica_schema --debug
Traceback (most recent call last):
File "/usr/local/bin/chameleon", line 5, in <module>
exec(compile(open(__file__).read(), __file__, 'exec'))
File "/usr/local/bin/chameleon.py", line 56, in <module>
replica = replica_engine(args)
File "/usr/local/lib/python3.10/site-packages/pg_chameleon/lib/global_lib.py", line 147, in __init__
catalog_version = self.pg_engine.get_catalog_version()
File "/usr/local/lib/python3.10/site-packages/pg_chameleon/lib/pg_lib.py", line 2133, in get_catalog_version
self.connect_db()
File "/usr/local/lib/python3.10/site-packages/pg_chameleon/lib/pg_lib.py", line 672, in connect_db
self.pgsql_conn = psycopg2.connect(strconn)
File "/usr/local/lib/python3.10/site-packages/psycopg2/__init__.py", line 122, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: connection to server at "db-psql" (172.18.1.4), port 5432 failed: FATAL: password authentication failed for user "usr_replica"
Exception ignored in: <function pg_engine.__del__ at 0x7f3483737400>
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/pg_chameleon/lib/pg_lib.py", line 649, in __del__
self.disconnect_db()
File "/usr/local/lib/python3.10/site-packages/pg_chameleon/lib/pg_lib.py", line 691, in disconnect_db
if self.pgsql_cur:
AttributeError: 'pg_engine' object has no attribute 'pgsql_cur' Unfortunately, since I'm not familiar with |
It is because pg_cham container started up earlie than postgres container. I think you should rewrite definition of pg_cham:
So it will start after mysql and psql |
@kvitek |
@kvitek |
@dongwook-chan |
@kvitek |
with encoding utf8mb4. TODO - file a bug report
We are using pg_chameleon for replicating data from MySQL to PostgreSQL and pg_chameleon is using python-MySQL-replication internally. We are getting below error during replication. Is there any way to resolve it.
The text was updated successfully, but these errors were encountered: