Comments (5)
I tried using -tunnel option, it throws error,
rroshan@roshan-PC:~/coreos-ansible$ docker run --rm --name slave1 jenkinsci/jnlp-slave -url http://10.160.58.213:32401/ -tunnel 10.160.58.213:32501 1234 temp_slave
Warning: JnlpProtocol3 is disabled by default, use JNLP_PROTOCOL_OPTS to alter the behavior
Nov 10, 2016 4:46:02 PM hudson.remoting.jnlp.Main createEngine
INFO: Setting up slave: temp_slave
Nov 10, 2016 4:46:02 PM hudson.remoting.jnlp.Main$CuiListener
INFO: Jenkins agent is running in headless mode.
Nov 10, 2016 4:46:02 PM hudson.remoting.jnlp.Main$CuiListener status
INFO: Locating server among [http://10.160.58.213:32401/]
Nov 10, 2016 4:46:03 PM hudson.remoting.jnlp.Main$CuiListener status
INFO: Handshaking
Nov 10, 2016 4:46:03 PM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connecting to 10.160.58.213:32501
Nov 10, 2016 4:46:03 PM hudson.remoting.jnlp.Main$CuiListener status
INFO: Protocol JNLP3-connect is not enabled, skipping
Nov 10, 2016 4:46:03 PM hudson.remoting.jnlp.Main$CuiListener status
INFO: Trying protocol: JNLP2-connect
Nov 10, 2016 4:46:03 PM hudson.remoting.jnlp.Main$CuiListener status
INFO: Server didn't accept the handshake: JNLP2-connect: rejected connection for node: temp_slave
Nov 10, 2016 4:46:03 PM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connecting to 10.160.58.213:32501
Nov 10, 2016 4:46:03 PM hudson.remoting.jnlp.Main$CuiListener status
INFO: Trying protocol: JNLP-connect
Nov 10, 2016 4:46:04 PM hudson.remoting.jnlp.Main$CuiListener status
INFO: Server didn't accept the handshake: Unauthorized access
Nov 10, 2016 4:46:04 PM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connecting to 10.160.58.213:32501
Nov 10, 2016 4:46:04 PM hudson.remoting.jnlp.Main$CuiListener error
SEVERE: The server rejected the connection: None of the protocols were accepted
java.lang.Exception: The server rejected the connection: None of the protocols were accepted
at hudson.remoting.Engine.onConnectionRejected(Engine.java:353)
at hudson.remoting.Engine.run(Engine.java:325)
Server
Nov 10, 2016 4:46:03 PM hudson.TcpSlaveAgentListener$ConnectionHandler run
INFO: Accepted connection jenkinsci/docker-inbound-agent#5 from /172.42.28.1:46118
Nov 10, 2016 4:46:03 PM org.jenkinsci.remoting.engine.JnlpServerHandshake error
WARNING: TCP agent connection handler jenkinsci/docker-inbound-agent#5 with /172.42.28.1:46118 is aborted: JNLP2-connect: rejected connection for node: temp_slave
Nov 10, 2016 4:46:03 PM hudson.TcpSlaveAgentListener$ConnectionHandler run
INFO: Accepted connection #742 from /172.42.28.1:46120
Nov 10, 2016 4:46:03 PM org.jenkinsci.remoting.engine.JnlpServerHandshake error
WARNING: TCP agent connection handler #742 with /172.42.28.1:46120 is aborted: Unauthorized access
Nov 10, 2016 4:46:04 PM hudson.TcpSlaveAgentListener$ConnectionHandler run
INFO: Accepted connection #741 from /172.42.28.1:46122
Nov 10, 2016 4:46:04 PM hudson.TcpSlaveAgentListener$ConnectionHandler run
WARNING: Connection #741 failed
java.io.EOFException
at java.io.DataInputStream.readFully(DataInputStream.java:197)
at java.io.DataInputStream.readFully(DataInputStream.java:169)
at hudson.TcpSlaveAgentListener$ConnectionHandler.run(TcpSlaveAgentListener.java:213)
from docker-agent.
the slave port is exposed by the jenkins master, so you need to correctly configure it there.
The tunnel option is only to connect somewhere else if your master is behind a firewall, nat,...
from docker-agent.
Closing since there is no response from the submitter.
from docker-agent.
@carlossg how about if the master is started through marathon ?
I am using HAproxy so the port is still 50000
but this seems to not work. Slave try to connect to dumb port number randomly elected and different from the one used in marathon.
from docker-agent.
the slave connects through http to jenkins and gets the jnlp port as configured in jenkins security
from docker-agent.
Related Issues (20)
- Build both agent and inbound-agent container images in this repository HOT 13
- Windows agent does not work on AWS Fargate HOT 5
- Docker image for docker-inbound-agent from debian bullseye distribution based agent docker image HOT 1
- Usage: is "java -jar /usr/share/jenkins/agent.jar" up to date? HOT 12
- Add doc how to build the different images
- Rename this repository to reflect that it concerns both `agent` and `inbound-agent`? HOT 1
- NoClassDefFoundError: org/eclipse/jgit/internal/JGitText HOT 12
- README_agent.md links to dockerhub HOT 2
- updatecli is not working for updates to JDKs HOT 5
- Images are missing from the inbound-agent README
- DockerHub Description automated process is broken since 2 months (at least?) HOT 8
- [Windows] ci.jenkins.io build fails since 3 days HOT 5
- How can I build docker images from inside jenkins/agent HOT 2
- Jenkins agent exits immediately without any logs and error code 159 (RPI 4, aarch64, Raspbian 64 bit) HOT 27
- Generate smaller java runtime with jlink in Windows images HOT 2
- JDK 21 preview updatecli manifest is failing HOT 13
- Move JDK1 `linux/s390x` out of preview HOT 1
- Unable to build an extension of inbound-agent:*ltsc2019 HOT 3
- Add building documentation
- jenkins-agent.ps1 is missing in jenkins/agent:jdk17-nanoserver-ltsc2022 HOT 1
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-agent.