500 page appear while trying to view repository items #11879

Closed
opened 2025-11-02 09:50:42 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @ade-adeoti on GitHub (Oct 18, 2023).

Description

I have Gitea install on debian vm, I have created an account and login. I created repository and push project item into it. I close the vm and shut down the host system. When I restart the host and the vm, and trying to check my repository, I saw 500 page
Screenshot from 2023-10-18 08-57-32

Gitea Version

1.20.5

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

debian

How are you running Gitea?

I run the Gitea in K3S clauter

Database

PostgreSQL

Originally created by @ade-adeoti on GitHub (Oct 18, 2023). ### Description I have Gitea install on debian vm, I have created an account and login. I created repository and push project item into it. I close the vm and shut down the host system. When I restart the host and the vm, and trying to check my repository, I saw 500 page ![Screenshot from 2023-10-18 08-57-32](https://github.com/go-gitea/gitea/assets/146231241/47e0668d-9014-46bb-ae8c-73a2ff8e6811) ### Gitea Version 1.20.5 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System debian ### How are you running Gitea? I run the Gitea in K3S clauter ### Database PostgreSQL
GiteaMirror added the issue/needs-feedbacktype/bug labels 2025-11-02 09:50:43 -06:00
Author
Owner

@lng2020 commented on GitHub (Oct 18, 2023):

Can u show us some logs?

and

Can you reproduce the bug on the Gitea demo site?
Yes

how?

@lng2020 commented on GitHub (Oct 18, 2023): Can u show us some logs? and >Can you reproduce the bug on the Gitea demo site? Yes how?
Author
Owner

@aceArt-GmbH commented on GitHub (Nov 29, 2023):

gitea doctor check and gitea doctor convert seem to have fixed the issue for us

Maybe this is the same issue, but after upgrading from 1.20.5 to 1.21.1 the repo page throws 500.

/29 09:11:09 ...ers/web/repo/view.go:1000:renderCode() [E] GetRecentlyPushedBranches: Error 1267 (HY000): Illegal mix of collations (utf8mb4_0900_ai_ci,IMPLICIT) and (utf8mb4_general_ci,IMPLICIT) for operation '='
2023/11/29 09:11:10 .../context_response.go:68:HTML() [D] Template: status/500
2023/11/29 09:11:10 ...eb/routing/logger.go:102:func1() [I] router: completed GET /myOrg/my-repo.de for 192.168.2.2:56028, 500 Internal Server Error in 63.6ms @ repo/view.go:725(repo.Home)
@aceArt-GmbH commented on GitHub (Nov 29, 2023): <details> <summary><code>gitea doctor check</code> and <code>gitea doctor convert</code> seem to have fixed the issue for us</summary> Maybe this is the same issue, but after upgrading from 1.20.5 to 1.21.1 the repo page throws 500. ``` /29 09:11:09 ...ers/web/repo/view.go:1000:renderCode() [E] GetRecentlyPushedBranches: Error 1267 (HY000): Illegal mix of collations (utf8mb4_0900_ai_ci,IMPLICIT) and (utf8mb4_general_ci,IMPLICIT) for operation '=' 2023/11/29 09:11:10 .../context_response.go:68:HTML() [D] Template: status/500 2023/11/29 09:11:10 ...eb/routing/logger.go:102:func1() [I] router: completed GET /myOrg/my-repo.de for 192.168.2.2:56028, 500 Internal Server Error in 63.6ms @ repo/view.go:725(repo.Home) ``` </details>
Author
Owner

@wxiaoguang commented on GitHub (Dec 11, 2023):

No more feedback, I think this issue can be closed, feel free to reopen if there are more clues.

@wxiaoguang commented on GitHub (Dec 11, 2023): No more feedback, I think this issue can be closed, feel free to reopen if there are more clues.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#11879