Unable to update language stats for ID and stats queue indexer.Index(1424) failed #10904

Closed
opened 2025-11-02 09:21:44 -06:00 by GiteaMirror · 5 comments
Owner

Originally created by @hiifong on GitHub (May 24, 2023).

Description

I mirrored the repository,Every time I restart gitea will report some error.

  1. Unable to update language stats for ID
  2. stats queue indexer.Index(1424) failed

image

Gitea Version

v1.20+

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

Ubuntu

How are you running Gitea?

./gitea web

Database

MySQL

Originally created by @hiifong on GitHub (May 24, 2023). ### Description I mirrored [the repository](https://github.com/itwanger/paicoding),Every time I restart gitea will report some error. 1. Unable to update language stats for ID 2. stats queue indexer.Index(1424) failed ![image](https://github.com/go-gitea/gitea/assets/89133723/ce92dc82-2398-47d8-bf59-395a3d51d34d) ### Gitea Version v1.20+ ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System Ubuntu ### How are you running Gitea? ./gitea web ### Database MySQL
GiteaMirror added the type/bug label 2025-11-02 09:21:44 -06:00
Author
Owner

@wxiaoguang commented on GitHub (May 24, 2023):

Unrelated problem: it seems that you use "conn" mode for your loggers , which is not correctly configured. I guess you could remove the "conn" mode for loggers.

For the duplicate key problem, is it possible to debug what the content of statsmap is in the UpdateLanguageStats, and what are the lagnuage_stat database records for the repo 1424 ?

@wxiaoguang commented on GitHub (May 24, 2023): Unrelated problem: it seems that you use "conn" mode for your loggers , which is not correctly configured. I guess you could remove the "conn" mode for loggers. For the duplicate key problem, is it possible to debug what the content of `stats`map is in the `UpdateLanguageStats`, and what are the lagnuage_stat database records for the repo 1424 ?
Author
Owner

@wxiaoguang commented on GitHub (May 24, 2023):

OK, reproduced. The problem is this:

stats = {map[string]int64} 
 0 = Shell -> 5131
 1 = Java -> 961174
 2 = java -> 6992114
 3 = PHP -> 15460
 4 = SCSS -> 66518
 5 = PLpgSQL -> 266014
 6 = Groovy -> 2134
@wxiaoguang commented on GitHub (May 24, 2023): OK, reproduced. The problem is this: ``` stats = {map[string]int64} 0 = Shell -> 5131 1 = Java -> 961174 2 = java -> 6992114 3 = PHP -> 15460 4 = SCSS -> 66518 5 = PLpgSQL -> 266014 6 = Groovy -> 2134 ```
Author
Owner

@hiifong commented on GitHub (May 24, 2023):

What should I do for the second question?

@hiifong commented on GitHub (May 24, 2023): What should I do for the second question?
Author
Owner

@wxiaoguang commented on GitHub (May 24, 2023):

Nothing to do, it will be fixed by Merge different langauges for language stats #24900

@wxiaoguang commented on GitHub (May 24, 2023): Nothing to do, it will be fixed by Merge different langauges for language stats #24900
Author
Owner

@hiifong commented on GitHub (May 24, 2023):

thank you

@hiifong commented on GitHub (May 24, 2023): thank you
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#10904