- Workload is not in a healthy status and
source-scanner is in READY=False status. The
Messages section shows
container step-metadata-store-plugin. error: scan job failed.
$ tanzu apps workload get -n dev sample-app
📡 Overview
......
💾 Source
......
📦 Supply Chain
name: source-test-scan-to-url
RESOURCE READY HEALTHY TIME OUTPUT
source-provider True True 51m GitRepository/sample-app
source-tester True True 51m Runnable/sample-app
source-scanner False False 0s SourceScan/sample-app
......
💬 Messages
Workload [HealthyConditionRule]: condition status: False, message: Scan job failed: container step-metadata-store-plugin. error: scan job failed. logs:
... t-format api-json --path /path/to/file.json 1>out.txt 2>error.txt (* Output will be redirected to out.txt and error will be redirected to error.txt .)
......
🛶 Pods
NAME READY STATUS RESTARTS AGE
scan-sample-app-gcnx6-pod 1/9 NotReady 0 24s
sample-app-252mm-test-pod 0/1 Completed 0 51m
-
step-metadata-store-plugin container log displays the error message -
tls: failed to verify certificate: x509: certificate has expired or is not yet valid
$ kubectl logs -n dev scan-sample-app-pw9fr-pod -c step-metadata-store-plugin
Flag --cyclonedxtype has been deprecated, will be removed in version "v2.0.0". Use "input-format" instead.
✖ Error: Post "https://metadata-store.abc/api/sourceReport?": tls: failed to verify certificate: x509: certificate has expired or is not yet valid: current time 2023-08-24T07:39:17Z is after 2023-08-07T02:54:21Z