请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

jenkins/inbound 的问题

https://img1.sycdn.imooc.com/szimg/678f1527090787c611270649.jpg  

上次出现了 jenkins/inbound 问题后 , 我改了改 Pipeline 。

新增了一个inbound的容器 从阿里云仓库拉取 : 

https://img1.sycdn.imooc.com/szimg/678f51e1096fb40f09570550.jpg

还是出现了下面问题 : 

Started by user adminObtained test/Jenkinsfile3 from git https://gitee.com/catluv/jenkins-test.git[Pipeline] Start of Pipeline[Pipeline] podTemplate[Pipeline] {[Pipeline] retry[Pipeline] {[Pipeline] node[PodInfo] devops/k8s-build-12-gd8vj-9w976-bdq4q
	Container [golang] waiting [ContainerCreating] No message
	Container [inbound-agent] waiting [ContainerCreating] No message
	Container [jnlp] waiting [ContainerCreating] No message
	Container [maven] waiting [ContainerCreating] No message
	Pod [Pending][ContainersNotReady] containers with unready status: [inbound-agent maven golang jnlp]
Created Pod: k8s devops/k8s-build-12-gd8vj-9w976-bdq4q
[PodInfo] devops/k8s-build-12-gd8vj-9w976-bdq4q
	Container [golang] waiting [ContainerCreating] No message
	Container [inbound-agent] waiting [ContainerCreating] No message
	Container [jnlp] waiting [ContainerCreating] No message
	Container [maven] waiting [ContainerCreating] No message
	Pod [Pending][ContainersNotReady] containers with unready status: [inbound-agent maven golang jnlp]
[PodInfo] devops/k8s-build-12-gd8vj-9w976-bdq4q
	Container [golang] waiting [ContainerCreating] No message
	Container [inbound-agent] waiting [ContainerCreating] No message
	Container [jnlp] waiting [ContainerCreating] No message
	Container [maven] waiting [ContainerCreating] No message
	Pod [Pending][ContainersNotReady] containers with unready status: [inbound-agent maven golang jnlp]Still waiting to schedule task
‘k8s-build-12-gd8vj-9w976-bdq4q’ is offline[PodInfo] devops/k8s-build-12-gd8vj-9w976-bdq4q
	Container [inbound-agent] terminated [Error] No message
	Container [jnlp] waiting [ErrImagePull] rpc error: code = Unknown desc = Error response from daemon: Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
	Pod [Pending][ContainersNotReady] containers with unready status: [inbound-agent jnlp]
devops/k8s-build-12-gd8vj-9w976-bdq4q Container inbound-agent was terminated.
[PodInfo] devops/k8s-build-12-gd8vj-9w976-bdq4q
	Container [inbound-agent] terminated [Error] No message
	Container [jnlp] waiting [ImagePullBackOff] Back-off pulling image "jenkins/inbound-agent:3283.v92c105e0f819-4"
	Pod [Pending][ContainersNotReady] containers with unready status: [inbound-agent jnlp]

- golang -- running
-----Logs-------------


- inbound-agent -- terminated (1)
-----Logs-------------
Exception in thread "main" java.io.EOFException: unexpected stream termination
	at hudson.remoting.ChannelBuilder.negotiate(ChannelBuilder.java:478)
	at hudson.remoting.ChannelBuilder.build(ChannelBuilder.java:422)
	at hudson.remoting.Launcher.main(Launcher.java:1018)
	at hudson.remoting.Launcher.runWithStdinStdout(Launcher.java:963)
	at hudson.remoting.Launcher.run(Launcher.java:493)
	at hudson.remoting.Launcher.main(Launcher.java:455)
<===[JENKINS REMOTING CAPACITY]===>rO0ABXNyABpodWRzb24ucmVtb3RpbmcuQ2FwYWJpbGl0eQAAAAAAAAABAgABSgAEbWFza3hwAAAAAAAAAf4=

- jnlp -- waiting

- maven -- running
-----Logs-------------[Pipeline] // node[Pipeline] }Could not find a node block associated with node (source of error) but inside podTemplate
Queue task was cancelled
org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: d0d9c919-a088-45ad-84c6-8d2b7f01708a
Retrying[Pipeline] {[Pipeline] nodeCreated Pod: k8s devops/k8s-build-12-gd8vj-9w976-tp22m
[PodInfo] devops/k8s-build-12-gd8vj-9w976-tp22m
	Container [golang] waiting [ContainerCreating] No message
	Container [inbound-agent] waiting [ContainerCreating] No message
	Container [jnlp] waiting [ContainerCreating] No message
	Container [maven] waiting [ContainerCreating] No message
	Pod [Pending][ContainersNotReady] containers with unready status: [inbound-agent maven golang jnlp]
[PodInfo] devops/k8s-build-12-gd8vj-9w976-tp22m
	Container [golang] waiting [ContainerCreating] No message
	Container [inbound-agent] waiting [ContainerCreating] No message
	Container [jnlp] waiting [ContainerCreating] No message
	Container [maven] waiting [ContainerCreating] No message
	Pod [Pending][ContainersNotReady] containers with unready status: [inbound-agent maven golang jnlp]Still waiting to schedule task
‘k8s-build-12-gd8vj-9w976-tp22m’ is offline[PodInfo] devops/k8s-build-12-gd8vj-9w976-tp22m
	Container [inbound-agent] terminated [Error] No message
	Container [jnlp] waiting [ErrImagePull] rpc error: code = Unknown desc = Error response from daemon: Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
	Pod [Pending][ContainersNotReady] containers with unready status: [inbound-agent jnlp]
devops/k8s-build-12-gd8vj-9w976-tp22m Container inbound-agent was terminated.
[PodInfo] devops/k8s-build-12-gd8vj-9w976-tp22m
	Container [inbound-agent] terminated [Error] No message
	Container [jnlp] waiting [ImagePullBackOff] Back-off pulling image "jenkins/inbound-agent:3283.v92c105e0f819-4"
	Pod [Pending][ContainersNotReady] containers with unready status: [inbound-agent jnlp]

- golang -- running
-----Logs-------------


- inbound-agent -- terminated (1)
-----Logs-------------
Exception in thread "main" java.io.EOFException: unexpected stream termination
	at hudson.remoting.ChannelBuilder.negotiate(ChannelBuilder.java:478)
	at hudson.remoting.ChannelBuilder.build(ChannelBuilder.java:422)
	at hudson.remoting.Launcher.main(Launcher.java:1018)
	at hudson.remoting.Launcher.runWithStdinStdout(Launcher.java:963)
	at hudson.remoting.Launcher.run(Launcher.java:493)
	at hudson.remoting.Launcher.main(Launcher.java:455)
<===[JENKINS REMOTING CAPACITY]===>rO0ABXNyABpodWRzb24ucmVtb3RpbmcuQ2FwYWJpbGl0eQAAAAAAAAABAgABSgAEbWFza3hwAAAAAAAAAf4=

- jnlp -- waiting

- maven -- running
-----Logs-------------

[PodInfo] devops/k8s-build-12-gd8vj-9w976-tp22m
	Container [inbound-agent] terminated [Error] No message
	Container [jnlp] waiting [ImagePullBackOff] Back-off pulling image "jenkins/inbound-agent:3283.v92c105e0f819-4"
	Pod [Pending][ContainersNotReady] containers with unready status: [inbound-agent jnlp][Pipeline] // node[Pipeline] }[Pipeline] // retry[Pipeline] }[Pipeline] // podTemplate[Pipeline] End of PipelineQueue task was cancelled
org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: 95cde665-4c22-4ba5-a4d1-910b864d04ab
Finished: ABORTED


正在回答 回答被采纳积分+3

1回答

小杨_老师 3小时前

上述方案你操作如果不行的话,可以直接把镜像拉到你的node节点,再更改一下tag

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信