staytus@ip-172-31-105-166:~/staytus$ sudo -u staytus bundle exec rake staytus:install /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:29: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2. /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:118: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2. /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:118: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2. /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:29: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2. /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:118: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2. /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:118: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2. /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:35: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2. /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:35: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2. /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:44: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2. /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:118: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2. /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:35: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2. /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:44: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2. /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:35: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2. => You haven't configured an SMTP server. Mail will be sent using sendmail. rake aborted! NoMethodError: undefined methodarity' for {:polymorphic=>true, :optional=>true}:Hash
/opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/activerecord-5.2.6/lib/active_record/associations/builder/association.rb:51:in build_scope' /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/activerecord-5.2.6/lib/active_record/associations/builder/association.rb:43:increate_reflection'
/opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/activerecord-5.2.6/lib/active_record/associations/builder/association.rb:31:in build' /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/activerecord-5.2.6/lib/active_record/associations.rb:1654:inbelongs_to'
/opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/authie-3.1.5/lib/authie/session.rb:20:in <class:Session>' /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/authie-3.1.5/lib/authie/session.rb:2:in'
/opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/authie-3.1.5/lib/authie/session.rb:1:in <top (required)>' /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:inrequire'
/opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:in block in require' /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:257:inload_dependency'
/opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:in require' /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/authie-3.1.5/lib/authie/engine.rb:8:inblock (2 levels) in '
/opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:71:in instance_eval' /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:71:inblock in execute_hook'
/opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:62:in with_execution_control' /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:67:inexecute_hook'
/opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:43:in block in on_load' /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:42:ineach'
/opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:42:in on_load' /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/authie-3.1.5/lib/authie/engine.rb:7:inblock in '
/opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/railties-5.2.6/lib/rails/initializable.rb:32:in instance_exec' /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/railties-5.2.6/lib/rails/initializable.rb:32:inrun'
/opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/railties-5.2.6/lib/rails/initializable.rb:61:in block in run_initializers' /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/railties-5.2.6/lib/rails/initializable.rb:60:inrun_initializers'
/opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/railties-5.2.6/lib/rails/application.rb:361:in initialize!' /opt/staytus/staytus/config/environment.rb:5:in<top (required)>'
/opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:in require' /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:inblock in require'
/opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:257:in load_dependency' /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:inrequire'
/opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/railties-5.2.6/lib/rails/application.rb:337:in require_environment!' /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/railties-5.2.6/lib/rails/application.rb:520:inblock in run_tasks_blocks'
/opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/exe/rake:27:in <top (required)>' Tasks: TOP => staytus:install => environment (See full trace by running task with --trace)
How to solve this error?
staytus@ip-172-31-105-166:~/staytus$ sudo -u staytus bundle exec rake staytus:install /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:29: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2. /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:118: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2. /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:118: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2. /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:29: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2. /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:118: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2. /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:118: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2. /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:35: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2. /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:35: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2. /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:44: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2. /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:118: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2. /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:35: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2. /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:44: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2. /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:35: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2. => You haven't configured an SMTP server. Mail will be sent using sendmail. rake aborted! NoMethodError: undefined method
arity' for {:polymorphic=>true, :optional=>true}:Hash /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/activerecord-5.2.6/lib/active_record/associations/builder/association.rb:51:inbuild_scope' /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/activerecord-5.2.6/lib/active_record/associations/builder/association.rb:43:in
create_reflection' /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/activerecord-5.2.6/lib/active_record/associations/builder/association.rb:31:inbuild' /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/activerecord-5.2.6/lib/active_record/associations.rb:1654:in
belongs_to' /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/authie-3.1.5/lib/authie/session.rb:20:in<class:Session>' /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/authie-3.1.5/lib/authie/session.rb:2:in
<top (required)>' /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:in
require' /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:inblock in require' /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:257:in
load_dependency' /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:inrequire' /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/authie-3.1.5/lib/authie/engine.rb:8:in
block (2 levels) ininstance_eval' /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:71:in
block in execute_hook' /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:62:inwith_execution_control' /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:67:in
execute_hook' /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:43:inblock in on_load' /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:42:in
each' /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:42:inon_load' /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/authie-3.1.5/lib/authie/engine.rb:7:in
block ininstance_exec' /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/railties-5.2.6/lib/rails/initializable.rb:32:in
run' /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/railties-5.2.6/lib/rails/initializable.rb:61:inblock in run_initializers' /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/railties-5.2.6/lib/rails/initializable.rb:60:in
run_initializers' /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/railties-5.2.6/lib/rails/application.rb:361:ininitialize!' /opt/staytus/staytus/config/environment.rb:5:in
<top (required)>' /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:inrequire' /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:in
block in require' /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:257:inload_dependency' /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:in
require' /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/railties-5.2.6/lib/rails/application.rb:337:inrequire_environment!' /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/railties-5.2.6/lib/rails/application.rb:520:in
block in run_tasks_blocks' /opt/staytus/staytus/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/exe/rake:27:in<top (required)>' Tasks: TOP => staytus:install => environment (See full trace by running task with --trace)