No admin user 'admin' found. Creating now... #13447

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

Originally created by @Alixxxxxxx on GitHub (Sep 3, 2024).

Description

==== BEGIN GITEA CONFIGURATION ====
2024/09/03 10:44:47 cmd/migrate.go:33:runMigrate() [I] AppPath: /usr/local/bin/gitea
2024/09/03 10:44:47 cmd/migrate.go:34:runMigrate() [I] AppWorkPath: /data
2024/09/03 10:44:47 cmd/migrate.go:35:runMigrate() [I] Custom path: /data/gitea
2024/09/03 10:44:47 cmd/migrate.go:36:runMigrate() [I] Log path: /data/log
2024/09/03 10:44:47 cmd/migrate.go:37:runMigrate() [I] Configuration file: /data/gitea/conf/app.ini
2024/09/03 10:44:47 ...2@v2.27.1/command.go:272:Run() [I] PING DATABASE postgres
2024/09/03 10:44:54 ...2@v2.27.1/command.go:272:Run() [W] Table oauth2_application Column confidential_client db default is true, struct default is TRUE
2024/09/03 10:44:55 ...2@v2.27.1/command.go:272:Run() [W] Table system_setting Column version db default is , struct default is 1
2024/09/03 10:44:56 ...2@v2.27.1/command.go:272:Run() [W] Table user Column max_repo_creation db default is '-1', struct default is -1
2024/09/03 10:45:02 ...2@v2.27.1/command.go:272:Run() [W] Table label Column archived_unix db default is , struct default is NULL
Wait for redis to become avialable...
gitea-redis-headless.nihao-cool.svc.cluster.local (10.244.85.199:6379) open
No admin user 'admin' found. Creating now...
Command error: CreateUser: name is reserved [name: admin]

Gitea Version

latest

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

1

Screenshots

1

Git Version

1

Operating System

1

How are you running Gitea?

1

Database

None

Originally created by @Alixxxxxxx on GitHub (Sep 3, 2024). ### Description ==== BEGIN GITEA CONFIGURATION ==== 2024/09/03 10:44:47 cmd/migrate.go:33:runMigrate() [I] AppPath: /usr/local/bin/gitea 2024/09/03 10:44:47 cmd/migrate.go:34:runMigrate() [I] AppWorkPath: /data 2024/09/03 10:44:47 cmd/migrate.go:35:runMigrate() [I] Custom path: /data/gitea 2024/09/03 10:44:47 cmd/migrate.go:36:runMigrate() [I] Log path: /data/log 2024/09/03 10:44:47 cmd/migrate.go:37:runMigrate() [I] Configuration file: /data/gitea/conf/app.ini 2024/09/03 10:44:47 ...2@v2.27.1/command.go:272:Run() [I] PING DATABASE postgres 2024/09/03 10:44:54 ...2@v2.27.1/command.go:272:Run() [W] Table oauth2_application Column confidential_client db default is true, struct default is TRUE 2024/09/03 10:44:55 ...2@v2.27.1/command.go:272:Run() [W] Table system_setting Column version db default is , struct default is 1 2024/09/03 10:44:56 ...2@v2.27.1/command.go:272:Run() [W] Table user Column max_repo_creation db default is '-1', struct default is -1 2024/09/03 10:45:02 ...2@v2.27.1/command.go:272:Run() [W] Table label Column archived_unix db default is , struct default is NULL Wait for redis to become avialable... gitea-redis-headless.nihao-cool.svc.cluster.local (10.244.85.199:6379) open No admin user 'admin' found. Creating now... Command error: CreateUser: name is reserved [name: admin] ### Gitea Version latest ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist 1 ### Screenshots 1 ### Git Version 1 ### Operating System 1 ### How are you running Gitea? 1 ### Database None
GiteaMirror added the issue/needs-feedback label 2025-11-02 10:42:40 -06:00
Author
Owner

@lunny commented on GitHub (Sep 3, 2024):

Please give more details. Looks like it's not an official Gitea binary/image?

@lunny commented on GitHub (Sep 3, 2024): Please give more details. Looks like it's not an official Gitea binary/image?
Author
Owner

@wxiaoguang commented on GitHub (Sep 4, 2024):

The reason is there, you have seen " No admin user 'admin' found. Creating now...", then what does next sentence say?

@wxiaoguang commented on GitHub (Sep 4, 2024): The reason is there, you have seen " No admin user 'admin' found. Creating now...", then what does next sentence say?
Author
Owner

@wxiaoguang commented on GitHub (Sep 4, 2024):

Command error: CreateUser: name is reserved [name: admin]

admin is a reserved name, so it can't be used to create a user with that name.

You could try other names like adm, root or adminuser, etc

@wxiaoguang commented on GitHub (Sep 4, 2024): ` Command error: CreateUser: name is reserved [name: admin]` `admin` is a reserved name, so it can't be used to create a user with that name. You could try other names like `adm`, `root` or `adminuser`, etc
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13447