Giter Club home page Giter Club logo

Comments (21)

fengerzh avatar fengerzh commented on July 20, 2024 15

service docker restart solved the problem.

from docker.

yedaodao avatar yedaodao commented on July 20, 2024 4

@lnalex You should re-run your jenkins images with parameter "--dns 8.8.8.8". Additional, don't forget to back up your jenkins data if you didn't mount a volume.

from docker.

abhashar avatar abhashar commented on July 20, 2024 2

I was connected to my VPN, hence it wasn't working for me. I disconnected and now I am no longer facing any issues.

from docker.

jcabelloc avatar jcabelloc commented on July 20, 2024 2

Hi There. After trying different things, these commands worked for me:

Disable and stop the firewall on my Centos Host
sudo systemctl disable firewalld
sudo systemctl stop firewalld

Then, restart docker

`sudo service docker restart`

I hope it works for you.

from docker.

Tejas-Valame avatar Tejas-Valame commented on July 20, 2024 2

I has the same problem
You can use the --dns flag when running a container
Try using this
docker run --rm --dns 8.8.8.8 -p 8080:8080 -p 50000:50000 -d -v jenkins_home:/var/jenkins_home jenkins/jenkins

Hope this solves the issue

from docker.

abhashar avatar abhashar commented on July 20, 2024 1

Hi LnAlex,

Will it be possible for you to provide more information on this issue? How did you solve it?

p.s: I am an ex-employee of Atos, India and worked for the AWL project. It is a small world!

from docker.

MasterCrake avatar MasterCrake commented on July 20, 2024 1

Sorry, I think the issue for me is somewhere in my k3s cluster. It seems like none of the pods are able to resolve DNS currently. At first I thought Jenkins interpreted 301 as a failure as I received UnknownHostException but it is definitely something else that has gone wrong in the cluster.

EDIT: My issue was with the CoreDNS pod, it works after restarting it. Please disregard my posts as they are completely unrelated to this thread.

from docker.

mekdev avatar mekdev commented on July 20, 2024

Guy did you figure out what was the cause of this ?
The ticket was closed by op without updates.
Is it a misconfiguration in docker somewhere ?

Thank you!

from docker.

alxlion avatar alxlion commented on July 20, 2024

Misconfiguration with Docker and the firewall.

from docker.

alxlion avatar alxlion commented on July 20, 2024

Small world indeed !

That's quite a long time, It was a misconfiguration with my iptables rules on my server and port binding with my container. I did not remember how I fixed it exactly (it was my first times with Docker therefore I was not very smart to using it).

from docker.

brennonobst avatar brennonobst commented on July 20, 2024

I started the docker container as instructed with no configuration to speak of and see this error not sure what inside docker needs to be configured. Maybe can someone put it with the instructions?
Instructions - https://hub.docker.com/_/jenkins/
$ docker run -p 8080:8080 -p 50000:50000 jenkins

---Log----
Installing Plugins/Upgrades
Preparation
Checking internet connectivity
Checking update center connectivity
Failed to resolve host name updates.jenkins-ci.org. Perhaps you need to configure HTTP proxy?
java.net.UnknownHostException: updates.jenkins-ci.org
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
at sun.net.www.http.HttpClient.(HttpClient.java:211)
at sun.net.www.http.HttpClient.New(HttpClient.java:308)
at sun.net.www.http.HttpClient.New(HttpClient.java:326)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1169)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1105)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:999)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:933)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1513)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
at hudson.model.UpdateCenter$UpdateCenterConfiguration.testConnection(UpdateCenter.java:1143)
at hudson.model.UpdateCenter$UpdateCenterConfiguration.checkUpdateCenter(UpdateCenter.java:953)
at hudson.model.UpdateCenter$ConnectionCheckJob.run(UpdateCenter.java:1360)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:110)
at java.lang.Thread.run(Thread.java:745)

from docker.

carlossg avatar carlossg commented on July 20, 2024

there's nothing to be configured by default, your docker host needs to have internet access and the right dns config

from docker.

lleirgarciaboadapruebas avatar lleirgarciaboadapruebas commented on July 20, 2024

@yedaodao worked fine on my container jenkins! great!

from docker.

mohammedazhar7 avatar mohammedazhar7 commented on July 20, 2024

docker restart worked for me

from docker.

mahaodong6318 avatar mahaodong6318 commented on July 20, 2024

service docker restart solved the problem.

no use docker, how do

from docker.

chandan607 avatar chandan607 commented on July 20, 2024

Hi There, this means your firewall is blocking the traffic , this can be solved in various way like :

  1. Add proxy details if you are using a proxy server to manage traffic (like in any organization)
  2. If you are working your personal machine add the Add Jenkins application to the list( in windows Windows security>Firewall and network protection > add an app through firewall) or
  3. disable the firewall
    Hope this works :)

from docker.

thirupathib12 avatar thirupathib12 commented on July 20, 2024

service docker restart solved the problem.

Thanks it worked for me...

from docker.

srisrimani88 avatar srisrimani88 commented on July 20, 2024

i tried by disconnecting vpn and its worked for me.

from docker.

MasterCrake avatar MasterCrake commented on July 20, 2024

I just want to add that I got the same issue after the update url changed from https://updates.jenkins.io/update-center.json to https://updates.jenkins.io/current/update-center.json. There seems to be a redirect in place but my Jenkins instance received a 301 instead.

from docker.

lemeurherve avatar lemeurherve commented on July 20, 2024

There seems to be a redirect in place but my Jenkins instance received a 301 instead.

Which is expected, as the HTTP response code 301 means "Moved permanently", with the new location in the response headers.

from docker.

marytlf avatar marytlf commented on July 20, 2024

service docker restart solved the problem.

It worked for me as well, but I lost the images that was downloaded, just keep it in mind in case you cannot lose your data.

from docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.