Waktu upgrade gitea muncul error

2017/03/15 15:52:15 [I] Session Service Enabled
2017/03/15 15:52:15 [I] Mail Service Enabled
2017/03/15 15:52:15 [I] Notify Mail Service Enabled
2017/03/15 15:52:15 [I] Migration: create repo unit table and add units for all repos
2017/03/15 15:52:15 […itea/routers/init.go:54 GlobalInit()] [E] Failed to initialize ORM engine: migrate: do migrate: CreateIndexes RepoUnit: index IDX_repo_unit_S already exists


2017/03/15 15:57:15 [I] Notify Mail Service Enabled
2017/03/15 15:57:15 [I] Migration: create repo unit table and add units for all repos
2017/03/15 15:57:15 […itea/routers/init.go:54 GlobalInit()] [E] Failed to initialize ORM engine: migrate: do migrate: CreateIndexes RepoUnit: index IDX_repo_unit_created_unix already exists

Solusi

Buka database sqlite anda, sesuaikan dengan path db anda

sqlite3 data/gitea.db

DROP kedua index tersebut.

DROP INDEX IDX_repo_unit_S;
DROP INDEX IDX_repo_unit_created_unix;

jalankan ulang gitea, masalah tersebut sudah teratasi

./gitea web

Leave a comment

Your email address will not be published. Required fields are marked *