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

routers/repo/repo.go:315:MigratePost() [E] MigratePost: pq: division by zero #7649

Closed
2 of 7 tasks
Alir3z4 opened this issue Jul 28, 2019 · 7 comments · Fixed by #7725
Closed
2 of 7 tasks

routers/repo/repo.go:315:MigratePost() [E] MigratePost: pq: division by zero #7649

Alir3z4 opened this issue Jul 28, 2019 · 7 comments · Fixed by #7725
Labels
Milestone

Comments

@Alir3z4
Copy link

Alir3z4 commented Jul 28, 2019

  • 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
...

Screenshots

image

@Alir3z4
Copy link
Author

Alir3z4 commented Jul 28, 2019

I've done some testing.

The failure only happens when "Milestones" are checked to be imported, but importing with rest of the entities is ok.

@lunny lunny added the type/bug label Jul 29, 2019
@lunny lunny added this to the 1.9.0 milestone Jul 29, 2019
@lunny
Copy link
Member

lunny commented Jul 29, 2019

@Alir3z4 could you tell me the repository URL on github?

@Alir3z4
Copy link
Author

Alir3z4 commented Jul 29, 2019

@lunny here's the repo URL https://github.com/SavandBros/gonevis-dash

@lunny
Copy link
Member

lunny commented Jul 29, 2019

I have tested locally with mysql, but it works. I will test with postgres tomorrow.

image

@lunny lunny modified the milestones: 1.9.0, 1.9.1 Jul 30, 2019
@Alir3z4
Copy link
Author

Alir3z4 commented Aug 1, 2019

@lunny were you able to reproduce on postgresql ?

@lunny
Copy link
Member

lunny commented Aug 3, 2019

@Alir3z4 I can confirm this with postgres.

@Alir3z4
Copy link
Author

Alir3z4 commented Aug 3, 2019

Thanks for confirming.

@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants