Skip to content

CLI error when creating user in 1.20.3 #26615

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

Closed
lonix1 opened this issue Aug 21, 2023 · 2 comments
Closed

CLI error when creating user in 1.20.3 #26615

lonix1 opened this issue Aug 21, 2023 · 2 comments
Labels
Milestone

Comments

@lonix1
Copy link
Contributor

lonix1 commented Aug 21, 2023

Worked in 1.20.2 but broken in 1.20.3 which was released today.

Description

In my server provisioning tool (ansible) I create users. Inside the gitea container I run:

gitea admin user create \
  --admin
  --username foo
  --password foo
  --email [email protected]
  --must-change-password=false

That works the first time. And the second time it errors with user already exists which I use to detect that the user was created in a previous run.

That worked in 1.20.2.

But after upgrading to 1.20.3 I get:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x50ff9a]

goroutine 1 [running]:
fmt.Fprintf({0x0, 0x0}, {0x32882e7, 0x12}, {0xc002c3e780, 0x1, 0x1})
        /usr/local/go/src/fmt/print.go:225 +0x7a
code.gitea.io/gitea/cmd.RunMainApp(0xc002a908c0, {0xc000000180?, 0x4?, 0xc00297e978?})
        /go/src/code.gitea.io/gitea/cmd/main.go:23 +0xc7
main.main()
        /go/src/code.gitea.io/gitea/main.go:153 +0xc2b

Gitea Version

1.20.3

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

I'm using gitea in docker. Host has git 2.40.1

Operating System

linux

How are you running Gitea?

docker

Database

SQLite

@CaiCandong
Copy link
Member

CaiCandong commented Aug 21, 2023

Everything fine for me
image

Sorry, I didn't notice the version difference

jolheiser added a commit that referenced this issue Aug 21, 2023
@lunny lunny added this to the 1.20.4 milestone Aug 21, 2023
@jolheiser
Copy link
Member

Fixed by #26616

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 6, 2023
project-mirrors-bot-tu bot pushed a commit to project-mirrors/forgejo-as-gitea-fork that referenced this issue Jan 23, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants