Giter Club home page Giter Club logo

Comments (3)

dosubot avatar dosubot commented on August 26, 2024 2

Hey @kapptob! I'm here to assist you with any bugs, questions, or contributions for Apache DevLake. Let's work together to solve this issue.

To resolve the CrashLoopBackOff issue with the devlake-lake pod and the AxiosError: Request failed with status code 504, you can follow these steps:

  1. Check Pod Logs: Inspect the logs of the devlake-lake pod to understand why it is crashing:

    kubectl logs <devlake-lake-pod-name>
  2. Verify Configuration: Ensure that all configurations, especially those related to the database, are correct. If you are using an external MySQL database, verify the connection details.

  3. Check Resource Limits: Make sure your Minikube cluster has enough CPU and memory allocated. The recommended resource allocations are 4 CPUs and 8GB of memory [1].

  4. Set Encryption Secret: Generate a secure encryption key and set it as an environment variable:

    ENCRYPTION_SECRET=$(openssl rand -base64 2000 | tr -dc 'A-Z' | fold -w 128 | head -n 1)
    export ENCRYPTION_SECRET=$ENCRYPTION_SECRET
  5. Reinstall Helm Chart: Uninstall and reinstall the DevLake Helm chart with the encryption secret:

    helm uninstall devlake
    helm repo add devlake https://apache.github.io/incubator-devlake-helm-chart
    helm repo update
    helm install devlake devlake/devlake --version=1.0-beta1 --set lake.encryptionSecret.secret=$ENCRYPTION_SECRET
  6. Port Forwarding: Ensure you are forwarding the correct ports to access the UI:

    kubectl port-forward service/devlake-ui  30090:4000
    kubectl port-forward service/devlake-grafana  30091:3000
  7. Known Issues: There are known issues in version v1.0.0 that could cause the devlake-lake pod to crash, such as the panic: invalid encKey error and Go Panic in OpenShift Kubernetes. Refer to the GettingStarted/Upgrade documentation and issue #5612 for more details [2].

By following these steps, you should be able to diagnose and resolve the CrashLoopBackOff issue with the devlake-lake pod and the AxiosError: Request failed with status code 504.

To continue talking to Dosu, mention @dosu.

from incubator-devlake.

klesh avatar klesh commented on August 26, 2024

Please share the pod log for diagnosis.

from incubator-devlake.

kapptob avatar kapptob commented on August 26, 2024

Here are the logs:

ubuntu@dds-t14-007:~$ kubectl logs devlake-lake-7b6f7d647f-jdjvk
Defaulted container "lake" out of: lake, waiting-database-ready (init)
time="2024-07-02T08:36:58Z" level=info msg="no [.env] file, devlake will read configuration from environment, please make sure you have set correct environment variable."
Version: v1.0-beta1@60faf14
time="2024-07-02 08:36:58" level=info msg="migration initialized"
time="2024-07-02 08:36:58" level=info msg="plugin loaded ae"
time="2024-07-02 08:36:59" level=info msg="plugin loaded azuredevops_go"
time="2024-07-02 08:36:59" level=info msg="plugin loaded bamboo"
time="2024-07-02 08:36:59" level=info msg="plugin loaded bitbucket"
time="2024-07-02 08:36:59" level=info msg="plugin loaded bitbucket_server"
time="2024-07-02 08:36:59" level=info msg="plugin loaded circleci"
time="2024-07-02 08:36:59" level=info msg="plugin loaded customize"
time="2024-07-02 08:36:59" level=info msg="plugin loaded dbt"
time="2024-07-02 08:37:01" level=info msg="plugin loaded dora"
time="2024-07-02 08:37:01" level=info msg="plugin loaded feishu"
time="2024-07-02 08:37:02" level=info msg="plugin loaded gitee"_

ubuntu@dds-t14-007:~$ kubectl logs devlake-ui-6c9777d847-xw6f2
2024/07/02 08:30:45 [notice] 10#10: using the "epoll" event method
2024/07/02 08:30:45 [notice] 10#10: nginx/1.25.4
2024/07/02 08:30:45 [notice] 10#10: built by gcc 12.2.0 (Debian 12.2.0-14)
2024/07/02 08:30:45 [notice] 10#10: OS: Linux 5.10.207
2024/07/02 08:30:45 [notice] 10#10: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2024/07/02 08:30:45 [notice] 10#10: start worker processes
2024/07/02 08:30:45 [notice] 10#10: start worker process 11
2024/07/02 08:30:45 [notice] 10#10: start worker process 12
10.244.0.1 - - [02/Jul/2024:08:30:50 +0000] "GET /health/ HTTP/1.1" 200 0 "-" "kube-probe/1.30" "-"

from incubator-devlake.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.