Canvas lms bundle exec rails db:initial_setup 错误

Canvas lms bundle exec rails db:initial_setup error

提问人:athalt1337 提问时间:7/31/2023 更新时间:7/31/2023 访问量:69

问:

我正在尝试在 Debian 上安装 canvas lms,但在名为“数据库填充”的步骤中(这是一个教程:(https://github.com/instructure/canvas-lms/wiki/Quick-Start)当我使用命令时,出现如下错误:bundle exec rails db:initial_setup

/var/lib/gems/3.1.0/gems/bundler-2.3.26/lib/bundler/runtime.rb:308:in `check_for_activated_spec!': You have already activated digest 3.1.0, but your Gemfile requires digest 3.1.1. Since digest is a default gem, you can either remove your dependency on it or try updating to a newer version of bundler that supports digest as a default gem. (Gem::LoadError)
        from /var/lib/gems/3.1.0/gems/bundler-2.3.26/lib/bundler/runtime.rb:25:in `block in setup'
        from /var/lib/gems/3.1.0/gems/bundler-2.3.26/lib/bundler/spec_set.rb:155:in `each'
        from /var/lib/gems/3.1.0/gems/bundler-2.3.26/lib/bundler/spec_set.rb:155:in `each'
        from /var/lib/gems/3.1.0/gems/bundler-2.3.26/lib/bundler/runtime.rb:24:in `map'
        from /var/lib/gems/3.1.0/gems/bundler-2.3.26/lib/bundler/runtime.rb:24:in `setup'
        from /var/lib/gems/3.1.0/gems/bundler-2.3.26/lib/bundler.rb:161:in `setup'
        from /var/lib/gems/3.1.0/gems/bundler-2.3.26/lib/bundler/setup.rb:10:in `block in <top (required)>'
        from /var/lib/gems/3.1.0/gems/bundler-2.3.26/lib/bundler/ui/shell.rb:136:in `with_level'
        from /var/lib/gems/3.1.0/gems/bundler-2.3.26/lib/bundler/ui/shell.rb:88:in `silence'
        from /var/lib/gems/3.1.0/gems/bundler-2.3.26/lib/bundler/setup.rb:10:in `<top (required)>'
        from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in `require'

从这个输出中,我了解到我应该有 3.1.1 版,但我是 3.1.0 在本教程中,版本与我的版本相同(3.1.0)。有人有这个问题吗?我正在尝试解决它几天,但没有任何结果......

我试过使用它: bundle clean --force 删除配置/dynamic_settings.yml文件

Ruby-on-Rails Linux 数据库 RubyGems Canvas-LMS

评论

1赞 smathy 8/1/2023
您是否尝试过更新捆绑器,正如错误所暗示的那样?
0赞 athalt1337 8/1/2023
是的,但是没有什么要更新的,因为我在控制台中得到一个输出“更新已安装的宝石,没有什么可更新的”

答: 暂无答案