项目

一般

简介

redmine升级过程中出现问题

C MC4 个月 之前添加

我计划将3.5版本的redmine进行升级,在新的服务器上安装了5.0版本,在数据迁移过程中,将数据库备份还原,将file目录下文件也拷贝到了新版本服务器,但是登录时在日志中生成以下报错信息
F, [2023-12-16T16:39:20.962264 #6784] FATAL – : [b212f0ad-c68c-47b7-85a3-7171e5beb6f1]
[b212f0ad-c68c-47b7-85a3-7171e5beb6f1] NameError (undefined local variable or method `twofa_scheme’ for #<User:0x000001bdcdf135b0>
Did you mean? twofa_active?):
[b212f0ad-c68c-47b7-85a3-7171e5beb6f1]
[b212f0ad-c68c-47b7-85a3-7171e5beb6f1] app/models/user.rb:383:in `twofa_active?'
[b212f0ad-c68c-47b7-85a3-7171e5beb6f1] app/controllers/account_controller.rb:309:in `password_authentication’
[b212f0ad-c68c-47b7-85a3-7171e5beb6f1] app/controllers/account_controller.rb:296:in `authenticate_user’
[b212f0ad-c68c-47b7-85a3-7171e5beb6f1] app/controllers/account_controller.rb:33:in `login’
[b212f0ad-c68c-47b7-85a3-7171e5beb6f1] lib/redmine/sudo_mode.rb:61:in `sudo_mode’


回复 (2)

RE: redmine升级过程中出现问题 - 由 redmineplugins.cn Admin4 个月 之前添加

看样子升级并没有完全成功。参考升级方法 ,要确保升级后 bundle exec rake db:migrate 没有任何错误。另外,建议升级过程保留plugins目录为空。

RE: redmine升级过程中出现问题 - 由 C MC4 个月 之前添加

非常感谢,因为5.0的bitnami安装使用了MariaDB,且某些表中字段需要添加,执行bundle exec rake db:migrate后成功补全了缺失字段,现在可以登录访问了

    (1-2/2)
    点赞0
    点赞0点赞0
    赞赏赞赏