pgsync: First sync was successful but the further updates doesn't be synced
PGSync version: 2.1.9
Postgres version: 11.12 (AWS RDS)
Elasticsearch version: 7.10.2
Redis version: 6.2.6
Python version: 3.9.9
Problem Description: I’m using the latest pypi pgsync in docker env. First indexing was successful but the following sync doesn’t look to work.
opensearch-pgsync | Syncing kyuluxmain Db: [6,972] => Redis: [0] => Elastic: [0] ...
opensearch-pgsync | Syncing kyuluxmain Db: [6,978] => Redis: [0] => Elastic: [0] ...
opensearch-pgsync | Syncing kyuluxmain Db: [6,984] => Redis: [0] => Elastic: [0] ...
opensearch-pgsync | Syncing kyuluxmain Db: [7,012] => Redis: [0] => Elastic: [0] ...
opensearch-pgsync | Syncing kyuluxmain Db: [7,018] => Redis: [0] => Elastic: [0] ...
opensearch-pgsync | Syncing kyuluxmain Db: [7,024] => Redis: [0] => Elastic: [0] ...
opensearch-pgsync | Syncing kyuluxmain Db: [7,030] => Redis: [0] => Elastic: [0] ...
opensearch-pgsync | Syncing kyuluxmain Db: [7,036] => Redis: [0] => Elastic: [0] ...
opensearch-pgsync | Syncing kyuluxmain Db: [7,066] => Redis: [0] => Elastic: [0] ...
opensearch-pgsync | Syncing kyuluxmain Db: [7,072] => Redis: [0] => Elastic: [0] ...
opensearch-pgsync | Syncing kyuluxmain Db: [7,108] => Redis: [0] => Elastic: [0] ...
opensearch-pgsync | Syncing kyuluxmain Db: [7,114] => Redis: [0] => Elastic: [0] ...
opensearch-pgsync | Syncing kyuluxmain Db: [7,120] => Redis: [0] => Elastic: [0] ...
opensearch-pgsync | Syncing kyuluxmain Db: [7,126] => Redis: [0] => Elastic: [0] ...
opensearch-pgsync | Syncing kyuluxmain Db: [7,132] => Redis: [0] => Elastic: [0] ...
opensearch-pgsync | Syncing kyuluxmain Db: [7,150] => Redis: [0] => Elastic: [0] ...
opensearch-pgsync | Syncing kyuluxmain Db: [7,152] => Redis: [0] => Elastic: [0] ...
I checked kibana and count the number of records in the index but it has not been changed.
Here is my env vars:
environment:
- LOG_LEVEL=INFO
- QUERY_CHUNK_SIZE=1000
- POLL_TIMEOUT=1
- ELASTICSEARCH_SCHEME=https
- ELASTICSEARCH_HOST=******
- ELASTICSEARCH_PORT=9200
- ELASTICSEARCH_USER=*****
- ELASTICSEARCH_PASSWORD=*****
- ELASTICSEARCH_TIMEOUT=100
- ELASTICSEARCH_CHUNK_SIZE=100
- ELASTICSEARCH_VERIFY_CERTS=false
- ELASTICSEARCH_USE_SSL=true
- ELASTICSEARCH_SSL_SHOW_WARN=false
- ELASTICSEARCH_STREAMING_BULK=true
- ELASTICSEARCH_MAX_RETRIES=10
- PG_HOST=*****
- PG_PORT=5432
- PG_USER=*****
- PG_PASSWORD=*****
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_AUTH=*****
Is there anything I can check if the sync is working or not?
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 21 (8 by maintainers)
Same issue here, run pgsync will sync initial data successfully, but first data update in Db show this error:
After that, any data update will make the logs will look like this:
It increases count in Db but not in Redis and ES
I created a new issue https://github.com/toluaina/pgsync/issues/215 for this @tthanh @toluaina
@camirus27 @tthanh I feel this issue is different to the original one. Can you please create a separate issue to with as much details as you can to enable me track it better.