Closed

Description
- Gitea version (or commit ref): 594f591
- Git version: 2.20.1
- Operating system: macOS
- 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:
Start migrating repository "repo"
[Macaron] 2019-02-26 10:44:13: Started POST /repo/migrate for [::1]
... (migrating other repositories)
[Macaron] 2019-02-26 10:49:40: Started POST /repo/migrate for [::1]
...
2019/02/26 10:49:40 [I] [SQL] ROLL BACK
2019/02/26 10:49:40 [...routers/repo/repo.go:146 handleCreateError()] [E] MigratePost: repository already exists [uname: Mirror, name: repo]
2019/02/26 10:49:40 [D] Template: status/500
...
2019/02/26 10:50:10 [I] [SQL] COMMIT
2019/02/26 10:50:10 [T] Repository migrated [1285]: Mirror/repo
[Macaron] 2019-02-26 10:50:10: Completed POST /repo/migrate 302 Found in 5m56.741603459s
Description
Sometimes a strange situation happened to me when I migrating a repository
The post request of migrating will be sent twice and caused the error “repository already exists”.
Does anyone have any ideas?
http://geek.starbean.net/?p=393
This article could be help