Ruby 从 2.7.7 升级到 3.0.0 会中断活动管理员和设计

Ruby Upgrade from 2.7.7 to 3.0.0 Breaks Active Admin and Devise

提问人:user3096851 提问时间:10/16/2023 更新时间:10/16/2023 访问量:29

问:

我认为这与我用于 memcache (dalli) 的 gem 有关,但关于此的搜索结果很少。

Rails 7.0.4 版本 红宝石 3.0.0 达利 2.7.6 设计 4.8.1

我的站点可以正常工作(dalli 用于用户会话),但当我尝试登录时,活动管理员会抛出以下错误:

ArgumentError (wrong number of arguments (given 2, expected 1)):
  
activesupport (7.0.4) lib/active_support/cache/strategy/local_cache.rb:147:in `delete_entry'
dalli (2.7.10) lib/active_support/cache/dalli_store.rb:167:in `block in delete'
dalli (2.7.10) lib/active_support/cache/dalli_store.rb:389:in `block in instrument_with_log'
dalli (2.7.10) lib/active_support/cache/dalli_store.rb:398:in `block in instrument'
activesupport (7.0.4) lib/active_support/notifications.rb:208:in `instrument'
dalli (2.7.10) lib/active_support/cache/dalli_store.rb:397:in `instrument'
dalli (2.7.10) lib/active_support/cache/dalli_store.rb:389:in `instrument_with_log'
dalli (2.7.10) lib/active_support/cache/dalli_store.rb:166:in `delete'
actionpack (7.0.4) lib/action_dispatch/middleware/session/cache_store.rb:43:in `delete_session'
rack (2.2.8) lib/rack/session/abstract/id.rb:378:in `commit_session'
rack (2.2.8) lib/rack/session/abstract/id.rb:268:in `context'
rack (2.2.8) lib/rack/session/abstract/id.rb:260:in `call'
actionpack (7.0.4) lib/action_dispatch/middleware/cookies.rb:696:in `call'
activerecord (7.0.4) lib/active_record/migration.rb:603:in `call'
actionpack (7.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'
activesupport (7.0.4) lib/active_support/callbacks.rb:99:in `run_callbacks'
actionpack (7.0.4) lib/action_dispatch/middleware/callbacks.rb:26:in `call'
actionpack (7.0.4) lib/action_dispatch/middleware/executor.rb:14:in `call'
actionpack (7.0.4) lib/action_dispatch/middleware/actionable_exceptions.rb:17:in `call'
actionpack (7.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:28:in `call'
web-console (4.2.1) lib/web_console/middleware.rb:132:in `call_app'
web-console (4.2.1) lib/web_console/middleware.rb:28:in `block in call'
web-console (4.2.1) lib/web_console/middleware.rb:17:in `catch'
web-console (4.2.1) lib/web_console/middleware.rb:17:in `call'
actionpack (7.0.4) lib/action_dispatch/middleware/show_exceptions.rb:26:in `call'
railties (7.0.4) lib/rails/rack/logger.rb:40:in `call_app'
railties (7.0.4) lib/rails/rack/logger.rb:25:in `block in call'
activesupport (7.0.4) lib/active_support/tagged_logging.rb:99:in `block in tagged'
activesupport (7.0.4) lib/active_support/tagged_logging.rb:37:in `tagged'
activesupport (7.0.4) lib/active_support/tagged_logging.rb:99:in `tagged'
railties (7.0.4) lib/rails/rack/logger.rb:25:in `call'
actionpack (7.0.4) lib/action_dispatch/middleware/remote_ip.rb:93:in `call'
actionpack (7.0.4) lib/action_dispatch/middleware/request_id.rb:26:in `call'
rack (2.2.8) lib/rack/method_override.rb:24:in `call'
rack (2.2.8) lib/rack/runtime.rb:22:in `call'
activesupport (7.0.4) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
actionpack (7.0.4) lib/action_dispatch/middleware/executor.rb:14:in `call'
rack (2.2.8) lib/rack/deflater.rb:44:in `call'
actionpack (7.0.4) lib/action_dispatch/middleware/static.rb:23:in `call'
rack (2.2.8) lib/rack/sendfile.rb:110:in `call'
actionpack (7.0.4) lib/action_dispatch/middleware/host_authorization.rb:137:in `call'
railties (7.0.4) lib/rails/engine.rb:530:in `call'
puma (5.6.7) lib/puma/configuration.rb:252:in `call'
puma (5.6.7) lib/puma/request.rb:77:in `block in handle_request'
puma (5.6.7) lib/puma/thread_pool.rb:340:in `with_force_shutdown'
puma (5.6.7) lib/puma/request.rb:76:in `handle_request'
puma (5.6.7) lib/puma/server.rb:443:in `process_client'
puma (5.6.7) lib/puma/thread_pool.rb:147:in `block in spawn_thread'

有没有人知道问题可能是什么?

Ruby-on-Rails 设计 ActiveAdmin Dalli

评论

0赞 max 10/17/2023
ruby-lang.org/en/news/2019/12/12/......

答: 暂无答案