[已解决]gitea docker版升级后运行访问不了了,报数据库错误。

2019/03/15 08:21:37 [I] Backing off for 3 seconds
2019/03/15 08:21:40 [I] ORM engine initialization attempt #6/10...
2019/03/15 08:21:40 [I] Migration: update U2F counter type
2019/03/15 08:21:40 [I] Backing off for 3 seconds
2019/03/15 08:21:43 [I] ORM engine initialization attempt #7/10...
2019/03/15 08:21:43 [I] Migration: update U2F counter type
2019/03/15 08:21:43 [I] Backing off for 3 seconds
2019/03/15 08:21:46 [I] ORM engine initialization attempt #8/10...
2019/03/15 08:21:46 [I] Migration: update U2F counter type
2019/03/15 08:21:46 [I] Backing off for 3 seconds
2019/03/15 08:21:49 [I] ORM engine initialization attempt #9/10...
2019/03/15 08:21:49 [I] Migration: update U2F counter type
2019/03/15 08:21:49 [I] Backing off for 3 seconds
2019/03/15 08:21:52 [I] ORM engine initialization attempt #10/10...
2019/03/15 08:21:52 [I] Migration: update U2F counter type
2019/03/15 08:21:52 [...itea/routers/init.go:82 GlobalInit()] [E] ORM engine initialization failed: migrate: do migrate: Error changing u2f_registration counter column type: Error 1146: Table 'gitea.u2f_registration' doesn't exist
2019/03/15 08:21:52 [I] Log Mode: File(Info)
2019/03/15 08:21:52 [I] XORM Log Mode: File(Info)
2019/03/15 08:21:52 [I] Cache Service Enabled
2019/03/15 08:21:52 [I] Session Service Enabled
2019/03/15 08:21:52 [I] Mail Service Enabled
2019/03/15 08:21:52 [I] Beginning ORM engine initialization.
2019/03/15 08:21:52 [I] ORM engine initialization attempt #1/10...
2019/03/15 08:21:52 [I] Migration: update U2F counter type
2019/03/15 08:21:52 [I] Backing off for 3 seconds
2019/03/15 08:21:55 [I] ORM engine initialization attempt #2/10...

我知道是表不存在,但是我去官方的Git仓库找了一圈也没找到数据库相关的sql。 我是快一年没升级了,今天把容器删了,重新pull了最新的镜像来运行的,后面发现报错,访问不了。

已解决

自己在本地安装了个最新的,对比了下数据库,表是有,不知道怎么回事,名字不一样。 不知道怎么被错误改成了u2_f_registration

已邀请:

要回复问题请先登录注册