• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue Ruby error executing rake task

TeunieP

Basic Pleskian
Hi,

I am Running;
Plesk Onyx Version 17.5.3 Update #77.
Ruby 2.4.4-p296
Rails gem "rails", "5.2.2"
Redmine 4.0.2

Redmine is running fine.
I am trying to install a plugin called redmine-2fa which also includes redmine_bots.
centosadmin/redmine_2fa
centosadmin/redmine_bots

The Ruby bundle action completes without issues
However I am getting a lot of dependencies errors after executing rake task from the Plesk Ruby GUI:
Code:
redmine:plugins:migrate RAILS_ENV=production

Code:
rake aborted!
Redis::CannotConnectError: Error connecting to Redis on 127.0.0.1:6379 (Errno::ECONNREFUSED)
/var/www/vhosts/mywebsiteurl.com/httpdocs/vendor/bundle/ruby/2.4.0/gems/redis-4.1.2/lib/redis/client.rb:362:in `rescue in establish_connection'
/var/www/vhosts/mywebsiteurl.com/httpdocs/vendor/bundle/ruby/2.4.0/gems/redis-4.1.2/lib/redis/client.rb:343:in `establish_connection'
/var/www/vhosts/mywebsiteurl.com/httpdocs/vendor/bundle/ruby/2.4.0/gems/redis-4.1.2/lib/redis/client.rb:106:in `block in connect'
/var/www/vhosts/mywebsiteurl.com/httpdocs/vendor/bundle/ruby/2.4.0/gems/redis-4.1.2/lib/redis/client.rb:306:in `with_reconnect'
/var/www/vhosts/mywebsiteurl.com/httpdocs/vendor/bundle/ruby/2.4.0/gems/redis-4.1.2/lib/redis/client.rb:105:in `connect'
/var/www/vhosts/mywebsiteurl.com/httpdocs/vendor/bundle/ruby/2.4.0/gems/redis-4.1.2/lib/redis/client.rb:381:in `ensure_connected'
/var/www/vhosts/mywebsiteurl.com/httpdocs/vendor/bundle/ruby/2.4.0/gems/redis-4.1.2/lib/redis/client.rb:231:in `block in process'
/var/www/vhosts/mywebsiteurl.com/httpdocs/vendor/bundle/ruby/2.4.0/gems/redis-4.1.2/lib/redis/client.rb:319:in `logging'
/var/www/vhosts/mywebsiteurl.com/httpdocs/vendor/bundle/ruby/2.4.0/gems/redis-4.1.2/lib/redis/client.rb:230:in `process'
/var/www/vhosts/mywebsiteurl.com/httpdocs/vendor/bundle/ruby/2.4.0/gems/redis-4.1.2/lib/redis/client.rb:125:in `call'
/var/www/vhosts/mywebsiteurl.com/httpdocs/vendor/bundle/ruby/2.4.0/gems/redis-4.1.2/lib/redis.rb:2166:in `block in hget'
/var/www/vhosts/mywebsiteurl.com/httpdocs/vendor/bundle/ruby/2.4.0/gems/redis-4.1.2/lib/redis.rb:52:in `block in synchronize'
/var/www/vhosts/mywebsiteurl.com/httpdocs/vendor/bundle/ruby/2.4.0/gems/redis-4.1.2/lib/redis.rb:52:in `synchronize'
/var/www/vhosts/mywebsiteurl.com/httpdocs/vendor/bundle/ruby/2.4.0/gems/redis-4.1.2/lib/redis.rb:2165:in `hget'
/var/www/vhosts/mywebsiteurl.com/httpdocs/vendor/bundle/ruby/2.4.0/gems/sidekiq-cron-1.1.0/lib/sidekiq/cron/job.rb:361:in `block in status_from_redis'
/var/www/vhosts/mywebsiteurl.com/httpdocs/vendor/bundle/ruby/2.4.0/gems/sidekiq-5.2.7/lib/sidekiq.rb:97:in `block in redis'
/var/www/vhosts/mywebsiteurl.com/httpdocs/vendor/bundle/ruby/2.4.0/gems/connection_pool-2.2.2/lib/connection_pool.rb:65:in `block (2 levels) in with'
/var/www/vhosts/mywebsiteurl.com/httpdocs/vendor/bundle/ruby/2.4.0/gems/connection_pool-2.2.2/lib/connection_pool.rb:64:in `handle_interrupt'
/var/www/vhosts/mywebsiteurl.com/httpdocs/vendor/bundle/ruby/2.4.0/gems/connection_pool-2.2.2/lib/connection_pool.rb:64:in `block in with'
/var/www/vhosts/mywebsiteurl.com/httpdocs/vendor/bundle/ruby/2.4.0/gems/connection_pool-2.2.2/lib/connection_pool.rb:61:in `handle_interrupt'
/var/www/vhosts/mywebsiteurl.com/httpdocs/vendor/bundle/ruby/2.4.0/gems/connection_pool-2.2.2/lib/connection_pool.rb:61:in `with'
/var/www/vhosts/mywebsiteurl.com/httpdocs/vendor/bundle/ruby/2.4.0/gems/sidekiq-5.2.7/lib/sidekiq.rb:94:in `redis'
/var/www/vhosts/mywebsiteurl.com/httpdocs/vendor/bundle/ruby/2.4.0/gems/sidekiq-cron-1.1.0/lib/sidekiq/cron/job.rb:360:in `status_from_redis'
/var/www/vhosts/mywebsiteurl.com/httpdocs/vendor/bundle/ruby/2.4.0/gems/sidekiq-cron-1.1.0/lib/sidekiq/cron/job.rb:272:in `initialize'
/var/www/vhosts/mywebsiteurl.com/httpdocs/vendor/bundle/ruby/2.4.0/gems/sidekiq-cron-1.1.0/lib/sidekiq/cron/job.rb:241:in `new'
/var/www/vhosts/mywebsiteurl.com/httpdocs/vendor/bundle/ruby/2.4.0/gems/sidekiq-cron-1.1.0/lib/sidekiq/cron/job.rb:241:in `create'
/var/www/vhosts/mywebsiteurl.com/httpdocs/plugins/redmine_telegram_common/init.rb:28:in `'
/var/www/vhosts/mywebsiteurl.com/httpdocs/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `require'
/var/www/vhosts/mywebsiteurl.com/httpdocs/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `block in require'
/var/www/vhosts/mywebsiteurl.com/httpdocs/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in `load_dependency'
/var/www/vhosts/mywebsiteurl.com/httpdocs/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `require'
/var/www/vhosts/mywebsiteurl.com/httpdocs/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:378:in `block in require_or_load'
/var/www/vhosts/mywebsiteurl.com/httpdocs/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:37:in `block in load_interlock'
/var/www/vhosts/mywebsiteurl.com/httpdocs/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.2/lib/active_support/dependencies/interlock.rb:14:in `block in loading'
/var/www/vhosts/mywebsiteurl.com/httpdocs/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.2/lib/active_support/concurrency/share_lock.rb:151:in `exclusive'
/var/www/vhosts/mywebsiteurl.com/httpdocs/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.2/lib/active_support/dependencies/interlock.rb:13:in `loading'
/var/www/vhosts/mywebsiteurl.com/httpdocs/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:37:in `load_interlock'
/var/www/vhosts/mywebsiteurl.com/httpdocs/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:356:in `require_or_load'
/var/www/vhosts/mywebsiteurl.com/httpdocs/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:334:in `depend_on'
/var/www/vhosts/mywebsiteurl.com/httpdocs/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:246:in `require_dependency'
/var/www/vhosts/mywebsiteurl.com/httpdocs/plugins/redmine_2fa/init.rb:1:in `'
/var/www/vhosts/mywebsiteurl.com/httpdocs/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `require'
/var/www/vhosts/mywebsiteurl.com/httpdocs/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `block in require'
/var/www/vhosts/mywebsiteurl.com/httpdocs/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in `load_dependency'
/var/www/vhosts/mywebsiteurl.com/httpdocs/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `require'

Can someone point me in the right direction?
 
Back
Top