dylan_accorti
09/10/2021, 8:09 PMCannot start extractor: Catalog discovery failed: command ['/project/.meltano/extractors/tap-spreadsheets-anywhere/venv/bin/tap-spreadsheets-anywhere', '--config',
We are running meltano via docker using the latest image and orchestrating via airflow 2.0 and have recently encountered this error in the last few days. I am relatively new to meltano and am stumped as to what to check next.douwe_maan
09/10/2021, 8:11 PMdylan_accorti
09/10/2021, 8:18 PM[2021-09-10 14:45:36,320] {pod_launcher.py:149} INFO - INFO:root:ELT could not be completed: Cannot start extractor: Catalog discovery failed: command ['/project/.meltano/extractors/tap-spreadsheets-anywhere/venv/bin/tap-spreadsheets-anywhere', '--config', '/project/.meltano/run/elt/2021-09-10T144421--tap-spreadsheets-anywhere--target-bigquery/aee21ffc-534c-4366-9e17-8ce4208f9cd6/tap.554307c6-688e-4a35-9c93-7b313e73ea17.config.json', '--discover'] returned 1
[2021-09-10 14:45:36,325] {pod_launcher.py:149} INFO -
[2021-09-10 14:45:36,619] {pod_launcher.py:149} INFO - INFO:root:Completed Meltano pipeline
[2021-09-10 14:45:38,642] {pod_launcher.py:198} INFO - Event: run-meltano-staging-ticket-bigquery.31b5814a9e494cadaef8da441656c333 had an event of type Failed
[2021-09-10 14:45:38,642] {pod_launcher.py:308} ERROR - Event with job id run-meltano-staging-ticket-bigquery.31b5814a9e494cadaef8da441656c333 Failed
[2021-09-10 14:45:38,648] {pod_launcher.py:198} INFO - Event: run-meltano-staging-ticket-bigquery.31b5814a9e494cadaef8da441656c333 had an event of type Failed
[2021-09-10 14:45:38,648] {pod_launcher.py:308} ERROR - Event with job id run-meltano-staging-ticket-bigquery.31b5814a9e494cadaef8da441656c333 Failed
[2021-09-10 14:45:38,702] {taskinstance.py:1503} ERROR - Task failed with exception
Traceback (most recent call last):
File "/opt/python3.8/lib/python3.8/site-packages/airflow/providers/cncf/kubernetes/operators/kubernetes_pod.py", line 368, in execute
raise AirflowException(f'Pod {self.pod.metadata.name} returned a failure: {remote_pod}')
douwe_maan
09/10/2021, 8:19 PMCatalog discovery failed: command [...] returned 1
, but if there’s not we’ll have to debug in a different directiondouwe_maan
09/10/2021, 8:20 PMdouwe_maan
09/10/2021, 8:20 PMmeltano invoke tap-spreadsheets-anywhere --discover
in that same Docker environment / with your same Docker image? That may give us some more informationflorian.hines
09/10/2021, 8:22 PMdouwe_maan
09/10/2021, 8:23 PMcommand X returned 1
suggests that the actual subprocess returned a 1 exitcode, which wouldn’t be affected by our codedouwe_maan
09/10/2021, 8:23 PMdylan_accorti
09/10/2021, 8:36 PMdylan_accorti
09/10/2021, 8:49 PMdylan_accorti
09/10/2021, 8:55 PM[2021-09-10 14:45:36,156] {pod_launcher.py:149} INFO - INFO:root:TypeError: can't concat generator to bytes
[2021-09-10 14:45:36,156] {pod_launcher.py:149} INFO -
[2021-09-10 14:45:36,159] {pod_launcher.py:149} INFO - INFO:root:meltano | ELT could not be completed: Cannot start extractor: Catalog discovery failed: command ['/project/.meltano/extractors/tap-spreadsheets-anywhere/venv/bin/tap-spreadsheets-anywhere', '--config', '/project/.meltano/run/elt/2021-09-10T144421--tap-spreadsheets-anywhere--target-bigquery/aee21ffc-534c-4366-9e17-8ce4208f9cd6/tap.554307c6-688e-4a35-9c93-7b313e73ea17.config.json', '--discover'] returned 1
florian.hines
09/10/2021, 8:56 PMdouwe_maan
09/10/2021, 8:57 PMmeltano invoke tap-spreadsheets-anywhere --discover
by itself runs fine, I’m having trouble understanding where the 1 returncode is coming fromdouwe_maan
09/10/2021, 8:57 PMflorian.hines
09/10/2021, 8:58 PMdouwe_maan
09/10/2021, 8:58 PMdouwe_maan
09/10/2021, 9:01 PM<http://registry.gitlab.com/meltano/meltano:f5774af62847b100f055600bd085a769f6f3c50f-python3.6|registry.gitlab.com/meltano/meltano:f5774af62847b100f055600bd085a769f6f3c50f-python3.6>
, where 3.6
can be replaced with 3.7
or 3.8
dylan_accorti
09/10/2021, 9:03 PMdylan_accorti
09/11/2021, 4:04 PMdylan_accorti
09/13/2021, 4:49 PMELT could not be completed: Cannot start extractor: Catalog discovery failed: command ['/project/.meltano/extractors/tap-spreadsheets-anywhere/venv/bin/tap-spreadsheets-anywhere', '--config', '/project/.meltano/run/elt/2021-09-12T041216--tap-spreadsheets-anywhere--target-bigquery/719e7209-a9b5-471a-8c45-716d761bbd74/tap.3b986729-0924-4455-b3f1-27cd19f872d6.config.json', '--discover'] returned 1
douwe_maan
09/13/2021, 4:55 PMmeltano invoke tap-spreadsheets-anywhere --discover
, it gets an exitcode of 1 (indicating an error). Can you confirm once more that running that directly succeeds without any error messages?eric_simmerman
09/30/2021, 5:16 PMwyatt
10/05/2021, 2:34 PMELT could not be completed: Cannot start extractor: Catalog discovery failed: command ['/project/.meltano/extractors/tap-postgres/venv/bin/tap-postgres', '--config', '/project/.meltano/run/elt/xdw_to_edw/f6b3457e-db6a-4614-8a36-e255cd33c8f3/tap.34633486-f760-4d6f-a00b-457d107fa6e8.config.json', '--discover'] returned 1
wyatt
10/05/2021, 2:35 PMflorian.hines
10/05/2021, 3:10 PMwyatt
10/05/2021, 11:46 PM