Lab 5.1 I'm stuck at the jx get applications command at step 2
Hello,
I made it to Lab 5.1, but I'm stuck at step 2.
I did jx project quickstart
which worked for me, but I get nothing when I do jx get applications
.
This is what I've got:
Pipeline should start soon for: LFS268-z4kz/lfs268-golab
Watch pipeline activity via: jx get activity -f LFS268-z4kz/lfs268-golab -w
Browse the pipeline log via: jx get build logs LFS268-z4kz/lfs268-golab
You can list the pipelines via: jx get pipelines
When the pipeline is complete: jx get applicationsFor more help on available commands see: https://jenkins-x.io/developing/browsing/
I then do jx get build logs LFS268-z4kz/lfs268-golab
:
Showing logs for build [32mlfs268-z4kz/lfs268-golab/master #1 release[0m stage > [32mfrom-build-pack[0m and container [32mprepare[0m
2024/12/12 10:00:09 Entrypoint initializationShowing logs for build [32mlfs268-z4kz/lfs268-golab/master #1 release[0m stage [32mfrom-build-pack[0m and container [32mplace-scripts[0m
2024/12/12 10:00:10 Decoded script /tekton/scripts/script-0-dqb6f
2024/12/12 10:00:10 Decoded script /tekton/scripts/script-1-rfbvk
2024/12/12 10:00:10 Decoded script /tekton/scripts/script-2-gzg7p
2024/12/12 10:00:10 Decoded script /tekton/scripts/script-3-78xhp
2024/12/12 10:00:10 Decoded script /tekton/scripts/script-5-vsp48
2024/12/12 10:00:10 Decoded script /tekton/scripts/script-6-sv4lb
2024/12/12 10:00:10 Decoded script /tekton/scripts/script-7-gl2sf
2024/12/12 10:00:10 Decoded script /tekton/scripts/script-8-j7d7rShowing logs for build [32mlfs268-z4kz/lfs268-golab/master #1 release[0m stage > [32mfrom-build-pack[0m and container [32mworking-dir-initializer[0m
Showing logs for build [32mlfs268-z4kz/lfs268-golab/master #1 release[0m stage > [32mfrom-build-pack[0m and container [32mstep-git-clone[0m
git cloning url: https://github.com/LFS268-z4kz/lfs268-golab.git version > master@d3dd9d348f8655c7526f956d9873951c382dfde2 to dir: source
Cloning into 'source'...
HEAD is now at d3dd9d3 chore: Jenkins X build pack
checked out revision: master@d3dd9d348f8655c7526f956d9873951c382dfde2 to dir: sourceShowing logs for build [32mlfs268-z4kz/lfs268-golab/master #1 release[0m stage [32mfrom-build-pack[0m and container [32mstep-next-version[0m
Showing logs for build [32mlfs268-z4kz/lfs268-golab/master #1 release[0m stage > [32mfrom-build-pack[0m and container [32mstep-jx-variables[0m
WARNING: no $GIT_SECRET_MOUNT_PATH environment variable set
about to run: git clone https://github.com/LFS268-z4kz/jx3-gke-gsm.git /tmp/jx-> git-1241205471 in dir /tmp
Cloning into '/tmp/jx-git-1241205471'...
export APP_NAME='lfs268-golab'
export BRANCH_NAME='master'
export BUILD_NUMBER='1'
export DOCKERFILE_PATH='Dockerfile'
export DOCKER_REGISTRY='gcr.io'
export DOCKER_REGISTRY_ORG='jenkinsx-444410'
export DOMAIN='34.121.66.84.nip.io'
about to run: git rev-parse --abbrev-ref HEAD in dir .
master
export GIT_BRANCH='master'
export JENKINS_X_URL='http://dashboard-jx.34.121.66.84.nip.io/LFS268-z4kz/lfs268-golab/master/1'
export JX_CHART_REPOSITORY='http://jenkins-x-chartmuseum.jx.svc.cluster.local:8080'
export KANIKO_FLAGS='--skip-unused-stages --snapshot-mode=redo'
export MINK_AS='tekton-bot'
export MINK_IMAGE='gcr.io/jenkinsx-444410/lfs268-golab:0.0.1'
export NAMESPACE_SUB_DOMAIN='-jx.'
export PIPELINE_KIND='release'
export PUSH_CONTAINER_REGISTRY='gcr.io'
export REPO_NAME='lfs268-golab'
export REPO_OWNER='LFS268-z4kz'
export VERSION='0.0.1'
added variables to file: .jx/variables.sh
about to run: git config --get user.name in dir .
jenkins-x-bot
about to run: git config --get user.email in dir .
jenkins-x@googlegroups.com
about to run: git add * in dir .
about to run: git status -s in dir .
A .jx/variables.sh
A VERSION
about to run: git commit -m chore: add variables in dir .
[master f1c0a69] chore: add variables
2 files changed, 22 insertions(+)
create mode 100644 .jx/variables.sh
create mode 100644 VERSIONShowing logs for build [32mlfs268-z4kz/lfs268-golab/master #1 release[0m stage [32mfrom-build-pack[0m and container [32mstep-build-make-build[0m
pattern ./...: directory prefix . does not contain main module or its selected dependencies
pattern ./...: directory prefix . does not contain main module or its selected dependencies
CGO_ENABLED=0 GO15VENDOREXPERIMENT=1 go build -ldflags '' -o bin/lfs268-golab main.goShowing logs for build [32mlfs268-z4kz/lfs268-golab/master #1 release[0m stage [32mfrom-build-pack[0m and container [32mstep-check-registry[0m
sourcing .jx/variables.sh
verifying the container registry is setup
WARNING: no $GIT_SECRET_MOUNT_PATH environment variable set
about to run: git clone https://github.com/LFS268-z4kz/jx3-gke-gsm.git /tmp/jx-git-3811397816 in dir /tmp
Cloning into '/tmp/jx-git-3811397816'...
no ECR code necessary as using provider gkeShowing logs for build [32mlfs268-z4kz/lfs268-golab/master #1 release[0m stage [32mfrom-build-pack[0m and container [32mstep-build-container-build[0m
error checking push permissions -- make sure you entered the correct tag name, and that you are authenticated correctly, and try again: checking push permission for "gcr.io/jenkinsx-444410/lfs268-golab:0.0.1": creating push check transport for gcr.io failed: GET https://gcr.io/v2/token?scope=repository:jenkinsx-444410/lfs268-golab:push,pull&service=gcr.io: DENIED: Permission "artifactregistry.repositories.uploadArtifacts" denied on resource "projects/jenkinsx-444410/locations/us/repositories/gcr.io" (or it may not exist)
[31m
Pipeline failed on stage 'from-build-pack' : container 'step-build-container-build'. The
execution of the pipeline has stopped.[0m
Note: I notice this error message from the above log:
GET https://gcr.io/v2/token?scope=repository:jenkinsx-444410/lfs268-golab:push,pull&service=gcr.io: DENIED: Permission "artifactregistry.repositories.uploadArtifacts" denied on resource "projects/jenkinsx-444410/locations/us/repositories/gcr.io" (or it may not exist)
I'm looking at the Google Cloud Artifact Registry settings, which I set from Lab 4.1, and it seems to be enabled and scanning is on.
Here is what I get when I run jx get pipelines
:
Name URL LAST_BUILD STATUS DURATION
lfs268-z4kz/jx3-gke-gsm/PR-1 #1733997316936 completed-verify N/A N/A N/A N/A
lfs268-z4kz/jx3-gke-gsm/PR-1 #1733997405434 completed-verify N/A N/A N/A N/A
lfs268-z4kz/jx3-gke-gsm/main #1733997436433 completed-bootjob N/A N/A N/A N/A
lfs268-z4kz/jx3-gke-gsm/main #1733997601335 completed-bootjob N/A N/A N/A N/A
lfs268-z4kz/lfs268-golab/master #1733997602395 completed-release N/A N/A N/A N/A
I also tried kubectl -n jx get pods
and kubectl -n jx describe pod z4kz-lfs268-golab-master-release-tzvkz-from-build-pack-pod
:
z4kz-lfs268-golab-master-release-tzvkz-from-build-pack-pod 0/9 Error 0 25m
and
...
State: Terminated
Reason: Error
Message: [{"key":"StartedAt","value":"2024-12-12T10:01:45.083Z","type":3}]
Exit Code: 1
Started: Thu, 12 Dec 2024 03:01:28 -0700
Finished: Thu, 12 Dec 2024 03:01:45 -0700
Ready: False
Restart Count: 0
Environment Variables from:
jx-boot-job-env-vars Secret Optional: true
Environment:
HOME: /tekton/home
BUILD_ID: 1733997602395
JOB_NAME: release
JOB_SPEC: type:postsubmit
JOB_TYPE: postsubmit
PULL_BASE_REF: master
PULL_BASE_SHA: d3dd9d348f8655c7526f956d9873951c382dfde2
PULL_NUMBER:
PULL_PULL_REF:
PULL_PULL_SHA:
PULL_REFS: master:d3dd9d348f8655c7526f956d9873951c382dfde2
REPO_NAME: lfs268-golab
REPO_OWNER: LFS268-z4kz
REPO_URL: https://github.com/LFS268-z4kz/lfs268-golab.git
Mounts:
/tekton/bin from tekton-internal-bin (ro)
/tekton/creds from tekton-creds-init-home-8 (rw)
/tekton/creds-secrets/tekton-container-registry-auth from tekton-internal-secret-volume-> tekton-container-registry-a-frpb7 (rw)
/tekton/creds-secrets/tekton-git from tekton-internal-secret-volume-tekton-git-mm68l (rw)
/tekton/home from tekton-internal-home (rw)
/tekton/results from tekton-internal-results (rw)
/tekton/run/0 from tekton-internal-run-0 (ro)
/tekton/run/1 from tekton-internal-run-1 (ro)
/tekton/run/2 from tekton-internal-run-2 (ro)
/tekton/run/3 from tekton-internal-run-3 (ro)
/tekton/run/4 from tekton-internal-run-4 (ro)
/tekton/run/5 from tekton-internal-run-5 (ro)
/tekton/run/6 from tekton-internal-run-6 (ro)
/tekton/run/7 from tekton-internal-run-7 (ro)
/tekton/run/8 from tekton-internal-run-8 (rw)
/tekton/scripts from tekton-internal-scripts (ro)
/tekton/steps from tekton-internal-steps (ro)
/var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-jdtxt (ro)
/workspace from ws-9kxlx (rw)
Conditions:
Type Status
PodReadyToStartContainers False
Initialized True
Ready False
ContainersReady False
PodScheduled True
Volumes:
tekton-internal-workspace:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium:
SizeLimit:
tekton-internal-home:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium:
SizeLimit:
tekton-internal-results:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium:
SizeLimit:
tekton-internal-steps:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium:
SizeLimit:
tekton-internal-secret-volume-tekton-container-registry-a-frpb7:
Type: Secret (a volume populated by a Secret)
SecretName: tekton-container-registry-auth
Optional: false
tekton-internal-secret-volume-tekton-git-mm68l:
Type: Secret (a volume populated by a Secret)
SecretName: tekton-git
Optional: false
tekton-internal-scripts:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium:
SizeLimit:
tekton-internal-bin:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium:
SizeLimit:
tekton-internal-downward:
Type: DownwardAPI (a volume populated by information about the pod)
Items:
metadata.annotations['tekton.dev/ready'] -> ready
tekton-creds-init-home-0:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium: Memory
SizeLimit:
tekton-internal-run-0:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium:
SizeLimit:
tekton-creds-init-home-1:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium: Memory
SizeLimit:
tekton-internal-run-1:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium:
SizeLimit:
tekton-creds-init-home-2:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium: Memory
SizeLimit:
tekton-internal-run-2:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium:
SizeLimit:
tekton-creds-init-home-3:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium: Memory
SizeLimit:
tekton-internal-run-3:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium:
SizeLimit:
tekton-creds-init-home-4:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium: Memory
SizeLimit:
tekton-internal-run-4:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium:
SizeLimit:
tekton-creds-init-home-5:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium: Memory
SizeLimit:
tekton-internal-run-5:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium:
SizeLimit:
tekton-creds-init-home-6:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium: Memory
SizeLimit:
tekton-internal-run-6:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium:
SizeLimit:
tekton-creds-init-home-7:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium: Memory
SizeLimit:
tekton-internal-run-7:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium:
SizeLimit:
tekton-creds-init-home-8:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium: Memory
SizeLimit:
tekton-internal-run-8:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium:
SizeLimit:
ws-9kxlx:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium:
SizeLimit:
kube-api-access-jdtxt:
Type: Projected (a volume that contains injected data from multiple sources)
TokenExpirationSeconds: 3607
ConfigMapName: kube-root-ca.crt
ConfigMapOptional:
DownwardAPI: true
QoS Class: Burstable
Node-Selectors:
Tolerations: node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:...
Comments
-
There could be possibly two issues:
1. Tekton does not have upload permissions to GCR. Make sure all the step mentioned in the lab 4.1 are correctly followed.
2. You changed your github access token. If so, you will have to delete reference to previous token from Google cloud console first and then re-create the K8s cluster. This is also called out in the lab documentation.Hope this helps!
0 -
Thanks, let me check it out.
0 -
Thanks @HimanshuGautam.
I got this to work. I recreated my GitHub access token, deleted the Google GSM secrets, and made sure I had the exact jx binary as in the Lab 4.1 guide. Everything seems to be working after that. I'm thinking the main issue was the Google GSM secrets, because I for sure still had those from a previous run.
0 -
Also, it takes a while for the builds to run. You won't necessarily see full output until the build finishes. It will take a while before
jx get applications
works. I think it took about 20-30m for my build to complete.0 -
It's probably a good idea to run
jx get build logs
,jx get pipelines
, andjx get applications
in a tmux session. It seems like it's stuck, but it eventually completes the build if you watch those.0
Categories
- All Categories
- 167 LFX Mentorship
- 219 LFX Mentorship: Linux Kernel
- 795 Linux Foundation IT Professional Programs
- 355 Cloud Engineer IT Professional Program
- 179 Advanced Cloud Engineer IT Professional Program
- 82 DevOps Engineer IT Professional Program
- 127 Cloud Native Developer IT Professional Program
- 112 Express Training Courses
- 112 Express Courses - Discussion Forum
- 6.2K Training Courses
- 48 LFC110 Class Forum - Discontinued
- 17 LFC131 Class Forum
- 35 LFD102 Class Forum
- 227 LFD103 Class Forum
- 14 LFD110 Class Forum
- 39 LFD121 Class Forum
- 15 LFD133 Class Forum
- 7 LFD134 Class Forum
- 17 LFD137 Class Forum
- 63 LFD201 Class Forum
- 3 LFD210 Class Forum
- 5 LFD210-CN Class Forum
- 2 LFD213 Class Forum - Discontinued
- 128 LFD232 Class Forum - Discontinued
- 1 LFD233 Class Forum
- 2 LFD237 Class Forum
- 23 LFD254 Class Forum
- 697 LFD259 Class Forum
- 109 LFD272 Class Forum
- 3 LFD272-JP クラス フォーラム
- 10 LFD273 Class Forum
- 152 LFS101 Class Forum
- 1 LFS111 Class Forum
- 1 LFS112 Class Forum
- 1 LFS116 Class Forum
- 1 LFS118 Class Forum
- LFS120 Class Forum
- 7 LFS142 Class Forum
- 7 LFS144 Class Forum
- 3 LFS145 Class Forum
- 1 LFS146 Class Forum
- 3 LFS147 Class Forum
- 1 LFS148 Class Forum
- 15 LFS151 Class Forum
- 1 LFS157 Class Forum
- 33 LFS158 Class Forum
- 8 LFS162 Class Forum
- 1 LFS166 Class Forum
- 1 LFS167 Class Forum
- 3 LFS170 Class Forum
- 2 LFS171 Class Forum
- 1 LFS178 Class Forum
- 1 LFS180 Class Forum
- 1 LFS182 Class Forum
- 1 LFS183 Class Forum
- 29 LFS200 Class Forum
- 736 LFS201 Class Forum - Discontinued
- 2 LFS201-JP クラス フォーラム
- 14 LFS203 Class Forum
- 102 LFS207 Class Forum
- 1 LFS207-DE-Klassenforum
- 1 LFS207-JP クラス フォーラム
- 301 LFS211 Class Forum
- 55 LFS216 Class Forum
- 48 LFS241 Class Forum
- 42 LFS242 Class Forum
- 37 LFS243 Class Forum
- 15 LFS244 Class Forum
- LFS245 Class Forum
- LFS246 Class Forum
- 50 LFS250 Class Forum
- 1 LFS250-JP クラス フォーラム
- LFS251 Class Forum
- 154 LFS253 Class Forum
- LFS254 Class Forum
- LFS255 Class Forum
- 5 LFS256 Class Forum
- 1 LFS257 Class Forum
- 1.3K LFS258 Class Forum
- 10 LFS258-JP クラス フォーラム
- 111 LFS260 Class Forum
- 159 LFS261 Class Forum
- 41 LFS262 Class Forum
- 82 LFS263 Class Forum - Discontinued
- 15 LFS264 Class Forum - Discontinued
- 11 LFS266 Class Forum - Discontinued
- 20 LFS267 Class Forum
- 24 LFS268 Class Forum
- 29 LFS269 Class Forum
- 1 LFS270 Class Forum
- 199 LFS272 Class Forum
- 1 LFS272-JP クラス フォーラム
- LFS274 Class Forum
- 3 LFS281 Class Forum
- 9 LFW111 Class Forum
- 260 LFW211 Class Forum
- 182 LFW212 Class Forum
- 13 SKF100 Class Forum
- 1 SKF200 Class Forum
- 1 SKF201 Class Forum
- 782 Hardware
- 198 Drivers
- 68 I/O Devices
- 37 Monitors
- 96 Multimedia
- 174 Networking
- 91 Printers & Scanners
- 83 Storage
- 743 Linux Distributions
- 80 Debian
- 67 Fedora
- 15 Linux Mint
- 13 Mageia
- 23 openSUSE
- 143 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 348 Ubuntu
- 461 Linux System Administration
- 39 Cloud Computing
- 70 Command Line/Scripting
- Github systems admin projects
- 90 Linux Security
- 77 Network Management
- 101 System Management
- 46 Web Management
- 64 Mobile Computing
- 17 Android
- 34 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 371 Off Topic
- 114 Introductions
- 174 Small Talk
- 19 Study Material
- 507 Programming and Development
- 285 Kernel Development
- 204 Software Development
- 1.8K Software
- 211 Applications
- 180 Command Line
- 3 Compiling/Installing
- 405 Games
- 309 Installation
- 97 All In Program
- 97 All In Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)