GithubHelp home page GithubHelp logo

Comments (9)

AdnaneKhan avatar AdnaneKhan commented on July 26, 2024 2

I was able to work around this issue by adding

RUN rm -f /run/nologin

at the end of the Dockerfile for the jenkins slave.

from dockerjenkins_tutorial.

maxfields2000 avatar maxfields2000 commented on July 26, 2024 1

Working on a new tutorial but yes, it's all fixed in the Jenkins2 folder (I'm moving on from Jenkins 1 finally!)

from dockerjenkins_tutorial.

cirocosta avatar cirocosta commented on July 26, 2024

Hey @AdnaneKhan , thanks for the suggestion. Had the same error here and adding the removal of /run/nologin did the job 👍
Also, on the slave's sshd side, after running rsyslogd inside the slave you can check that (before removing the nologin) we get:

Jul  7 19:49:19 aba7116ed670 sshd[20]: fatal: Access denied for user jenkins by PAM account configuration [preauth]

from dockerjenkins_tutorial.

maxfields2000 avatar maxfields2000 commented on July 26, 2024

Neat find. Is this happening for you right out of the box with what I have or by any chance are you changing versions on anything?

Last time I tested things seemed to work so I'll go figure out what's changed. This looks like a good update so worst case I'll apply this to the build slave image permanently. Going to leave this issue open until I'm confident things just work out of the box one way or another. Thanks for coming back with what you found fixed it!

from dockerjenkins_tutorial.

AdnaneKhan avatar AdnaneKhan commented on July 26, 2024

Pretty much out of the box. I had updated the Jenkins version however this issue still manifested itself with the following set of steps to take Jenkins out of the mix.

While in jenkins-slave directory:

docker build .
docker run {IMAGE_ID}
ssh -i files/dummy_private_rsa_key [email protected]

The result is then:

The authenticity of host '172.17.0.3 (172.17.0.3)' can't be established.
ECDSA key fingerprint is 6b:c0:6e:c6:e8:0e:75:68:3c:05:32:0e:ba:df:40:de.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '172.17.0.3' (ECDSA) to the list of known hosts.
System is booting up. See pam_nologin(8)
Connection closed by 172.17.0.3

I tried this using both Docker installed directly on my CentOS 7 host, as well in the docker machine running Boot2Docker.

The Docker version I am using is 1.11.1

from dockerjenkins_tutorial.

CosetteN avatar CosetteN commented on July 26, 2024

I'm having the same issue, but adding @AdnaneKhan's fix to the end of the slave file didn't alter anything. Could it be linked to using Docker version 1.12.2?

from dockerjenkins_tutorial.

De1taE1even avatar De1taE1even commented on July 26, 2024

This solution worked for me as well, thanks so much! For reference, I'm running docker version 1.13.1.

from dockerjenkins_tutorial.

maxfields2000 avatar maxfields2000 commented on July 26, 2024

Still plan on including this in my update, though On Jenkins2 I've switched to the JNLP launcher (from Yet another docker plugin) and SSH is no longer needed but I'll get the Jenkins 1.6'ish version fixed.

from dockerjenkins_tutorial.

SalahAdDin avatar SalahAdDin commented on July 26, 2024

Will you make a new tutorial for it? You are speaking about this, right?

from dockerjenkins_tutorial.

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.