Cannot connect Jenkins jlnp slaves to Centos 7 master installed using Docker jenkins/jenkins? -
jenkins centos 7 master installed docker jenkins/jenkins.
i cannot connect old windows 7, macos, , linux slaves master using jlnp.
usually jenkins slave agent displays:
- "trying protocol: jnlp4-connect"
- "terminated"
- repeat
clues:
- occasionally windows7 "jenkins slave agent" display "connected".
- however, jenkins master displays node not connected.
installed using:
sudo systemctl start docker sudo docker pull jenkins/jenkins sudo docker run --name jenkins -p 8080:8080 -p 50000:50000 -u 1001 -v /home/jenkins/jenkins:/var/jenkins_home jenkins/jenkins sudo firewall-cmd --zone=public --add-port=8080/tcp --permanent sudo firewall-cmd --zone=public --add-service=http --permanent sudo firewall-cmd --reload
added clues:
- this first time using docker install of jenkins.
- it running /home/jenkins/jenkins.
- i can find no useful clues in /jenkins/logs/slaves/
i tied disabling centos & firewall on both master , slave
i docker newbie.
sudo docker logs -f jenkins
displayed jnlp4 connect error saying root not writable.
my issue sounds similar this:
docker-slave never connects master if user defined in configuration #474
i changed run lts version , can connect slave:
sudo docker run -p 8080:8080 -p 50000:50000 -v jenkins_home:/var/jenkins_home jenkins/jenkins:lts
wiki
Comments
Post a Comment