[JIRA] (JENKINS-58582) pending—'Jenkins' doesn't have label 'agent'

298 views
Skip to first unread message

vamsi.vatsav@gmail.com (JIRA)

unread,
Jul 21, 2019, 12:31:03 AM7/21/19
to jenkinsc...@googlegroups.com
vamsi gorthi created an issue
 
Jenkins / Story JENKINS-58582
pending—'Jenkins' doesn't have label 'agent'
Issue Type: Story Story
Assignee: Nicolas De Loof
Attachments: ss.jpg
Components: docker-plugin
Created: 2019-07-21 04:30
Environment: home
Priority: Major Major
Reporter: vamsi gorthi
Some Help Please : I am trying to run a jenkins slave agent by spinning up a docker container. I have verified that there is no problem with the jenkins - docker connectivity , as i have successfully enabled the Remote API. But there seem to be some issues in my configuring the Docker Agent Templates - as jenkins is unable to launch the container and neither can it seem to find the node label. 

*(pending—'Jenkins' doesn't have label 'agent')*
 
 
LOGS :
 
Jenkins log : Jul 21, 2019 4:02:09 AM SEVERE com.nirima.jenkins.plugins.docker.DockerCloud$1 run
Error in provisioning; template='DockerTemplate

{configVersion=2, labelString='agent', connector=io.jenkins.docker.connector.DockerComputerAttachConnector@18deb38a, remoteFs='/home/jenkins', instanceCap=10, mode=EXCLUSIVE, retentionStrategy=com.nirima.jenkins.plugins.docker.strategy.DockerOnceRetentionStrategy@29d3b71, dockerTemplateBase=DockerTemplateBase\{image='jenkins-agent', pullCredentialsId='', registry=null, dockerCommand='', hostname='', dnsHosts=[], network='', volumes=[], volumesFrom2=[], environment=[], bindPorts='', bindAllPorts=false, memoryLimit=null, memorySwap=null, cpuShares=null, shmSize=null, privileged=false, tty=false, macAddress='null', extraHosts=[]}

, removeVolumes=false, pullStrategy=PULL_NEVER, nodeProperties=[], disabled=BySystem,0 ms,4 min 59 sec,Template provisioning failed.}' for cloud='docker'
com.github.dockerjava.api.exception.NotFoundException: {"message":"lstat /var/lib/docker/aufs/mnt/598685549bb7d8182da1dc22bb784e87f98b0161cd9ed561d50f90ed14a87cbc/home/jenkins: no such file or directory"}

at com.github.dockerjava.netty.handler.HttpResponseHandler.channelRead0(HttpResponseHandler.java:103)
at com.github.dockerjava.netty.handler.HttpResponseHandler.channelRead0(HttpResponseHandler.java:33)
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)|

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

pjdarton@gmail.com (JIRA)

unread,
Sep 24, 2019, 11:44:04 AM9/24/19
to jenkinsc...@googlegroups.com
pjdarton assigned an issue to Unassigned
Change By: pjdarton
Assignee: Nicolas De Loof
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

pjdarton@gmail.com (JIRA)

unread,
Sep 24, 2019, 11:47:03 AM9/24/19
to jenkinsc...@googlegroups.com
pjdarton commented on Story JENKINS-58582
 
Re: pending—'Jenkins' doesn't have label 'agent'

My guess is that your docker container doesn't have a /home/jenkins/ folder which is why, when you try to start a container using a template that's saying remoteFs='/home/jenkins', it's blowing up with a "not found" error.
You need to ensure that the template configuration is correct for the docker image you're using.

Reply all
Reply to author
Forward
0 new messages