-
Notifications
You must be signed in to change notification settings - Fork 5
Troubleshooting
Steve Salas edited this page Sep 9, 2020
·
4 revisions
Use this page to resolve issues you may encounter when running Code Dx on Kubernetes (k8s).
Note: Commands found in a troubleshooting item will use the following placeholders that you should replace with values matching your deployment.
-
cdx-svcis the tool orchestration k8s namespace -
minio-podis the MinIO pod name -
codedx-tool-orchestration-miniois the MinIO pod deployment name
If the MinIO pod does not come online, run the following command to view and follow the MinIO log (replace cdx-svc and minio-pod with your tool orchestration namespace and MinIO pod name).
kubectl -n cdx-svc logs -f minio-pod
If the log command ends with a final message that reads 'MinIO is already stopped' like in the example below, try removing the .minio.sys directory.
18:08:49.99
18:08:49.99 Welcome to the Bitnami minio container
18:08:49.99 Subscribe to project updates by watching https://github.com/bitnami/bitnami-docker-minio
18:08:49.99 Submit issues and feature requests at https://github.com/bitnami/bitnami-docker-minio/issues
18:08:50.00 Send us your feedback at [email protected]
18:08:50.00
18:08:50.00 INFO ==> ** Starting MinIO setup **
18:08:50.03 INFO ==> Starting MinIO in background...
18:09:00.03 INFO ==> Adding local Minio host to 'mc' configuration...
18:09:00.14 INFO ==> MinIO is already stopped...
To remove the .minio.sys directory and restart MinIO:
- Scale the MinIO deployment to 0 replicas with this command (replace
cdx-svcandcodedx-tool-orchestration-miniowith your tool orchestration namespace and MinIO deployment name):
kubectl -n cdx-svc scale --replicas=0 deployment/codedx-tool-orchestration-minio
- Access the MinIO Persistent Volume data and rename the .minio.sys directory with this command:
mv .minio.sys .minio.sys.old
- Scale the MinIO deployment to 1 replica with this command (replace
cdx-svcandcodedx-tool-orchestration-miniowith your tool orchestration namespace and MinIO deployment name):
kubectl -n cdx-svc scale --replicas=1 deployment/codedx-tool-orchestration-minio