Skip to content
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

File "/static/assets/img/404.png" not found #31867

Closed
xNyapAe3 opened this issue Aug 19, 2024 · 4 comments
Closed

File "/static/assets/img/404.png" not found #31867

xNyapAe3 opened this issue Aug 19, 2024 · 4 comments
Labels
issue/not-a-bug The reported issue is the intended behavior or the problem is not inside Gitea

Comments

@xNyapAe3
Copy link

Description

I'm new to Gitea, it's really a great project.

I followed the instructions on https://docs.gitea.com/administration/reverse-proxies#nginx-and-serve-static-resources-directly, run make frontend and config STATIC_ROOT_PATH = /static, also rename public/ directory to static/.

Everything works fine, except when I visit a non-existent link, the 404 image is broken. The url https://git.example.com/static/assets/img/404.png return 404, due to 404.png does not exist under directory /static/assets/img/.

There should be the same issue with other error codes, such as 500, etc.

Gitea Version

1.22.1

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

gitea

Git Version

go-git

Operating System

Windows 11

How are you running Gitea?

command-line

Database

MSSQL

@yp05327
Copy link
Contributor

yp05327 commented Aug 19, 2024

This is a bit strange.

due to 404.png does not exist under directory

404.png has been removed in 1.23, see #31409
But you said that your version is 1.22.1, so 404.png should be there.

@wxiaoguang
Copy link
Contributor

Because they were using wrong branch. They were using "main (1.23)" branch to "make frontend" for 1.22

@wxiaoguang wxiaoguang added issue/not-a-bug The reported issue is the intended behavior or the problem is not inside Gitea and removed type/bug labels Aug 19, 2024
@xNyapAe3
Copy link
Author

I replaced the binary with main-nightly version, now it goes well. Thanks guys.

@wxiaoguang
Copy link
Contributor

wxiaoguang commented Aug 19, 2024

Actually the document should be updated:

  1. Use the correct git branch to checkout & build
  2. (OR) Use ./gitea embedded extract to get the assets, no need to figure the git branch nor build manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue/not-a-bug The reported issue is the intended behavior or the problem is not inside Gitea
Projects
None yet
Development

No branches or pull requests

3 participants