-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Behind a proxy: Unable to determine mirror for downloading Kafka, the service may be down ERROR: Service 'kafka' failed to build: #465
Comments
Looks like
|
Do you have any idea why it failed to download? I looked at download-kafka.sh but no idea what's going on. |
Unfortunately not. I'm sure you won't wait long before @sscaling helps you out. |
Most likely; either 2.1.1 hasn't propagated to your local mirrors yet or you're behind a firewall/proxy stopping you access the apache closer.cgi script. Have a look at the raw output from the service
In the above example, if you visit http://ftp.nluug.nl/internet/apache/kafka/ you can verify that the version is there. Because the service suggests mirrors based on your egress IP's geographic location you may be getting results for mirrors that haven't been updated with the latest Try rebuilding (the preferred mirrors are rotated to distribute requests). You can verify this by calling the above |
My server is behind firewall/proxy but I check both and it should be ok(checked dns query result with nslookup and accessibility with curl and wget.)
However "ftp" doesn't work with proxy. I need to check why but do you think this is cause of error? |
We use without proxy:
with proxy:
You may need to pass through your |
This does work. [root@ENVT_Lab_CentOS1 kafka-docker]# docker run --rm -it openjdk:8u191-jre-alpine /bin/sh -c "wget -Y on http://mirror.olnevhost.net/pub/apache/kafka/2.1.1/kafka_2.12-2.1.1.tgz" Connecting to mirror.olnevhost.net (188.165.227.148:80) Which file should I fix with "-Y on"? |
Apologies - the issue was with contacting the
If this works, you'll need to specify the To do this, I think that you'll need to pass in the http_proxy so that it is available to the build context, by adding an arg to the Dockerfile
Then you should be able to run the docker build with Typically I think if you are just using the image as is, people tend to mirror the pre-built image to their local/accessible docker repository or build in a CI system and push there. |
Thanks for your comment. |
OK, will close. Thanks. |
😞 This link <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /apache/kafka/2.3.1/kafka_2.11-2.3.1.tgz was not found on this server.</p>
</body></html> I did find an alternative that seems legit IS this the right place to ask for it to be swapped? 😌 Thanks |
The text was updated successfully, but these errors were encountered: