Skip to content

Troubleshooting

Steve Salas edited this page Sep 9, 2020 · 4 revisions

Troubleshooting

MinIO is already stopped

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-svc is the tool orchestration k8s namespace
  • minio-pod is the MinIO pod name
  • codedx-tool-orchestration-minio is the MinIO pod deployment name

MinIO is already stopped

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:

  1. Scale the MinIO deployment to 0 replicas with this command (replace cdx-svc and codedx-tool-orchestration-minio with your tool orchestration namespace and MinIO deployment name):
kubectl -n cdx-svc scale --replicas=0 deployment/codedx-tool-orchestration-minio
  1. Access the MinIO Persistent Volume data and rename the .minio.sys directory with this command:
mv .minio.sys .minio.sys.old
  1. Scale the MinIO deployment to 1 replica with this command (replace cdx-svc and codedx-tool-orchestration-minio with your tool orchestration namespace and MinIO deployment name):
kubectl -n cdx-svc scale --replicas=1 deployment/codedx-tool-orchestration-minio

Clone this wiki locally