Comments (21)
service docker restart
solved the problem.
from docker.
@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.
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.
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.
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.
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.
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.
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.
Misconfiguration with Docker and the firewall.
from docker.
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.
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.
there's nothing to be configured by default, your docker host needs to have internet access and the right dns config
from docker.
@yedaodao worked fine on my container jenkins! great!
from docker.
docker restart worked for me
from docker.
service docker restart
solved the problem.
no use docker, how do
from docker.
Hi There, this means your firewall is blocking the traffic , this can be solved in various way like :
- Add proxy details if you are using a proxy server to manage traffic (like in any organization)
- 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
- disable the firewall
Hope this works :)
from docker.
service docker restart
solved the problem.
Thanks it worked for me...
from docker.
i tried by disconnecting vpn and its worked for me.
from docker.
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.
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.
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)
- CVE-2023-38039, CVE-2023-38408, CVE-2023-38039, CVE-2023-38039, CVE-2023-44487 HOT 4
- Unexpected loss of more precise labels in favor of less precise labels HOT 13
- The directory separator used in the Windows build script is dependent on the OS
- latest with jdk17 & almalinux HOT 2
- Update Docker Hub description with JDK17 images instead of JDK11 HOT 2
- Set JDK17 as the default JDK for Windows image
- Publish a Windows image for each supported Java version HOT 2
- `windowsservercore-2019` images use `windowsservercore-1809` as base image HOT 2
- Windows - There should be a set of weekly and LTS short tags not including Jenkins version in their names HOT 4
- After Jenkins docks with ldap, the first login the next day will display a password error. The second login will be successful, and submitting the pipeline using Jenkins' API will fail. Jenkins logs indicate that the connection to ldap has timed out
- JenkinsProject
- `jenkins-plugin-cli` reports `War not found, installing all plugins: /usr/share/java/jenkins.war` HOT 5
- CVE-2024-23897 still exists in latest LTS version jenkins/jenkins:2.440.1-lts-jdk11 HOT 2
- The repository 'https://packagecloud.io/github/git-lfs/debian bookworm InRelease' is not signed. HOT 1
- CVE-2024-22201 still appears in jenkins/jenkins:2.444-jdk11 image HOT 2
- pipeline-input-step:2.8 Test cases run failed (Server Issue) HOT 10
- Add ARM64 Support for Alpine JDK 11 and 17 - Inbound Agent HOT 8
- docker start container failed HOT 2
- Djenkins.install.runSetupWizard=false is not working as expected HOT 5
- versionLT in jenkins-support doesn't treat newer version of workflow-cps as newer HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker.