Closed
Description
- Gitea version 1.9.0+rc2-16-gd789170e3 built with GNU Make 4.1, go1.12.7 : bindata, sqlite, sqlite_unlock_notify
- Git version: 2.7.4
- Operating system: Ubuntu 16.04 LTS
- 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:
2019/07/28 16:21:20 ...-xorm/xorm/engine.go:329:Ping() [I] PING DATABASE postgres
2019/07/28 16:21:20 models/models.go:305:NewEngine() [W] Table user Column max_repo_creation db default is '-1'::integer, struct default is -1
2019/07/28 16:21:20 models/models.go:305:NewEngine() [W] Table user Column diff_view_style db default is '''::character varying', struct default is ''
2019/07/28 16:21:20 models/models.go:305:NewEngine() [W] Table user Column theme db default is '''::character varying', struct default is ''
2019/07/28 16:21:20 models/models.go:305:NewEngine() [W] Table gpg_key column key_id db type is VARCHAR(16), struct type is CHAR(16)
2019/07/28 16:21:20 models/models.go:305:NewEngine() [W] Table gpg_key column primary_key_id db type is VARCHAR(16), struct type is CHAR(16)
2019/07/28 16:21:20 models/models.go:305:NewEngine() [W] Table gpg_key_import column key_id db type is VARCHAR(16), struct type is CHAR(16)
2019/07/28 16:21:20 models/models.go:305:NewEngine() [W] Table commit_status column context_hash db type is VARCHAR(40), struct type is CHAR(40)
2019/07/28 16:21:20 routers/init.go:84:GlobalInit() [I] ORM engine initialization successful!
2019/07/28 16:21:21 routers/init.go:106:GlobalInit() [I] SQLite3 Supported
2019/07/28 16:21:21 routers/init.go:37:checkRunMode() [I] Run Mode: Production
2019/07/28 16:21:21 cmd/web.go:151:runWeb() [I] Listen: http://0.0.0.0:3000
2019/07/28 16:21:21 cmd/web.go:154:runWeb() [I] LFS server enabled
2019/07/28 16:21:21 ...ce/gracehttp/http.go:142:Serve() [I] Serving [::]:3000 with pid 19160
2019/07/28 16:22:00 routers/repo/repo.go:315:MigratePost() [E] MigratePost: pq: division by zero
Description
I'm trying to import a github repo with all the issues, pull requests etc.
After hitting migrate button, it shows 500 page.
The last error is routers/repo/repo.go:315:MigratePost() [E] MigratePost: pq: division by zero
...