Skip to content
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

snowflake-connector-python fails in datahub-ingestion base image due to oscrypto bug #9192

Closed
lzrlee opened this issue Nov 6, 2023 · 4 comments · Fixed by #9524
Closed
Labels
accepted An Issue that is confirmed as a bug by the DataHub Maintainers. bug Bug report

Comments

@lzrlee
Copy link

lzrlee commented Nov 6, 2023

Describe the bug
After upgrading to 0.12.0 and using a snowflake ingestion yaml, we are receiving the following error when connecting 'snowflake-connection': ['Failed to connect to snowflake instance due to error Error detecting the version of libcrypto.']

This is due to an issue with the oscrypto dependency in snowflake-python-connect:

To Reproduce
Steps to reproduce the behavior:

  1. Deploy a datahub-ingest-cron cronjob for Snowflake
  2. Run a manual job: `kubectl create job --from=cronjob/
  3. read logs of the cron job and see error logs

Expected behavior
Snowflake Ingestion job to succeed correctly

Screenshots
Logs:

[2023-11-06 19:52:52,783] INFO     {datahub.cli.ingest_cli:147} - DataHub CLI version: 0.12.0+docker
[2023-11-06 19:52:53,069] INFO     {datahub.ingestion.run.pipeline:213} - Sink configured successfully. DataHubRestEmitter: ****
[2023-11-06 19:53:06,058] INFO     {datahub.ingestion.source_config.sql.snowflake:139} - using authenticator type 'DEFAULT_AUTHENTICATOR'
[2023-11-06 19:53:06,299] INFO     {datahub.ingestion.run.pipeline:230} - Source configured successfully.
[2023-11-06 19:53:06,300] INFO     {datahub.cli.ingest_cli:128} - Starting metadata ingestion
[2023-11-06 19:53:06,673] ERROR    {datahub.ingestion.source.snowflake.snowflake_v2:234} - snowflake-connection => Failed to connect to snowflake instance due to error Error detecting the version of libcrypto.
[2023-11-06 19:53:06,956] INFO     {datahub.ingestion.source.state.checkpoint:145} - Successfully constructed last checkpoint state for job common_ingest_from_sql_source with timestamp 2023-10-05 12:28:10.564000+00:00
[2023-11-06 19:53:06,959] INFO     {datahub.ingestion.run.pipeline:476} - Processing commit request for DatahubIngestionCheckpointingProvider. Commit policy = CommitPolicy.ON_NO_ERRORS, has_errors=True, has_warnings=False
[2023-11-06 19:53:06,959] WARNING  {datahub.ingestion.run.pipeline:485} - Skipping commit request for DatahubIngestionCheckpointingProvider since policy requirements are not met.
[2023-11-06 19:53:06,988] INFO     {datahub.cli.ingest_cli:141} - Finished metadata ingestion

Cli report:
{'cli_version': '0.12.0+docker',
 'cli_entry_location': '/datahub-ingestion/.local/lib/python3.10/site-packages/datahub/__init__.py',
 'py_version': '3.10.13 (main, Oct 12 2023, 10:20:20) [GCC 12.2.0]',
 'py_exec_path': '/usr/local/bin/python',
 'os_details': 'Linux-5.15.134-x86_64-with-glibc2.36',
...

Source (snowflake) report:
{

...


 'failures': {'snowflake-connection': ['Failed to connect to snowflake instance due to error Error detecting the version of libcrypto.'],
              'stale-entity-removal': ['Skipping stale entity soft-deletion because the source produced no events. This is a fail-safe mechanism to prevent accidental deletion of all entities.']},
....

Sink (datahub-rest) report: ...

 Pipeline finished with at least 2 failures; produced 0 events in 0.83 seconds.

Desktop (please complete the following information):

  • OS: linux (k8s Docker)
  • Browser N/a
  • Version Datahub 0.12.0

Additional context

@lzrlee lzrlee added the bug Bug report label Nov 6, 2023
@lzrlee lzrlee changed the title snowflake-python-connector fails in datahub-ingestion base image due to oscrypto bug snowflake-connector-python fails in datahub-ingestion base image due to oscrypto bug Nov 6, 2023
Copy link

github-actions bot commented Dec 7, 2023

This issue is stale because it has been open for 30 days with no activity. If you believe this is still an issue on the latest DataHub release please leave a comment with the version that you tested it with. If this is a question/discussion please head to https://slack.datahubproject.io. For feature requests please use https://feature-requests.datahubproject.io

@github-actions github-actions bot added the stale label Dec 7, 2023
@rospe
Copy link

rospe commented Dec 13, 2023

still not fixed in v0.12.1. We cannot deploy to prod until this is resolved.

@tkdrahn
Copy link
Contributor

tkdrahn commented Dec 13, 2023

Getting same issue with v0.11.0.5 . It works fine with v0.11.0.4

@github-actions github-actions bot removed the stale label Dec 14, 2023
@hsheth2
Copy link
Collaborator

hsheth2 commented Dec 26, 2023

It looks like this was fixed in snowflake-connector-python v3.4.0. We'll be updating our base images shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted An Issue that is confirmed as a bug by the DataHub Maintainers. bug Bug report
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants