gitea: Error on startup 1.5

  • Gitea version (or commit ref): 1.5
  • Git version: 2.17.1
  • Operating system: Windows Server 2008 R2 Standard
  • 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

Guys, a few minutes ago a tried to update 1.4.3 to 1.5 and the windows service doesn’t start up. log error:

2018/07/04 07:56:23 [I] Log Mode: File(Trace) 2018/07/04 07:56:23 [I] XORM Log Mode: File(Trace) 2018/07/04 07:56:23 [I] Cache Service Enabled 2018/07/04 07:56:23 [I] Session Service Enabled 2018/07/04 07:56:23 [I] Migration: add multiple assignees 2018/07/04 07:56:23 […itea/routers/init.go:60 GlobalInit()] [E] Failed to initialize ORM engine: migrate: do migrate: Drop table issue columns [assignee_id]: mssql: ALTER TABLE DROP COLUMN assignee_id failed because one or more objects access this column. …

Screenshots

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 30 (9 by maintainers)

Most upvoted comments

If PR #4459 get’s accepted and you still get the following error:

2018/07/17 20:37:42 [I] Migration: move team units to team_unit table 2018/07/17 20:37:42 […itea/routers/init.go:60 GlobalInit()] [E] Failed to initialize ORM engine: migrate: do migrate: Insert team units: Error 1062: Duplicate entry ‘1-1’ for key ‘UQE_team_unit_s

you may simply “drop table team_unit” and restart gitea.