-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
Apt MySQL Client fails to install due to incorrect GPG Key #20911
Comments
Yep. OUR CI builds started to fail this morning too. Switching to the new mysql public key now. |
MySQL changed key used to sign their apt packages. This caused docker building failing for prod images as MySQL could not be installed. New Public Key is used instead. Fixes: apache#20911
@potiuk Will this fix be applied to all Airflow |
I am just refreshing all the images down to 2.1.0. We have a "reproducible" Docker prod imge preparation system that allows us to do this. |
Most of the images 2.1.1+ are refreshed now (I will refresh even older images - down to 2.0.0). Can you please @NadimYounes verify that your image works after refresh (I see that you use 2.0.2 They should refresh in ~ 2 hours or so). |
@potiuk Sure. I will check in a couple hours and let you know. Thanks |
MySQL changed key used to sign their apt packages. This caused docker building failing for prod images as MySQL could not be installed. New Public Key is used instead. Fixes: #20911
@potiuk confirming that this now works on |
Thanks @NadimYounes ~ I will run some extra checks to see if the images are all good. |
@potiuk Hello, 2.1.3 doesn't work |
Did you pull it @a-lukashenka? You need to make sure you run |
This docker file:
Works nicely for mie:
|
For info, I've just run into this same issue using 1.10.14 (which we're stuck on for uninteresting reasons!) Manually applying the fix mentioned in the PR here fixes the issue. |
Yep. it wil be in all versions. But we corrected it only in Airflow 2 as 1.10 is end-of-life as of June 2021 and you are on your own to apply corrections (that's the consequence of being end-of-life). |
hello |
You need to pull new image - the images were refreshed including the new key. |
I'm getting the same error with the following command RUN apt-get update -y |
I think you need to direct it to MySQL team :). Likely they refreshed some of their images (maybe latest from each minor version) with the new key as well. But that's nothing we can help here. |
In ubuntu you can run this command |
I have the same error:
How do you update the public key for the mysql repository? |
I propose you start answering the questions:
I suggest you start with those questions. |
thanks for your reply
thanks |
If you have not seen how you solve your issue, looking at the changes above, I suggest you reach-out to mysql support. the changes implemented to fix it are straightforward to look at, but appently - since you cannot figure it out- you should reach out to mysql team that caused the problem, not airflow, who implemented the fix and hoped you can spend a few minutes of your time to apply the same fixes. |
Paid support from Oracle to MySQL changes is always an option |
https://github.com/apache/airflow/pull/20912/files - this is a fix for us. Somethng like that might work for you. If you can't get it work reach out to paid support of MySQL. |
The actual fix for this, on the OS level, is |
Apache Airflow version
2.0.2
What happened
When attempting to rebuild an apache airflow image, we are getting failures during our builds when trying to run
apt-get update
.The error we see:
What you expected to happen
This behaviour shouldn't occur but it looks like some changes were published to the
mysql
apt repository this morning which is when we started experiencing issues.I think we just need to update the airflow script which installs mysql and has a key already hardcoded here.
How to reproduce
Create a
Dockerfile
. Add the following lines to the Dockerfile:In a shell
run command ->
docker build .
Operating System
Debian 10
Versions of Apache Airflow Providers
No response
Deployment
Docker-Compose
Deployment details
No response
Anything else
We were able to fix this by running the following command before the
apt-get update
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: