[Bug] [dolphinscheduler-api docker image] Version 3.1.3 of the api image front-end resource is missing, resulting in a white screen on the home page
Search before asking
- [X] I had searched in the issues and found no similar issues.
What happened
https://dolphinscheduler.apache.org/zh-cn/docs/3.1.3/guide/installation/kubernetes k8s部署3.1.3版本成功后,访问首页出现白屏
What you expected to happen
可以正常访问首页
How to reproduce
按照https://dolphinscheduler.apache.org/zh-cn/docs/3.1.3/guide/installation/kubernetes说明,在k8s上部署服务 访问http://host/dolphinscheduler/ui/,出现白屏。 控制台报错信息,经排查 index.html使用/dolphinscheduler/ui/assets/index.13e03d85.js 在api的镜像中assets下,无index.13e03d85.js
Anything else
No response
Version
3.1.x
Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
Search before asking
- [X] I had searched in the issues and found no similar issues.
What happened
https://dolphinscheduler.apache.org/zh-cn/docs/3.1.3/guide/installation/kubernetes After successfully deploying version 3.1.3 of k8s, a white screen appears when accessing the home page
What you expected to happen
You can visit the homepage normally
How to reproduce
Deploy services on k8s according to https://dolphinscheduler.apache.org/zh-cn/docs/3.1.3/guide/installation/kubernetes Visit http://host/dolphinscheduler/ui/, a white screen appears. Console error message, after investigation index.html uses /dolphinscheduler/ui/assets/index.13e03d85.js Under assets in the api image, there is no index.13e03d85.js
Anything else
No response
Version
3.1.x
Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
Thank you for your feedback, we have received your issue, Please wait patiently for a reply.
- In order for us to understand your request as soon as possible, please provide detailed information, version or pictures.
- If you haven't received a reply for a long time, you can join our slack and send your question to channel
#troubleshooting
Hi, @qindisky Would you be interested in fix it?
try this https://github.com/apache/dolphinscheduler/issues/13523#issuecomment-1437788399
@SbloodyS @zhuangchong This problem is due to the docker image located in apache repository is bad. I think we should redistribute docker image as quickly as possible.
@qindisky Current solution is you could build image using Dockerfile located in dolphin-scheduler source code using the following command: docker build -t dolphin-api:latest -f src/main/docker/Dockerfile . (name dolphin-api just for test)
Emphasize again: The last "." is very important and it specifies the PATH for docker build context.
And I modify docker-compose.yaml like follows:
The dolphin login page display normally.
I think one possible problem is when building dolphinscheduler-api image it has used the previously generated front-end files(NPM would always change the resource name for each build process). @SbloodyS Please rebuild the image like what I did and redistribute it!
This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.
This issue has been closed because it has not received response for too long time. You could reopen it if you encountered similar problems in the future.