Quick command reference
Helpful commands for troubleshooting the on-prem Harness Self-Managed Enterprise Edition.
This topic provides a short list of commands that are useful for troubleshooting Harness Self-Managed Enterprise Edition.
Retrieve your MongoDB password
To print your MongoDB password to the command line, use kubectl get secret:
kubectl get secret -n <namespace> mongodb-replicaset-chart -o jsonpath={.data.mongodb-root-password} | base64 --decode | awk '{print $1}'Shell into MongoDB
Use the kubectl exec command to start a shell session in the container that runs MongoDB. Modify the command for your MongoDB configuration:
kubectl exec -it mongodb-replicaset-chart-0 -n <namespace> -- /bin/shIf the MongoDB replica is SECONDARY, try
mongodb-replicaset-chart-1ormongodb-replicaset-chart-2.If the MongoDB replica is PRIMARY, use
admin:db.auth('admin', <password>)
Shell into TimescaleDB
Use the following commands to access your installation of TimescaleDB:
Use the
kubectl execcommand to open a shell session in the TimescaleDB pod:Connect using the default user role:
Enter your password and return.
Shell into postgres
Use the kubectl exec command to open a shell session in your postgres pod:
Last updated
Was this helpful?