Skip to content
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

Fixes to #947 broke ssh access to repositories #1771

Closed
5 tasks
trebonian opened this issue May 20, 2017 · 1 comment
Closed
5 tasks

Fixes to #947 broke ssh access to repositories #1771

trebonian opened this issue May 20, 2017 · 1 comment
Labels
issue/duplicate The issue has already been reported.

Comments

@trebonian
Copy link

trebonian commented May 20, 2017

Description

Any access to repository via git causes a crash. It appears that my repository wasn't migrated to include #947 team-units and the latest set of fixes try and access the units.
What procedure do I need to execute to update the repositories? Or can the code be more properly backwards compatible with the old repository version.

Screenshots

If this issue involves the Web Interface, please include a screenshot

@trebonian
Copy link
Author

This appears to be the same as issue #1768 - sorry for duplicate.

alpine:~/gitea$ git remote show barry
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x80 pc=0x202f28bec0e]

goroutine 1 [running]:
panic(0x202f4215580, 0xc420010080)
/usr/lib/go/src/runtime/panic.go:500 +0x1a5
code.gitea.io/gitea/models.(*Repository).getUnitsByUserID(0xc4201a9340, 0x202f4b8bc80, 0xc420292280, 0x1, 0x1, 0x0, 0x0)
/srv/app/src/code.gitea.io/gitea/models/repo.go:361 +0x8e
code.gitea.io/gitea/models.(*Repository).CheckUnitUser(0xc4201a9340, 0x1, 0x1, 0x1, 0x0)
/srv/app/src/code.gitea.io/gitea/models/repo.go:334 +0x5c
code.gitea.io/gitea/cmd.runServ(0xc4200bf400, 0x0, 0xc4200bf400)
/srv/app/src/code.gitea.io/gitea/cmd/serv.go:253 +0x1e6d
code.gitea.io/gitea/vendor/github.com/urfave/cli.HandleAction(0x202f41cab00, 0x202f43b2a48, 0xc4200bf400, 0xc420053b00, 0x0)
/srv/app/src/code.gitea.io/gitea/vendor/github.com/urfave/cli/app.go:471 +0xbb
code.gitea.io/gitea/vendor/github.com/urfave/cli.Command.Run(0x202f38653bf, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x202f38bd9bf, 0x2f, 0x0, ...)
/srv/app/src/code.gitea.io/gitea/vendor/github.com/urfave/cli/command.go:191 +0xcc9
code.gitea.io/gitea/vendor/github.com/urfave/cli.(*App).Run(0xc4203a2d00, 0xc42000c1c0, 0x4, 0x4, 0x0, 0x0)
/srv/app/src/code.gitea.io/gitea/vendor/github.com/urfave/cli/app.go:241 +0x6a5
main.main()
/srv/app/src/code.gitea.io/gitea/main.go:44 +0x3ac
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

@bkcsoft bkcsoft added the issue/duplicate The issue has already been reported. label May 20, 2017
@bkcsoft bkcsoft closed this as completed May 20, 2017
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/duplicate The issue has already been reported.
Projects
None yet
Development

No branches or pull requests

2 participants