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
Running Jenkins in Docker and using docker-plugin for create slaves #455
Comments
Did you really map the does docker start the slaves at least? It looks like from the logs, otherwise it would not have the port. Which containers do you use as slave nodes? Did they exit unexpectedly (docker ps -a)? |
Having the same issue. |
Can you post some logs from Jenkins and your configuration please? |
etc |
|
I think the issue is within retrieving the ip of the container. for some reason it tries to connect to 0.0.0.0:port |
@MansM |
@gamma I can test off master to see if this fixes the issue. How can I build the plugin? |
I uploaded a gist with the hpi - it does not included all the newest stuff, just the ip:port issue (check my branch). We're using this hpi for our build system for some time now (Jenkins v1 and v2). https://gist.github.com/gamma/0d6e646c0ad57abfc6b9e5d0e47464be |
Thanks @gamma. I uploaded the plugin and I'm still seeing the same issue. Could not connect to 0.0.0.0 port 32795. Are you sure this location is contactable from Jenkins? |
I see. It is a different code point. To build the master you'll need maven. Took me some time since I'm not familiar with it ... sry, I thought I could help. |
any update on this? I'm also facing the same issue. |
as jenkins master run inside a container and agent in started as a sibling, master would need to connect to :sshport. Generally speaking sshd external IP detection is very hazardous. |
In my case I had specified a non-root user to run the container with. After clearing this field, ssh connection was successful. In hindsight this made sense because sshd has to run by root. |
I'm running Jenkins on Docker, and i'm trying to use docker plugin to create slaves containers at the same host as jenkins master.
Since the docker plugin i can connect to the cloud using unix:///var/run/docker.sock as Docker url, when i hit in "Test connection" button, connects correctly.
The problem is when i try to run a job, the slave is created but jenkins says "All nodes labeled 'jenkins_slave' are offline", this are logs error from the slave:
My docker version is:
Thanks in advance for any help, i had spent more than 3 day trying to solve this.
The text was updated successfully, but these errors were encountered: