Hi @rob_kodekloud and kodekloud team,
I’m unable to complete the task getting an timeout error. Could you please help on this issue? I have configured the label node agent to run on App server 02, and Jenkins workspace created but unbale to upload the docker image.
Error:
Started by user admin
Obtained Jenkinsfile from git http://git.stratos.xfusioncorp.com/sarah/web.git
[Pipeline] Start of Pipeline
[Pipeline] node
Running on App_Server_2 in /home/steve/jenkins/workspace/nginx-container
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Declarative: Checkout SCM)
[Pipeline] checkout
The recommended git tool is: NONE
using credential Git_Creds
Fetching changes from the remote Git repository
Checking out Revision 27ba7d5ec3e231aae3dfe103cf7f9fff04a52997 (refs/remotes/origin/master)
Commit message: “Jenkinsfile added”
git rev-parse --resolve-git-dir /home/steve/jenkins/workspace/nginx-container/.git # timeout=10
git config remote.origin.url http://git.stratos.xfusioncorp.com/sarah/web.git # timeout=10
Fetching upstream changes from http://git.stratos.xfusioncorp.com/sarah/web.git
git --version # timeout=10
git --version # ‘git version 2.43.5’
using GIT_ASKPASS to set credentials Git Creds
git fetch --tags --force --progress – http://git.stratos.xfusioncorp.com/sarah/web.git +refs/heads/:refs/remotes/origin/ # timeout=10
git rev-parse refs/remotes/origin/master^{commit} # timeout=10
git config core.sparsecheckout # timeout=10
git checkout -f 27ba7d5ec3e231aae3dfe103cf7f9fff04a52997 # timeout=10
git rev-list --no-walk 27ba7d5ec3e231aae3dfe103cf7f9fff04a52997 # timeout=10
[Pipeline] }
[Pipeline] // stage
[Pipeline] withEnv
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Build)
[Pipeline] script
[Pipeline] {
[Pipeline] sh
- docker build -t stregi01.stratos.xfusioncorp.com:5000/nginx:latest .
#0 building with “default” instance using docker driver
#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 109B done
#1 DONE 0.0s
#2 [internal] load metadata for Docker Hub Container Image Library | App Containerization
#2 ERROR: failed to copy: httpReadSeeker: failed open: failed to do request: Get “https://docker-registry-mirror.kodekloud.com/v2/library/nginx/manifests/sha256:5893dc08a2cb01e21592ff469346ebaacf49167fbc949f45e1c29111981b0427?ns=docker.io”: dial tcp 10.0.0.6:443: i/o timeout
[internal] load metadata for Docker Hub Container Image Library | App Containerization
Dockerfile:1
1 | >>> FROM nginx:stable-alpine3.17-slim
2 | COPY index.html /usr/share/nginx/html/
ERROR: failed to solve: DeadlineExceeded: DeadlineExceeded: DeadlineExceeded: nginx:stable-alpine3.17-slim: failed to resolve source metadata for Docker Hub Container Image Library | App Containerization failed to copy: httpReadSeeker: failed open: failed to do request: Get “https://docker-registry-mirror.kodekloud.com/v2/library/nginx/manifests/sha256:5893dc08a2cb01e21592ff469346ebaacf49167fbc949f45e1c29111981b0427?ns=docker.io”: dial tcp 10.0.0.6:443: i/o timeout
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: script returned exit code 1
Finished: FAILURE