migration error #1149

Closed
opened 2025-11-02 03:50:06 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @gsantner on GitHub (Oct 14, 2017).

  • Gitea version (or commit ref): e89bb7ef6a
  • Git version: 2.11
  • Operating system: debian
  • 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:

Description

Cannot start gitea because of migration error...

2017/10/14 18:05:48 [I] Log Mode: File(Info)
2017/10/14 18:05:48 [I] XORM Log Mode: File(Info)
2017/10/14 18:05:48 [I] Cache Service Enabled
2017/10/14 18:05:48 [I] Session Service Enabled
2017/10/14 18:05:48 [I] Migration: remove organization watch repositories
2017/10/14 18:05:48 [...itea/routers/init.go:55 GlobalInit()] [E] Failed to initialize ORM engine: migrate: do migrate: Error 1093: Table 'watch' is specified twice, both as a target for 'DELETE' and as a separate source for data
Originally created by @gsantner on GitHub (Oct 14, 2017). - Gitea version (or commit ref): e89bb7ef6a6848615a56f8c568ae335de0c2e9e7 - Git version: 2.11 - Operating system: debian - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: ## Description Cannot start gitea because of migration error... ``` 2017/10/14 18:05:48 [I] Log Mode: File(Info) 2017/10/14 18:05:48 [I] XORM Log Mode: File(Info) 2017/10/14 18:05:48 [I] Cache Service Enabled 2017/10/14 18:05:48 [I] Session Service Enabled 2017/10/14 18:05:48 [I] Migration: remove organization watch repositories 2017/10/14 18:05:48 [...itea/routers/init.go:55 GlobalInit()] [E] Failed to initialize ORM engine: migrate: do migrate: Error 1093: Table 'watch' is specified twice, both as a target for 'DELETE' and as a separate source for data ```
GiteaMirror added the issue/criticaltype/bug labels 2025-11-02 03:50:06 -06:00
Author
Owner

@gsantner commented on GitHub (Oct 14, 2017):

@lunny https://github.com/go-gitea/gitea/commit/514006a2e5a33074fba5ac2deab9ab91cf5713a2 might not have fixed stuff, but broken. going back to dff26e25ca makes gitea run again

@gsantner commented on GitHub (Oct 14, 2017): @lunny <https://github.com/go-gitea/gitea/commit/514006a2e5a33074fba5ac2deab9ab91cf5713a2> might not have fixed stuff, but broken. going back to dff26e25ca4e088ac709bc4b11eb84cdb9603d34 makes gitea run again
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1149