-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Release builds don't seem to serve js/css #9324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
In master release binary, when visit index.css/index.js it will return HTMLs. But other css/js files is normal. |
@lunny for me this only happens on the install page. If Gitea is already installed it returns 404 for index.css/index.js/gitgraph.js |
For me, all webpack/less-generated files were 404. It really looks to me like drone loses build context between the steps, there seems to be no other explanation. I'm not sure how to extract/decompile a go binary. I did try Opened #9338 to experimentally combine the steps into one. I hope we can get it landed soon so I can watch the |
I had the same problem without any CI/CD, just when building gitea master for codeberg-test.org from scratch. |
@ashimokawa How did you compile the source? Here is work
|
@lunny
https://codeberg.org/Codeberg/build-deploy-gitea/src/branch/master/Makefile |
@ashimokawa please remove |
The presence of |
For me everything seems to be broken since about 2 weeks..is this relevant for #9362 ? |
Fixes missing JS/CSS because drone did unwanted parallelization of the js/css task and the generate task. Combined the tasks into one and made 'make release' work standalone. Fixes: go-gitea#9324 Fixes: go-gitea#9362
I have no idea why you are talking about drone/parallel/depends_on when this simply also happens by running make... But if it fixes the problem, good ;) |
Your issue is a different one caused by the extra |
@ashimokawa fixed your issue in #9338 as well, now it won't make a difference whether you run |
I was having trouble upgrading Gitea from ef798d4 to 6af13db. After some debugging, I found this thread and changed The problem was the following: After doing the aforementioned, no 404s are present, anymore. |
|
Don't think we have an issue on this one yet:
The master release builds https://dl.gitea.io/gitea/master/ seem to have some issue serving js/css and instead serve either a 404 or redirect to
/install
depending on theINSTALL_LOCK
setting.I see no issue in the relevant drone steps, they do seem to complete fine and files should be generated and
generate
definitely runs (as part of therelease
dependencies):https://drone.gitea.io/go-gitea/gitea/17228/3/3
https://drone.gitea.io/go-gitea/gitea/17228/3/4
When I run
make release
locally, it does produce working binaries, so I think the issue is something specific to drone. I'm not sure how to troubleshoot further without access to a drone server. I'd attempt a merge of the relevant steps like #9316, but drone documentation says that files are shared between steps, so it may not help.The text was updated successfully, but these errors were encountered: