gogs: Panic Error with Pull Request Submit
- Gogs version (or commit ref): 0.11.19.0609
- Git version: 2.7.4
- Operating system: Ubuntu
- Database (use
[x]
):- PostgreSQL
- [X ] MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gogs.io:
- Yes (provide example URL)
- No
- [ X] Not relevant
- Log gist (usually found in
log/gogs.log
):
Hi,
I am getting the following errors when submitting a pull request. The request went through but I am getting an empty page on submit. Please let me know if there is a configuration I am missing. Thanks.
Macaron] 2017-06-20 04:34:59: Started POST /vistara/itom2/compare/master…mangkang:master for 172.25.224.70 [Macaron] PANIC: runtime error: invalid memory address or nil pointer dereference /usr/local/go/src/runtime/panic.go:489 (0x4340bf) /usr/local/go/src/runtime/panic.go:63 (0x432f6e) /usr/local/go/src/runtime/signal_unix.go:290 (0x44930f) /home/vagrant/gopath/src/github.com/gogits/gogs/models/repo.go:612 (0xb7d70a) /home/vagrant/gopath/src/github.com/gogits/gogs/models/repo.go:630 (0xb7dbe0) /home/vagrant/gopath/src/github.com/gogits/gogs/models/repo.go:287 (0xb7a5df) /home/vagrant/gopath/src/github.com/gogits/gogs/models/repo.go:314 (0xb7a8ea) /home/vagrant/gopath/src/github.com/gogits/gogs/models/pull.go:140 (0xb6b775) /home/vagrant/gopath/src/github.com/gogits/gogs/models/pull.go:444 (0xb6fd6d) /home/vagrant/gopath/src/github.com/gogits/gogs/routers/repo/pull.go:705 (0xc2f699) /usr/local/go/src/runtime/asm_amd64.s:516 (0x460726) /usr/local/go/src/reflect/value.go:434 (0x4b279f) /usr/local/go/src/reflect/value.go:302 (0x4b1d64) /home/vagrant/gopath/src/github.com/gogits/gogs/vendor/github.com/go-macaron/inject/inject.go:177 (0x88bd3f) /home/vagrant/gopath/src/github.com/gogits/gogs/vendor/github.com/go-macaron/inject/inject.go:137 (0x88b70a) /home/vagrant/gopath/src/github.com/gogits/gogs/vendor/gopkg.in/macaron.v1/context.go:121 (0x8a99e2) /home/vagrant/gopath/src/github.com/gogits/gogs/vendor/gopkg.in/macaron.v1/context.go:112 (0x8a9906) /home/vagrant/gopath/src/github.com/gogits/gogs/vendor/github.com/go-macaron/session/session.go:186 (0x901dc0) /home/vagrant/gopath/src/github.com/gogits/gogs/vendor/gopkg.in/macaron.v1/context.go:79 (0x8a9781) /home/vagrant/gopath/src/github.com/gogits/gogs/vendor/github.com/go-macaron/inject/inject.go:157 (0x88ba12) /home/vagrant/gopath/src/github.com/gogits/gogs/vendor/github.com/go-macaron/inject/inject.go:135 (0x88b80b) /home/vagrant/gopath/src/github.com/gogits/gogs/vendor/gopkg.in/macaron.v1/context.go:121 (0x8a99e2) /home/vagrant/gopath/src/github.com/gogits/gogs/vendor/gopkg.in/macaron.v1/context.go:112 (0x8a9906) /home/vagrant/gopath/src/github.com/gogits/gogs/vendor/gopkg.in/macaron.v1/recovery.go:161 (0x8bd26b) /home/vagrant/gopath/src/github.com/gogits/gogs/vendor/gopkg.in/macaron.v1/logger.go:40 (0x8ace98) /home/vagrant/gopath/src/github.com/gogits/gogs/vendor/github.com/go-macaron/inject/inject.go:157 (0x88ba12) /home/vagrant/gopath/src/github.com/gogits/gogs/vendor/github.com/go-macaron/inject/inject.go:135 (0x88b80b) /home/vagrant/gopath/src/github.com/gogits/gogs/vendor/gopkg.in/macaron.v1/context.go:121 (0x8a99e2) /home/vagrant/gopath/src/github.com/gogits/gogs/vendor/gopkg.in/macaron.v1/context.go:112 (0x8a9906) /home/vagrant/gopath/src/github.com/gogits/gogs/vendor/gopkg.in/macaron.v1/logger.go:52 (0x8bc4e4) /home/vagrant/gopath/src/github.com/gogits/gogs/vendor/gopkg.in/macaron.v1/logger.go:40 (0x8ace98) /home/vagrant/gopath/src/github.com/gogits/gogs/vendor/github.com/go-macaron/inject/inject.go:157 (0x88ba12) /home/vagrant/gopath/src/github.com/gogits/gogs/vendor/github.com/go-macaron/inject/inject.go:135 (0x88b80b) /home/vagrant/gopath/src/github.com/gogits/gogs/vendor/gopkg.in/macaron.v1/context.go:121 (0x8a99e2) /home/vagrant/gopath/src/github.com/gogits/gogs/vendor/gopkg.in/macaron.v1/router.go:187 (0x8be539) /home/vagrant/gopath/src/github.com/gogits/gogs/vendor/gopkg.in/macaron.v1/router.go:296 (0x8b65dd) /home/vagrant/gopath/src/github.com/gogits/gogs/vendor/gopkg.in/macaron.v1/macaron.go:220 (0x8ae4dc) /usr/local/go/src/net/http/server.go:2568 (0x6dc702) /usr/local/go/src/net/http/server.go:3088 (0x6de103) <autogenerated>:312 (0x703024) /usr/local/go/src/net/http/h2_bundle.go:4319 (0x6fa5ad) /usr/local/go/src/net/http/h2_bundle.go:4599 (0x6b30f9) /usr/local/go/src/runtime/asm_amd64.s:2197 (0x462dc1) [Macaron] 2017-06-20 04:34:59: Completed POST /vistara/itom2/compare/master…mangkang:master 500 Internal Server Error in 103.436195ms
…
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 15 (4 by maintainers)
Commits related to this issue
- repo: fix panic on pull request submit (#4572) — committed to gogs/gogs by unknwon 7 years ago
- repo: fix cannot fork repository (#4572) Should not load attributes if repository not found in HasForkedRepo. — committed to gogs/gogs by unknwon 7 years ago
Tested pull request on master branch. Works fine now. Thanks!
@caffeineaddiction I think it is already available (
latest
anddevelop
): https://hub.docker.com/r/gogs/gogs/builds/