Closed
Description
- Gitea version (or commit ref): 977dcf9
- Git version: 2.11.0
- Operating system: Ubuntu amd64 Gitea server, MacOS GIT client
- Database (use
[x]
):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL)
- No
- Not relevant
- Log gist:
Description
After upgrade to latest version, git pull of existing repo via SSH as admin user with LDAP auth fails with the follwing panic:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x80 pc=0xcebb0c]
goroutine 1 [running]:
code.gitea.io/gitea/models.(*Repository).getUnitsByUserID(0xc420174420, 0x1dd8160, 0xc420266960, 0x4, 0x1, 0x0, 0x0)
/srv/app/src/code.gitea.io/gitea/models/repo.go:361 +0x8c
code.gitea.io/gitea/models.(*Repository).CheckUnitUser(0xc420174420, 0x4, 0x1, 0x1, 0x0)
/srv/app/src/code.gitea.io/gitea/models/repo.go:334 +0x5a
code.gitea.io/gitea/cmd.runServ(0xc42013a3c0, 0x0, 0xc42013a300)
/srv/app/src/code.gitea.io/gitea/cmd/serv.go:253 +0x1f67
code.gitea.io/gitea/vendor/github.com/urfave/cli.HandleAction(0x12b1ba0, 0x146f9c0, 0xc42013a3c0, 0xc420131800, 0x0)
/srv/app/src/code.gitea.io/gitea/vendor/github.com/urfave/cli/app.go:471 +0xb9
code.gitea.io/gitea/vendor/github.com/urfave/cli.Command.Run(0x14107f1, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x145b443, 0x2f, 0x0, ...)
/srv/app/src/code.gitea.io/gitea/vendor/github.com/urfave/cli/command.go:191 +0xb4b
code.gitea.io/gitea/vendor/github.com/urfave/cli.(*App).Run(0xc4201b1a00, 0xc4200101c0, 0x4, 0x4, 0x0, 0x0)
/srv/app/src/code.gitea.io/gitea/vendor/github.com/urfave/cli/app.go:241 +0x65f
main.main()
/srv/app/src/code.gitea.io/gitea/main.go:44 +0x3cd
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I've tried to run external user syncronization several times but it didn't help, had to revert to an erlier version.