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

Error 500 on admin users dashboard when there is a new version #18698

Closed
exbob opened this issue Feb 10, 2022 · 2 comments · Fixed by #18701
Closed

Error 500 on admin users dashboard when there is a new version #18698

exbob opened this issue Feb 10, 2022 · 2 comments · Fixed by #18701
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented issue/critical This issue should be fixed ASAP. If it is a PR, the PR should be merged ASAP type/bug
Milestone

Comments

@exbob
Copy link

exbob commented Feb 10, 2022

Gitea Version

itea version 1.16.0+rc1 built with GNU Make 4.3, go1.17.6 : bindata, timetzdata, sqlite, sqlite_unlock_notify

Git Version

git version 2.30.2

Operating System

Docker(QNAP Container Station)

How are you running Gitea?

User Docker(QNAP Container Station)。Reference https://www.anchorpoint.app/blog/setting-up-a-self-hosted-git-server

Database

PostgreSQL

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Description

I've been using it without problems until today。
When I access the site administration page, I get a 500 error 。

log:

2022/02/10 10:32:20 Completed GET /user/events 200 OK in 14m13.091847516s
2022/02/10 10:32:20 ...s/context/context.go:206:HTML() [E] Render failed: template: admin/dashboard:8:90: executing "admin/dashboard" at <Str2html>: invalid value; expected string
2022/02/10 10:32:20 Completed GET /admin 500 Internal Server Error in 42.299935ms
2022/02/10 10:32:21 Started GET /user/events for 192.168.5.51:55427

Screenshots

image

@wxiaoguang
Copy link
Contributor

Please upgrade to 1.16.1, and feel free to reopen if there is still an issue.

@wxiaoguang
Copy link
Contributor

Hmm, I found that there is a bug:

Introduced by:

Need to improve:

  1. Incorrect leading "
  2. No i18n
  3. <a> should have target=_blank
  4. {{.AppVer ... is incorrect, "AppVer" is a function, so it should be {{AppVer ...}}
				<p>"Gitea {{.RemoteVersion | Str2html}} is now available, you are running {{.AppVer | Str2html}}. Check the <a href="https://blog.gitea.io">blog</a> for more details.</p>

@wxiaoguang wxiaoguang reopened this Feb 10, 2022
@wxiaoguang wxiaoguang added type/bug issue/critical This issue should be fixed ASAP. If it is a PR, the PR should be merged ASAP issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented labels Feb 10, 2022
@wxiaoguang wxiaoguang added this to the 1.17.0 milestone Feb 10, 2022
@wxiaoguang wxiaoguang changed the title Error 500 on admin users dashboard Error 500 on admin users dashboard when there is a new version Feb 10, 2022
@lunny lunny modified the milestones: 1.17.0, 1.16.2 Feb 10, 2022
@go-gitea go-gitea locked and limited conversation to collaborators Apr 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented issue/critical This issue should be fixed ASAP. If it is a PR, the PR should be merged ASAP type/bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants