Ask Your Question
3

How can the issue of receiving a 503 Service Unavailable error after logging into Thingsboard be resolved by starting Kubernetes minikube?

asked 2023-07-08 07:59:20 +0000

lalupa gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-07-08 08:20:02 +0000

scrum gravatar image

To resolve the issue of receiving a 503 Service Unavailable error after logging into Thingsboard by starting Kubernetes minikube, you can follow these steps:

  1. Open a new terminal in your system.

  2. Start minikube by running the following command:

    minikube start
    
  3. Verify that minikube is running by running the following command:

    kubectl get po -n kube-system
    

    You should see a list of pods running in the kube-system namespace, including the minikube pod.

  4. Check the status of the Thingsboard pods by running the following command:

    kubectl get po -n thingsboard
    

    You should see a list of pods running in the thingsboard namespace, including the thingsboard-nginx pod.

  5. Verify that the thingsboard-nginx pod is running by running the following command:

    kubectl logs -f -n thingsboard <pod-name>
    

    Replace <pod-name> with the name of the thingsboard-nginx pod. You should see the nginx logs in your terminal.

  6. If the thingsboard-nginx pod is not running or if you see any errors in the logs, you can delete and then recreate the Thingsboard deployment by running the following commands:

    kubectl delete deployment -n thingsboard thingsboard
    kubectl apply -f thingsboard.yaml -n thingsboard
    

    Replace thingsboard.yaml with the name of your Thingsboard deployment file.

  7. Once the deployment is recreated, check the status of the pods again by running the following command:

    kubectl get po -n thingsboard
    

    You should see a running thingsboard-nginx pod.

  8. Try logging into Thingsboard again and check if the 503 error has been resolved.

If the issue persists, you can try restarting the minikube cluster and checking the status of the pods again. You can also check the nginx configuration file in the thingsboard-nginx pod for any errors or misconfigurations.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-07-08 07:59:20 +0000

Seen: 13 times

Last updated: Jul 08 '23