Code Monkey home page Code Monkey logo

Comments (4)

magnayn avatar magnayn commented on July 25, 2024

Yes, I observe this too :-(

What I think happens is Jenkins launches the slave, then immediately tries to connect to it (we defer this to the SSH Launcher, which is equivalent to you ssh'ing from the console). This is all in DockerComputerLauncher (which defers to SSHLauncher, which is part of jenkins).

If that connection happens very quickly, I think sometimes the sshd in the container isn't ready yet, and the launch fails. It seems a shame that the SSHLauncher doesn't retry (it does wait 60 seconds to get that connection).

If this is true, we might be able to fix by retrying the SSH launch.

from docker-plugin.

DustinChaloupka avatar DustinChaloupka commented on July 25, 2024

That is a shame that it doesn't retry. :(

I'll look into seeing if that is the problem then!

from docker-plugin.

magnayn avatar magnayn commented on July 25, 2024

Hmm. I don't know if it's related to these fixes, but my Jenkins now eventually dies from having too many threads. It seems dead SSH connections leave a reader lying around:

"reader" daemon prio=3 tid=0x000000000ae59000 nid=0x2063f runnable [0xfffffd7f44d1a000]
java.lang.Thread.State: RUNNABLE
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:150)
at java.net.SocketInputStream.read(SocketInputStream.java:121)
at net.schmizz.sshj.transport.Reader.run(Reader.java:68)

from docker-plugin.

DustinChaloupka avatar DustinChaloupka commented on July 25, 2024

@magnayn I'm not sure. My jenkins has been running for about a week straight without dying and I am spawning slaves at a pretty good rate.

from docker-plugin.

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.