Failed to verify user: user does not exist [uid: 0, name: OAUTH_USER] #13701

Closed
opened 2025-11-02 10:50:48 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @sebastian-sauer on GitHub (Nov 13, 2024).

Description

Analysing our gitea log files we see a lot of the following log messages:

routers/web/web.go:121:func9() [E] Failed to verify user: user does not exist [uid: 0, name: OAUTH_USER]

It looks like this is a log in web.go:

log.Error("Failed to verify user: %v", err)

Having an error in the logs for every wrong auth attempt could explode the log files and hide other important messages.

Additional question: is the OAUTH_USER a special user?

Gitea Version

1.22.3

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Binary + MariaDb

Database

MySQL/MariaDB

Originally created by @sebastian-sauer on GitHub (Nov 13, 2024). ### Description Analysing our gitea log files we see a lot of the following log messages: `routers/web/web.go:121:func9() [E] Failed to verify user: user does not exist [uid: 0, name: OAUTH_USER]` It looks like this is a log in web.go: [log.Error("Failed to verify user: %v", err)](https://github.com/go-gitea/gitea/blob/840ad7eefe2b49ab453b9a89b153a264a8c9f8a2/routers/web/web.go#L120-L121) Having an error in the logs for every wrong auth attempt could explode the log files and hide other important messages. Additional question: is the OAUTH_USER a special user? ### Gitea Version 1.22.3 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? Binary + MariaDb ### Database MySQL/MariaDB
GiteaMirror added the type/bug label 2025-11-02 10:50:49 -06:00
Author
Owner

@wxiaoguang commented on GitHub (Nov 13, 2024):

What are the logs around it? Is there any one trying to use "OAUTH_USER" as user name to try to login?

@wxiaoguang commented on GitHub (Nov 13, 2024): What are the logs around it? Is there any one trying to use "OAUTH_USER" as user name to try to login?
Author
Owner

@sebastian-sauer commented on GitHub (Nov 13, 2024):

I only got the error logs for this system and nearly the only output we get is this log message logged multiple times.

But while digging through some other issues i think this is a duplicate of the following issue:

https://github.com/go-gitea/gitea/issues/31470

@sebastian-sauer commented on GitHub (Nov 13, 2024): I only got the error logs for this system and nearly the only output we get is this log message logged multiple times. But while digging through some other issues i think this is a duplicate of the following issue: https://github.com/go-gitea/gitea/issues/31470
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13701