Giter Club home page Giter Club logo

Comments (6)

oleg-nenashev avatar oleg-nenashev commented on August 13, 2024

Likely it is a Pipeline issue, not the container one. Would you be able to try it on a similar environment without containers?

from docker-agent.

carlossg avatar carlossg commented on August 13, 2024

This could happen if the Java process dies abruptly without reaping children

from docker-agent.

DimeOne avatar DimeOne commented on August 13, 2024

I was not able to reproduce this using a jnlp connected agent running on a ubuntu vm.

The java process did not die in any instance. I guess that is why the master is being started with /bin/tini so that java does not use process id 1.

I will try to create an image where java is not running as PID1 and retry the test.

from docker-agent.

DimeOne avatar DimeOne commented on August 13, 2024

when running the jenkins/jnlp-slave:latest container interactively with bash and then running java does not result in defunct processes, so adding another process should solve it.

jenkinsci/docker#54

from docker-agent.

DimeOne avatar DimeOne commented on August 13, 2024

with tini as PID 1 I am not getting defunct processes, solved that in my image.

ENV TINI_VERSION v0.16.1
RUN wget -O /tini https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini \
    && wget -O /tini.asc https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini.asc \
    && gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 595E85A6B1B4779EA4DAAEC70B588DFF0527A9B7 \
    && gpg --verify /tini.asc \
    && rm /tini.asc \
    && chmod 755 /tini

USER jenkins

ENTRYPOINT ["/tini", "--", "/docker-entrypoint.sh"]

from docker-agent.

dduportal avatar dduportal commented on August 13, 2024

Closing as the PR were refused (and the defunct process are not reproducible anymore)

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.