irfan_alam
01/06/2021, 2:48 AMpsycopg2.OperationalError: SSL SYSCALL error: EOF detected
While transferring data from tap-postgres to target-postgres.
The table has about 32 Lac rows.
meltano | Running extract & load...
meltano | No state was found, complete import.
target-postgres | INFO PostgresTarget created with established connection: `user=xxx password=xxx dbname=xxx host=xxx port=xxx sslmode=prefer sslcert=~/.postgresql/postgresql.crt sslkey=~/.postgresql/postgresql.key sslrootcert=~/.postgresql/root.crt sslcrl=~/.postgresql/root.crl`, PostgreSQL schema: `xxx_schema`
tap-postgres | time=2021-01-05 19:16:58 name=tap_postgres level=INFO message=Selected streams: []
target-postgres | INFO Sending version information to <http://singer.io|singer.io>. To disable sending anonymous usage data, set the config parameter "disable_collection" to true
tap-postgres | time=2021-01-05 19:25:57 name=tap_postgres level=INFO message=No streams marked as currently_syncing in state file
target-postgres | Traceback (most recent call last):
target-postgres | File "/project/.meltano/loaders/target-postgres/venv/bin/target-postgres", line 8, in <module>
target-postgres | sys.exit(cli())
target-postgres | File "/project/.meltano/loaders/target-postgres/venv/lib/python3.6/site-packages/target_postgres/__init__.py", line 45, in cli
target-postgres | main(args.config)
target-postgres | File "/project/.meltano/loaders/target-postgres/venv/lib/python3.6/site-packages/target_postgres/__init__.py", line 39, in main
target-postgres | target_tools.main(postgres_target)
target-postgres | psycopg2.OperationalError: SSL SYSCALL error: EOF detected
target-postgres |
meltano | Loading failed (1): (see above)
meltano | ELT could not be completed: Target failed
Can anyone please help?irfan_alam
01/06/2021, 3:27 AMlogging_level: DEBUG
meltano | Running extract & load...
meltano | No state was found, complete import.
target-postgres | INFO PostgresTarget created with established connection: `user=xxx password=xxx dbname=xxx host=xxx port=xxx sslmode=prefer sslcert=~/.postgresql/postgresql.crt sslkey=~/.postgresql/postgresql.key sslrootcert=~/.postgresql/root.crt sslcrl=~/.postgresql/root.crl`, PostgreSQL schema: `xxx_schema`
target-postgres | DEBUG PostgresTarget set to log all queries.
tap-postgres | time=2021-01-06 03:04:32 name=tap_postgres level=INFO message=Selected streams: []
target-postgres | DEBUG MillisLoggingConnection: 456 millis spent executing: b"\n SELECT c.relname, obj_description(c.oid, 'pg_class')\n FROM pg_namespace AS n\n INNER JOIN pg_class AS c ON n.oid = c.relnamespace\n WHERE n.nspname = 'xxx_schema';\n "
target-postgres | DEBUG MillisLoggingConnection: 227 millis spent executing: b"\n SELECT c.relname, obj_description(c.oid, 'pg_class')\n FROM pg_namespace AS n\n INNER JOIN pg_class AS c ON n.oid = c.relnamespace\n WHERE n.nspname = 'xxx_schema';\n "
target-postgres | INFO Sending version information to <http://singer.io|singer.io>. To disable sending anonymous usage data, set the config parameter "disable_collection" to true
target-postgres | DEBUG Collection request failed
tap-postgres | time=2021-01-06 03:12:03 name=tap_postgres level=INFO message=No streams marked as currently_syncing in state file
target-postgres | Traceback (most recent call last):
target-postgres | File "/project/.meltano/loaders/target-postgres/venv/bin/target-postgres", line 8, in <module>
target-postgres | sys.exit(cli())
target-postgres | File "/project/.meltano/loaders/target-postgres/venv/lib/python3.6/site-packages/target_postgres/__init__.py", line 45, in cli
target-postgres | main(args.config)
target-postgres | File "/project/.meltano/loaders/target-postgres/venv/lib/python3.6/site-packages/target_postgres/__init__.py", line 39, in main
target-postgres | target_tools.main(postgres_target)
target-postgres | psycopg2.OperationalError: SSL SYSCALL error: EOF detected
target-postgres |
meltano | Loading failed (1): (see above)
meltano | ELT could not be completed: Target failed
ELT could not be completed: Target failed
zachary_bricker
01/06/2021, 3:46 AMirfan_alam
01/06/2021, 8:24 AMirfan_alam
01/06/2021, 8:27 AMmeltano.yml
, the process gets stuck at this step for quite long time meltano | No state was found, complete import.
and then gets failed. In 1 out of 10 it gets succeeedirfan_alam
01/06/2021, 8:27 AMdouwe_maan
01/06/2021, 6:03 PMI am getting this error -psycopg2.OperationalError: SSL SYSCALL error: EOF detected
While transferring data from tap-postgres to target-postgres.@irfan_alam https://github.com/psycopg/psycopg2/issues/533 suggests that this means that the database is closing the connection prematurely, possibly because of an out-of-memory issue. Is that possible?
douwe_maan
01/06/2021, 6:05 PMWhen I set configurations in, the process gets stuck at this step for quite long timemeltano.yml
and then gets failed. In 1 out of 10 it gets succeeedmeltano | No state was found, complete import.
when I use env variables then it works all the time@irfan_alam Do you see a difference in the output for
meltano config target-postgres
when you use meltano.yml
vs environment variables?irfan_alam
01/07/2021, 10:43 AMdouwe_maan
01/07/2021, 2:58 PMirfan_alam
01/08/2021, 3:07 AMpsycopg2.OperationalError: SSL SYSCALL error: EOF detected
target-postgres | CRITICAL cursor already closed
Parts of the log
tap-freshdesk | INFO Completed sync
target-postgres | DEBUG MillisLoggingConnection: 0 millis spent executing: b'BEGIN;'
target-postgres | DEBUG MillisLoggingConnection: 0 millis spent executing: b'BEGIN;'
target-postgres | CRITICAL cursor already closed
target-postgres | Traceback (most recent call last):
target-postgres | File "/project/.meltano/loaders/target-postgres/venv/lib/python3.7/site-packages/target_postgres/postgres.py", line 234, in write_batch
target-postgres | cur.execute('BEGIN;')
target-postgres | File "/project/.meltano/loaders/target-postgres/venv/lib/python3.7/site-packages/target_postgres/postgres.py", line 65, in execute
target-postgres | return super(_MillisLoggingCursor, self).execute(query, vars)
target-postgres | File "/project/.meltano/loaders/target-postgres/venv/lib/python3.7/site-packages/psycopg2/extras.py", line 461, in execute
target-postgres | return super(LoggingCursor, self).execute(query, vars)
target-postgres | psycopg2.OperationalError: SSL SYSCALL error: EOF detected
douwe_maan
01/08/2021, 4:39 PMirfan_alam
01/09/2021, 5:22 AMdouwe_maan
01/11/2021, 5:24 PMdouwe_maan
01/11/2021, 5:26 PMdouwe_maan
01/11/2021, 5:28 PMdouwe_maan
01/11/2021, 5:29 PMdouwe_maan
01/11/2021, 5:32 PM