{"action":"created","issue":{"url":"https://api.github.com/repos/gogits/gogs/issues/2349","labels_url":"https://api.github.com/repos/gogits/gogs/issues/2349/labels{/name}","comments_url":"https://api.github.com/repos/gogits/gogs/issues/2349/comments","events_url":"https://api.github.com/repos/gogits/gogs/issues/2349/events","html_url":"https://github.com/gogits/gogs/issues/2349","id":125189569,"number":2349,"title":"PANIC: interface conversion: interface is []uint8, not int64","user":{"login":"Ingramz","id":1017132,"avatar_url":"https://avatars.githubusercontent.com/u/1017132?v=3","gravatar_id":"","url":"https://api.github.com/users/Ingramz","html_url":"https://github.com/Ingramz","followers_url":"https://api.github.com/users/Ingramz/followers","following_url":"https://api.github.com/users/Ingramz/following{/other_user}","gists_url":"https://api.github.com/users/Ingramz/gists{/gist_id}","starred_url":"https://api.github.com/users/Ingramz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ingramz/subscriptions","organizations_url":"https://api.github.com/users/Ingramz/orgs","repos_url":"https://api.github.com/users/Ingramz/repos","events_url":"https://api.github.com/users/Ingramz/events{/privacy}","received_events_url":"https://api.github.com/users/Ingramz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gogits/gogs/labels/feedback%20needed","name":"feedback needed","color":"fbca04"},{"url":"https://api.github.com/repos/gogits/gogs/labels/reproduce%20needed","name":"reproduce needed","color":"bbca04"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/gogits/gogs/milestones/9","html_url":"https://github.com/gogits/gogs/milestones/0.9.0","labels_url":"https://api.github.com/repos/gogits/gogs/milestones/9/labels","id":1226114,"number":9,"title":"0.9.0","description":"","creator":{"login":"Unknwon","id":2946214,"avatar_url":"https://avatars.githubusercontent.com/u/2946214?v=3","gravatar_id":"","url":"https://api.github.com/users/Unknwon","html_url":"https://github.com/Unknwon","followers_url":"https://api.github.com/users/Unknwon/followers","following_url":"https://api.github.com/users/Unknwon/following{/other_user}","gists_url":"https://api.github.com/users/Unknwon/gists{/gist_id}","starred_url":"https://api.github.com/users/Unknwon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Unknwon/subscriptions","organizations_url":"https://api.github.com/users/Unknwon/orgs","repos_url":"https://api.github.com/users/Unknwon/repos","events_url":"https://api.github.com/users/Unknwon/events{/privacy}","received_events_url":"https://api.github.com/users/Unknwon/received_events","type":"User","site_admin":false},"open_issues":144,"closed_issues":64,"state":"open","created_at":"2015-07-26T11:28:23Z","updated_at":"2016-01-07T08:24:01Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-01-06T14:47:13Z","updated_at":"2016-01-07T08:54:11Z","closed_at":null,"body":"After adding PAM as an authentication method, I am immediately greeted with a blank page and following panic.\r\n\r\nInstalled from source with pam tag using [this guide](https://gogs.io/docs/installation/install_from_source). Using Debian 8 if that matters.\r\n\r\n```\r\n[Macaron] PANIC: interface conversion: interface is []uint8, not int64\r\n/usr/local/go/src/runtime/panic.go:423 (0x42ba09)\r\n/usr/local/go/src/runtime/iface.go:221 (0x40d5f0)\r\n/home/git/go/src/github.com/gogits/gogs/models/login.go:111 (0x548dd2)\r\n        (*LoginSource).BeforeSet: switch LoginType((*val).(int64)) {\r\n/home/git/go/src/github.com/go-xorm/xorm/session.go:1656 (0x6e8da5)\r\n        (*Session)._row2Bean: b.BeforeSet(key, Cell(scanResults[ii].(*interface{})))\r\n/home/git/go/src/github.com/go-xorm/xorm/session.go:1625 (0x6e8783)\r\n        (*Session).rows2Beans: err := session._row2Bean(rows, fields, fieldsCount, bean, &dataStruct, table)\r\n/home/git/go/src/github.com/go-xorm/xorm/session.go:1365 (0x6e4617)\r\n        (*Session).Find: return session.rows2Beans(rawRows, fields, fieldsCount, table, newElemFunc, sliceValueSetFunc)\r\n/home/git/go/src/github.com/go-xorm/xorm/engine.go:1347 (0x6b1389)\r\n        (*Engine).Find: return session.Find(beans, condiBeans...)\r\n/home/git/go/src/github.com/gogits/gogs/models/login.go:191 (0x549768)\r\n        LoginSources: return auths, x.Find(&auths)\r\n/home/git/go/src/github.com/gogits/gogs/routers/admin/auths.go:32 (0x7f69fc)\r\n        Authentications: ctx.Data[\"Sources\"], err = models.LoginSources()\r\n/usr/local/go/src/runtime/asm_amd64.s:437 (0x45cbce)\r\n/usr/local/go/src/reflect/value.go:432 (0x87fe4a)\r\n/usr/local/go/src/reflect/value.go:300 (0x87eb11)\r\n/home/git/go/src/github.com/go-macaron/inject/inject.go:117 (0xb28a42)\r\n        (*injector).Invoke: return reflect.ValueOf(f).Call(in), nil\r\n/home/git/go/src/gopkg.in/macaron.v1/context.go:113 (0x74b8d7)\r\n        (*Context).run: vals, err := c.Invoke(c.handler())\r\n/home/git/go/src/gopkg.in/macaron.v1/context.go:104 (0x74b7bc)\r\n        (*Context).Next: c.run()\r\n/home/git/go/src/github.com/go-macaron/session/session.go:186 (0x698f84)\r\n        Sessioner.func1: ctx.Next()\r\n/usr/local/go/src/runtime/asm_amd64.s:437 (0x45cbce)\r\n/usr/local/go/src/reflect/value.go:432 (0x87fe4a)\r\n/usr/local/go/src/reflect/value.go:300 (0x87eb11)\r\n/home/git/go/src/github.com/go-macaron/inject/inject.go:117 (0xb28a42)\r\n        (*injector).Invoke: return reflect.ValueOf(f).Call(in), nil\r\n/home/git/go/src/gopkg.in/macaron.v1/context.go:113 (0x74b8d7)\r\n        (*Context).run: vals, err := c.Invoke(c.handler())\r\n/home/git/go/src/gopkg.in/macaron.v1/context.go:104 (0x74b7bc)\r\n        (*Context).Next: c.run()\r\n/home/git/go/src/gopkg.in/macaron.v1/recovery.go:161 (0x760ca2)\r\n        Recovery.func1: c.Next()\r\n/usr/local/go/src/runtime/asm_amd64.s:437 (0x45cbce)\r\n/usr/local/go/src/reflect/value.go:432 (0x87fe4a)\r\n/usr/local/go/src/reflect/value.go:300 (0x87eb11)\r\n/home/git/go/src/github.com/go-macaron/inject/inject.go:117 (0xb28a42)\r\n        (*injector).Invoke: return reflect.ValueOf(f).Call(in), nil\r\n/home/git/go/src/gopkg.in/macaron.v1/context.go:113 (0x74b8d7)\r\n        (*Context).run: vals, err := c.Invoke(c.handler())\r\n/home/git/go/src/gopkg.in/macaron.v1/context.go:104 (0x74b7bc)\r\n        (*Context).Next: c.run()\r\n/home/git/go/src/gopkg.in/macaron.v1/logger.go:40 (0x75f8ee)\r\n        Logger.func1: ctx.Next()\r\n/usr/local/go/src/runtime/asm_amd64.s:437 (0x45cbce)\r\n/usr/local/go/src/reflect/value.go:432 (0x87fe4a)\r\n/usr/local/go/src/reflect/value.go:300 (0x87eb11)\r\n/home/git/go/src/github.com/go-macaron/inject/inject.go:117 (0xb28a42)\r\n        (*injector).Invoke: return reflect.ValueOf(f).Call(in), nil\r\n/home/git/go/src/gopkg.in/macaron.v1/context.go:113 (0x74b8d7)\r\n        (*Context).run: vals, err := c.Invoke(c.handler())\r\n/home/git/go/src/gopkg.in/macaron.v1/router.go:184 (0x762424)\r\n        (*Router).Handle.func1: c.run()\r\n/home/git/go/src/gopkg.in/macaron.v1/router.go:286 (0x758d9d)\r\n        (*Router).ServeHTTP: h(rw, req, p)\r\n/home/git/go/src/gopkg.in/macaron.v1/macaron.go:175 (0x750cda)\r\n        (*Macaron).ServeHTTP: m.Router.ServeHTTP(rw, req)\r\n/usr/local/go/src/net/http/server.go:1862 (0x65065e)\r\n/usr/local/go/src/net/http/server.go:1361 (0x64de4e)\r\n/usr/local/go/src/runtime/asm_amd64.s:1721 (0x45ef41)\r\n[Macaron] Completed /admin/auths 500 Internal Server Error in 7.649728ms\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/gogits/gogs/issues/comments/169600686","html_url":"https://github.com/gogits/gogs/issues/2349#issuecomment-169600686","issue_url":"https://api.github.com/repos/gogits/gogs/issues/2349","id":169600686,"user":{"login":"Ingramz","id":1017132,"avatar_url":"https://avatars.githubusercontent.com/u/1017132?v=3","gravatar_id":"","url":"https://api.github.com/users/Ingramz","html_url":"https://github.com/Ingramz","followers_url":"https://api.github.com/users/Ingramz/followers","following_url":"https://api.github.com/users/Ingramz/following{/other_user}","gists_url":"https://api.github.com/users/Ingramz/gists{/gist_id}","starred_url":"https://api.github.com/users/Ingramz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ingramz/subscriptions","organizations_url":"https://api.github.com/users/Ingramz/orgs","repos_url":"https://api.github.com/users/Ingramz/repos","events_url":"https://api.github.com/users/Ingramz/events{/privacy}","received_events_url":"https://api.github.com/users/Ingramz/received_events","type":"User","site_admin":false},"created_at":"2016-01-07T08:54:11Z","updated_at":"2016-01-07T08:54:11Z","body":"@xiegeo mysql 5.5.46"}}