Comments (9)
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.
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.
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.
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.
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.
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.
This solution worked for me as well, thanks so much! For reference, I'm running docker version 1.13.1.
from dockerjenkins_tutorial.
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.
Will you make a new tutorial for it? You are speaking about this, right?
from dockerjenkins_tutorial.
Related Issues (20)
- Jenkins-slave HOT 1
- Link to Grafana Dashboards? HOT 11
- Jenkins Credentials page doesn't seem to be proxied HOT 4
- Any update plan of the tutorial for the Docker for Mac ? HOT 4
- Full home partition warning in Jenkins HOT 2
- Can't seem to upgrade the jenkins version HOT 3
- Question: Run docker (docker-compose) inside slaves? HOT 1
- jenkins.model.JenkinsLocationConfiguration.xml: No such file or directory HOT 3
- Scriptler plugin distribution is suspended. HOT 1
- Docker Ip Address working in Linux HOT 6
- It seems that reverse proxy settings is wrong HOT 1
- Some aclaration notes HOT 1
- Load Balanced Slave Cluster HOT 2
- Inquiry about using this with ECS HOT 6
- Jenkins Cert part is now different HOT 1
- Getting error on "Test Your Slave Build" section HOT 1
- /jenkins/README.md is not sync with /jenkins/makefile HOT 1
- Script to set up docker-plugin automatically HOT 2
- It appears that your reverse proxy set up is broken.
- Monitoring problem 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 dockerjenkins_tutorial.