question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CloudSQL proxy download doesn't work for `x86_64` systems

See original GitHub issue

Apache Airflow version

2.3.0 (latest released)

What happened

The automatic cloud_sql_proxy download via the CloudSqlProxyRunner is not working because the environment is using the uname -a info and it is pull x86_64. The url for the cloud_sql_proxy binaries are no longer using x86_64. Instead, the binaries are now using amd64 indicator.

What you think should happen instead

The hardcoded process should be opened up to include a user defined option via an extra parameter for the CloudSQLDatabaseHook and other hooks. This would hedge for future URL updates without the need for a full blown release.

How to reproduce

Run in an environment that has no local copy of the cloud_sql_proxy and the uname -a gives x86_64.

Operating System

Linux

Versions of Apache Airflow Providers

No response

Deployment

Composer

Deployment details

No response

Anything else

This will happen every time the _download_sql_proxy_if_needed is ran in an x86_64 environment.

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
denver-at-takeoffcommented, May 5, 2022

Thanks didn’t catch that previous ticket when I initially search for this issue.

0reactions
potiukcommented, May 5, 2022

No worries. Not always easy indeed. I KNEW there was a change but I had trouble finding it too 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bug Description - GitHub
Download from dl.google.com doesn't work: : v1.18.0/linux.amd64 #462 ... proxy version should work --- PASS stdout: Cloud SQL Proxy: 1.18.0 ...
Read more >
Connect using the Cloud SQL Auth proxy
The Cloud SQL Auth proxy: Works with both public and private IP endpoints; Validates connections using credentials for a user or service account;...
Read more >
Running Google Cloud SQL Proxy on Raspberry
download_proxy.sh downloads the proxy compiled for the amd64 architecture of CPU (aka x86_64). Your raspberry Pi has a ARM CPU, ...
Read more >
ProxySQL - A High Performance Open Source MySQL Proxy
ProxySQL is a MySQL protocol proxy supporting Amazon Aurora, RDS, ClickHouse, Galera, Group Replication, MariaDB Server, NDB, Percona Server ...
Read more >
Source code for airflow.providers.google.cloud.hooks.cloud_sql
[docs]class CloudSQLHook(GoogleBaseHook): """ Hook for Google Cloud SQL APIs. ... 200: raise AirflowException( "The cloud-sql-proxy could not be downloaded.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found