Skip to content

Instantly share code, notes, and snippets.

@bkcsoft
Created June 26, 2017 23:43
Show Gist options
  • Save bkcsoft/e934aacc064fb767a304db53da2ea128 to your computer and use it in GitHub Desktop.
Save bkcsoft/e934aacc064fb767a304db53da2ea128 to your computer and use it in GitHub Desktop.
[Macaron] 2017-06-27 01:42:36: Started POST /toor/foobar/issues/assignee for [::1]
2017/06/27 01:42:36 [I] [SQL] SELECT `id`, `lower_name`, `name`, `full_name`, `email`, `keep_email_private`, `passwd`, `login_type`, `login_source`, `login_name`, `type`, `location`, `website`, `rands`, `salt`, `created_unix`, `updated_unix`, `last_login_unix`, `last_repo_visibility`, `max_repo_creation`, `is_active`, `is_admin`, `allow_git_hook`, `allow_import_local`, `allow_create_organization`, `prohibit_login`, `avatar`, `avatar_email`, `use_custom_avatar`, `num_followers`, `num_following`, `num_stars`, `num_repos`, `description`, `num_teams`, `num_members`, `diff_view_style` FROM `user` WHERE `id`=? LIMIT 1 [1]
2017/06/27 01:42:36 [D] Session ID: 57c8e47aaa09b953
2017/06/27 01:42:36 [D] CSRF Token: b5D2aLpffnQFxPe4KAhKfv0VZzA6MTQ5ODUxNzc5MTk2NTMyMzcwMw==
2017/06/27 01:42:36 [I] [SQL] SELECT count(*) FROM `notification` WHERE user_id = ? AND status = ? [1 1]
2017/06/27 01:42:36 [I] [SQL] SELECT `id`, `owner_id`, `lower_name`, `name`, `description`, `website`, `default_branch`, `num_watches`, `num_stars`, `num_forks`, `num_issues`, `num_closed_issues`, `num_pulls`, `num_closed_pulls`, `num_milestones`, `num_closed_milestones`, `is_private`, `is_bare`, `is_mirror`, `is_fork`, `fork_id`, `size`, `created_unix`, `updated_unix` FROM `repository` WHERE `owner_id`=? AND `lower_name`=? LIMIT 1 [1 foobar]
2017/06/27 01:42:36 [I] [SQL] SELECT `id`, `user_id`, `repo_id` FROM `watch` WHERE `user_id`=? AND `repo_id`=? LIMIT 1 [1 1]
2017/06/27 01:42:36 [I] [SQL] SELECT `id`, `uid`, `repo_id` FROM `star` WHERE `uid`=? AND `repo_id`=? LIMIT 1 [1 1]
2017/06/27 01:42:36 [I] [SQL] SELECT `id`, `repo_id`, `type`, `index`, `config`, `created_unix` FROM `repo_unit` WHERE repo_id = ? [1]
2017/06/27 01:42:36 [I] [SQL] SELECT `id`, `repo_id`, `index`, `poster_id`, `name`, `content`, `milestone_id`, `priority`, `assignee_id`, `is_closed`, `is_pull`, `num_comments`, `deadline_unix`, `created_unix`, `updated_unix` FROM `issue` WHERE `id` IN (?) [1]
2017/06/27 01:42:36 [I] [SQL] BEGIN TRANSACTION
2017/06/27 01:42:36 [I] [SQL] UPDATE `issue_user` SET is_assigned = ? WHERE issue_id = ? [false 1]
2017/06/27 01:42:36 [I] [SQL] UPDATE `issue` SET `repo_id` = ?, `index` = ?, `poster_id` = ?, `name` = ?, `content` = ?, `milestone_id` = ?, `priority` = ?, `assignee_id` = ?, `is_closed` = ?, `is_pull` = ?, `num_comments` = ?, `deadline_unix` = ?, `created_unix` = ?, `updated_unix` = ? WHERE `id`=? [1 1 1 Add bajskorv foobar 0 0 0 true true 0 0 1480927334 1498520556 1]
2017/06/27 01:42:36 [I] [SQL] COMMIT
2017/06/27 01:42:36 [I] [SQL] SELECT `id`, `owner_id`, `lower_name`, `name`, `description`, `website`, `default_branch`, `num_watches`, `num_stars`, `num_forks`, `num_issues`, `num_closed_issues`, `num_pulls`, `num_closed_pulls`, `num_milestones`, `num_closed_milestones`, `is_private`, `is_bare`, `is_mirror`, `is_fork`, `fork_id`, `size`, `created_unix`, `updated_unix` FROM `repository` WHERE `id`=? LIMIT 1 [1]
2017/06/27 01:42:36 [I] [SQL] INSERT INTO `comment` (`type`,`poster_id`,`issue_id`,`label_id`,`old_milestone_id`,`milestone_id`,`old_assignee_id`,`assignee_id`,`old_title`,`new_title`,`commit_id`,`line`,`content`,`created_unix`,`updated_unix`,`commit_sha`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [9 1 1 0 0 0 1 0 0 0 1498520556 1498520556 ]
2017/06/27 01:42:36 [I] [SQL] SELECT `id`, `lower_name`, `name`, `full_name`, `email`, `keep_email_private`, `passwd`, `login_type`, `login_source`, `login_name`, `type`, `location`, `website`, `rands`, `salt`, `created_unix`, `updated_unix`, `last_login_unix`, `last_repo_visibility`, `max_repo_creation`, `is_active`, `is_admin`, `allow_git_hook`, `allow_import_local`, `allow_create_organization`, `prohibit_login`, `avatar`, `avatar_email`, `use_custom_avatar`, `num_followers`, `num_following`, `num_stars`, `num_repos`, `description`, `num_teams`, `num_members`, `diff_view_style` FROM `user` WHERE `id`=? LIMIT 1 [1]
2017/06/27 01:42:36 [I] [SQL] SELECT `id`, `lower_name`, `name`, `full_name`, `email`, `keep_email_private`, `passwd`, `login_type`, `login_source`, `login_name`, `type`, `location`, `website`, `rands`, `salt`, `created_unix`, `updated_unix`, `last_login_unix`, `last_repo_visibility`, `max_repo_creation`, `is_active`, `is_admin`, `allow_git_hook`, `allow_import_local`, `allow_create_organization`, `prohibit_login`, `avatar`, `avatar_email`, `use_custom_avatar`, `num_followers`, `num_following`, `num_stars`, `num_repos`, `description`, `num_teams`, `num_members`, `diff_view_style` FROM `user` WHERE `id`=? LIMIT 1 [0]
[Macaron] PANIC: runtime error: invalid memory address or nil pointer dereference
/usr/lib/go/src/runtime/panic.go:489 (0x43314f)
gopanic: reflectcall(nil, unsafe.Pointer(d.fn), deferArgs(d), uint32(d.siz), uint32(d.siz))
/usr/lib/go/src/runtime/panic.go:63 (0x431ffe)
panicmem: panic(memoryError)
/usr/lib/go/src/runtime/signal_unix.go:290 (0x4487cf)
sigpanic: panicmem()
/home/bkc/sources/gopath/src/code.gitea.io/gitea/models/issue.go:780 (0xc436f9)
(*Issue).ChangeAssignee: issue.PullRequest.Issue = issue
/home/bkc/sources/gopath/src/code.gitea.io/gitea/routers/repo/issue.go:798 (0xd876ee)
UpdateIssueAssignee: if err := issue.ChangeAssignee(ctx.User, assigneeID); err != nil {
/usr/lib/go/src/runtime/asm_amd64.s:514 (0x4601f8)
call32: CALLFN(·call32, 32)
/usr/lib/go/src/reflect/value.go:434 (0x4c299f)
Value.call: call(frametype, fn, args, uint32(frametype.size), uint32(retOffset))
/usr/lib/go/src/reflect/value.go:302 (0x4c1f64)
Value.Call: return v.call("Call", in)
/home/bkc/sources/gopath/src/code.gitea.io/gitea/vendor/github.com/go-macaron/inject/inject.go:177 (0x85e1df)
(*injector).callInvoke: return reflect.ValueOf(f).Call(in), nil
/home/bkc/sources/gopath/src/code.gitea.io/gitea/vendor/github.com/go-macaron/inject/inject.go:137 (0x85dbaa)
(*injector).Invoke: return inj.callInvoke(f, t, t.NumIn())
/home/bkc/sources/gopath/src/code.gitea.io/gitea/vendor/gopkg.in/macaron.v1/context.go:113 (0x88aeb2)
(*Context).run: vals, err := c.Invoke(c.handler())
/home/bkc/sources/gopath/src/code.gitea.io/gitea/vendor/gopkg.in/macaron.v1/context.go:104 (0x88add6)
(*Context).Next: c.run()
/home/bkc/sources/gopath/src/code.gitea.io/gitea/vendor/github.com/go-macaron/session/session.go:186 (0x8e2510)
Sessioner.func1: ctx.Next()
/usr/lib/go/src/runtime/asm_amd64.s:514 (0x4601f8)
call32: CALLFN(·call32, 32)
/usr/lib/go/src/reflect/value.go:434 (0x4c299f)
Value.call: call(frametype, fn, args, uint32(frametype.size), uint32(retOffset))
/usr/lib/go/src/reflect/value.go:302 (0x4c1f64)
Value.Call: return v.call("Call", in)
/home/bkc/sources/gopath/src/code.gitea.io/gitea/vendor/github.com/go-macaron/inject/inject.go:177 (0x85e1df)
(*injector).callInvoke: return reflect.ValueOf(f).Call(in), nil
/home/bkc/sources/gopath/src/code.gitea.io/gitea/vendor/github.com/go-macaron/inject/inject.go:137 (0x85dbaa)
(*injector).Invoke: return inj.callInvoke(f, t, t.NumIn())
/home/bkc/sources/gopath/src/code.gitea.io/gitea/vendor/gopkg.in/macaron.v1/context.go:113 (0x88aeb2)
(*Context).run: vals, err := c.Invoke(c.handler())
/home/bkc/sources/gopath/src/code.gitea.io/gitea/vendor/gopkg.in/macaron.v1/context.go:104 (0x88add6)
(*Context).Next: c.run()
/home/bkc/sources/gopath/src/code.gitea.io/gitea/vendor/gopkg.in/macaron.v1/recovery.go:161 (0x89df3b)
Recovery.func1: c.Next()
/usr/lib/go/src/runtime/asm_amd64.s:514 (0x4601f8)
call32: CALLFN(·call32, 32)
/usr/lib/go/src/reflect/value.go:434 (0x4c299f)
Value.call: call(frametype, fn, args, uint32(frametype.size), uint32(retOffset))
/usr/lib/go/src/reflect/value.go:302 (0x4c1f64)
Value.Call: return v.call("Call", in)
/home/bkc/sources/gopath/src/code.gitea.io/gitea/vendor/github.com/go-macaron/inject/inject.go:177 (0x85e1df)
(*injector).callInvoke: return reflect.ValueOf(f).Call(in), nil
/home/bkc/sources/gopath/src/code.gitea.io/gitea/vendor/github.com/go-macaron/inject/inject.go:137 (0x85dbaa)
(*injector).Invoke: return inj.callInvoke(f, t, t.NumIn())
/home/bkc/sources/gopath/src/code.gitea.io/gitea/vendor/gopkg.in/macaron.v1/context.go:113 (0x88aeb2)
(*Context).run: vals, err := c.Invoke(c.handler())
/home/bkc/sources/gopath/src/code.gitea.io/gitea/vendor/gopkg.in/macaron.v1/context.go:104 (0x88add6)
(*Context).Next: c.run()
/home/bkc/sources/gopath/src/code.gitea.io/gitea/vendor/gopkg.in/macaron.v1/logger.go:43 (0x89d1f4)
Logger.func1: ctx.Next()
/usr/lib/go/src/runtime/asm_amd64.s:514 (0x4601f8)
call32: CALLFN(·call32, 32)
/usr/lib/go/src/reflect/value.go:434 (0x4c299f)
Value.call: call(frametype, fn, args, uint32(frametype.size), uint32(retOffset))
/usr/lib/go/src/reflect/value.go:302 (0x4c1f64)
Value.Call: return v.call("Call", in)
/home/bkc/sources/gopath/src/code.gitea.io/gitea/vendor/github.com/go-macaron/inject/inject.go:177 (0x85e1df)
(*injector).callInvoke: return reflect.ValueOf(f).Call(in), nil
/home/bkc/sources/gopath/src/code.gitea.io/gitea/vendor/github.com/go-macaron/inject/inject.go:137 (0x85dbaa)
(*injector).Invoke: return inj.callInvoke(f, t, t.NumIn())
/home/bkc/sources/gopath/src/code.gitea.io/gitea/vendor/gopkg.in/macaron.v1/context.go:113 (0x88aeb2)
(*Context).run: vals, err := c.Invoke(c.handler())
/home/bkc/sources/gopath/src/code.gitea.io/gitea/vendor/gopkg.in/macaron.v1/router.go:184 (0x89f209)
(*Router).Handle.func1: c.run()
/home/bkc/sources/gopath/src/code.gitea.io/gitea/vendor/gopkg.in/macaron.v1/router.go:288 (0x8972ed)
(*Router).ServeHTTP: h(rw, req, p)
/home/bkc/sources/gopath/src/code.gitea.io/gitea/vendor/gopkg.in/macaron.v1/macaron.go:177 (0x88f31c)
(*Macaron).ServeHTTP: m.Router.ServeHTTP(rw, req)
/home/bkc/sources/gopath/src/code.gitea.io/gitea/vendor/github.com/gorilla/context/context.go:141 (0xae7bab)
ClearHandler.func1: h.ServeHTTP(w, r)
/usr/lib/go/src/net/http/server.go:1942 (0x6db244)
HandlerFunc.ServeHTTP: f(w, r)
/usr/lib/go/src/net/http/server.go:2568 (0x6ddb02)
serverHandler.ServeHTTP: handler.ServeHTTP(rw, req)
/usr/lib/go/src/net/http/server.go:1825 (0x6d9db2)
(*conn).serve: serverHandler{c.server}.ServeHTTP(w, w.req)
/usr/lib/go/src/runtime/asm_amd64.s:2197 (0x4629b1)
goexit: BYTE $0x90 // NOP
[Macaron] 2017-06-27 01:42:36: Completed /toor/foobar/issues/assignee 500 Internal Server Error in 38.17521ms
[Macaron] 2017-06-27 01:42:38: Started POST /toor/foobar/issues/assignee for [::1]
2017/06/27 01:42:38 [I] [SQL] SELECT `id`, `lower_name`, `name`, `full_name`, `email`, `keep_email_private`, `passwd`, `login_type`, `login_source`, `login_name`, `type`, `location`, `website`, `rands`, `salt`, `created_unix`, `updated_unix`, `last_login_unix`, `last_repo_visibility`, `max_repo_creation`, `is_active`, `is_admin`, `allow_git_hook`, `allow_import_local`, `allow_create_organization`, `prohibit_login`, `avatar`, `avatar_email`, `use_custom_avatar`, `num_followers`, `num_following`, `num_stars`, `num_repos`, `description`, `num_teams`, `num_members`, `diff_view_style` FROM `user` WHERE `id`=? LIMIT 1 [1]
2017/06/27 01:42:38 [D] Session ID: 57c8e47aaa09b953
2017/06/27 01:42:38 [D] CSRF Token: b5D2aLpffnQFxPe4KAhKfv0VZzA6MTQ5ODUxNzc5MTk2NTMyMzcwMw==
2017/06/27 01:42:38 [I] [SQL] SELECT count(*) FROM `notification` WHERE user_id = ? AND status = ? [1 1]
2017/06/27 01:42:38 [I] [SQL] SELECT `id`, `owner_id`, `lower_name`, `name`, `description`, `website`, `default_branch`, `num_watches`, `num_stars`, `num_forks`, `num_issues`, `num_closed_issues`, `num_pulls`, `num_closed_pulls`, `num_milestones`, `num_closed_milestones`, `is_private`, `is_bare`, `is_mirror`, `is_fork`, `fork_id`, `size`, `created_unix`, `updated_unix` FROM `repository` WHERE `owner_id`=? AND `lower_name`=? LIMIT 1 [1 foobar]
2017/06/27 01:42:38 [I] [SQL] SELECT `id`, `user_id`, `repo_id` FROM `watch` WHERE `user_id`=? AND `repo_id`=? LIMIT 1 [1 1]
2017/06/27 01:42:38 [I] [SQL] SELECT `id`, `uid`, `repo_id` FROM `star` WHERE `uid`=? AND `repo_id`=? LIMIT 1 [1 1]
2017/06/27 01:42:38 [I] [SQL] SELECT `id`, `repo_id`, `type`, `index`, `config`, `created_unix` FROM `repo_unit` WHERE repo_id = ? [1]
2017/06/27 01:42:38 [I] [SQL] SELECT `id`, `repo_id`, `index`, `poster_id`, `name`, `content`, `milestone_id`, `priority`, `assignee_id`, `is_closed`, `is_pull`, `num_comments`, `deadline_unix`, `created_unix`, `updated_unix` FROM `issue` WHERE `id` IN (?) [1]
[Macaron] 2017-06-27 01:42:38: Completed /toor/foobar/issues/assignee 200 OK in 11.926821ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment