Giter Club home page Giter Club logo

Comments (5)

rakesh-roshan avatar rakesh-roshan commented on September 16, 2024

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.

carlossg avatar carlossg commented on September 16, 2024

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.

oleg-nenashev avatar oleg-nenashev commented on September 16, 2024

Closing since there is no response from the submitter.

from docker-agent.

kopax avatar kopax commented on September 16, 2024

@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.

carlossg avatar carlossg commented on September 16, 2024

the slave connects through http to jenkins and gets the jnlp port as configured in jenkins security

from docker-agent.

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.