jenkins-x / jx

Jenkins X provides automated CI+CD for Kubernetes with Preview Environments on Pull Requests using Cloud Native pipelines from Tekton

Home Page:https://jenkins-x.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The pipeline is getting failed and not able to identify where exactly it is getting failed

nandan-dm opened this issue · comments

Hi The jx pipeline most of the time keeps on failing and I am not able to see the logs of the pod because it gets terminated once the pod execution is done

        Showing logs for build targetau/tonline-shop/pr-936 #1 stage test-and-lint and container place-tools
        Showing logs for build targetau/tonline-shop/pr-936 #1 stage test-and-lint and container step-init
        Showing logs for build targetau/tonline-shop/pr-936 #1 stage test-and-lint and container place-scripts
        Showing logs for build targetau/tonline-shop/pr-936 #1 stage test-and-lint and container working-dir-initializer
      3s Showing logs for build targetau/tonline-shop/pr-936 #1 stage test-and-lint and container step-git-clone
      2s Showing logs for build targetau/tonline-shop/pr-936 #1 stage test-and-lint and container step-git-merge
      4s Showing logs for build targetau/tonline-shop/pr-936 #1 stage test-and-lint and container step-jx-variables
      1m29s Showing logs for build targetau/tonline-shop/pr-936 #1 stage test-and-lint and container step-yarn-install
      3m9s Showing logs for build targetau/tonline-shop/pr-936 #1 stage test-and-lint and container step-typecheck-test-lint
        unable to retrieve container logs for containerd://56c3b24fc2a353718e08a4c91860f214ebc84fb6251d5e91705a59e48d2c7222
         
        Pipeline failed on stage 'test-and-lint' : container 'step-typecheck-test-lint'. The execution of the pipeline has stopped.

Toggle Steps View raw logs Download raw logs
Showing logs for build targetau/tonline-shop/pr-936 #1 stage test-and-lint and container place-tools
Showing logs for build targetau/tonline-shop/pr-936 #1 stage test-and-lint and container step-init
Showing logs for build targetau/tonline-shop/pr-936 #1 stage test-and-lint and container place-scripts
Showing logs for build targetau/tonline-shop/pr-936 #1 stage test-and-lint and container working-dir-initializer
3s Showing logs for build targetau/tonline-shop/pr-936 #1 stage test-and-lint and container step-git-clone
2s Showing logs for build targetau/tonline-shop/pr-936 #1 stage test-and-lint and container step-git-merge
4s Showing logs for build targetau/tonline-shop/pr-936 #1 stage test-and-lint and container step-jx-variables
1m29s Showing logs for build targetau/tonline-shop/pr-936 #1 stage test-and-lint and container step-yarn-install
3m9s Showing logs for build targetau/tonline-shop/pr-936 #1 stage test-and-lint and container step-typecheck-test-lint
unable to retrieve container logs for containerd://56c3b24fc2a353718e08a4c91860f214ebc84fb6251d5e91705a59e48d2c7222
Pipeline failed on stage 'test-and-lint' : container 'step-typecheck-test-lint'. The execution of the pipeline has stopped.

image

If the pod fails and it or its logs disappear from Kubernetes before the logs have been persisted this is what you see. So you need to find out wha happened to the pod. Maybe you have prometheus mertrics you can look at.