Comments (3)
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:
-
Check Pod Logs: Inspect the logs of the
devlake-lake
pod to understand why it is crashing:kubectl logs <devlake-lake-pod-name>
-
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.
-
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].
-
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
-
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
-
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
-
Known Issues: There are known issues in version v1.0.0 that could cause the
devlake-lake
pod to crash, such as thepanic: 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.
Please share the pod log for diagnosis.
from incubator-devlake.
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)
- [Bug][Webhook] Can't associate an existing webhook with a project HOT 4
- [BUG].[REFDIFF].[PLUGIN] - 'SELECT * FROM refs ORDER BY created_date desc' taking too long HOT 6
- [Bug][GitHub] wrong pipeline name column if run-name is defined HOT 2
- [Bug][Jira][REST API] Unable to set up Jira connection via API due to token length issue HOT 4
- [Bug][Onboard] Option `enableGraphQL` is disabled by default. HOT 1
- [Bug][GitHub] Missing Pull Request data when changing the Time Range in Sync Policy HOT 1
- [Feature][Jira issue changelogs] Add customized jira account fields to table.accounts HOT 1
- [Bug][Sonarcloud] Error 1406 (22001): Data too long for column 'project_key' at row 1 HOT 10
- [Bug][GitLab] Sometimes Project data are automatically deleted. HOT 3
- [Bug][cicd_pipelines] Fix pipelines with Github HOT 11
- [Bug][Gitlab] v1.0.1-beta2 Data Time Range not working HOT 21
- [Bug][CircleCI Plugin] Only collecting first page of API responses HOT 6
- [Bug][Config UI] AxiosError: Request failed with status code 502 HOT 4
- [Bug][Gitlab] Component and File-Level Metrics not displaying HOT 7
- [Feature][Framework] Reminder before token is expired
- [Question][Data Models] Code Quality / Testing HOT 8
- [Bug][Pagerduty] The PagerDuty connection is pulling incident data but this is not being reflected in metrics. HOT 8
- [Bug][Framework] Projects shouldn't be deleted if it has any connections.
- [Bug][pagerduty] DevLake does not collect PagerDuty incidents HOT 5
- [Feature][PR metrics] Add key timestamps to the `project_pr_metrics` table
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from incubator-devlake.