Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error is appearing on the Sidekiq web UI #6230

Open
SelvaganapathiMani opened this issue Mar 16, 2024 · 1 comment
Open

An error is appearing on the Sidekiq web UI #6230

SelvaganapathiMani opened this issue Mar 16, 2024 · 1 comment

Comments

@SelvaganapathiMani
Copy link

SelvaganapathiMani commented Mar 16, 2024

Problem :
Sometimes, when viewing the Sidekiq web page in the scheduled section, an error appears like the one below. However, after refreshing the page, the error disappears, but it reappears upon refreshing again. What is causing this issue?, and how can it be fixed?

'Undefined method 'map' for nil::NilClass'

Ruby version: 2.5.0
Rails version: 5.2.8
Sidekiq : 6.5.5
redis, '~> 5.0', '>= 5.0.1

Screenshot from 2024-03-16 15-20-50

Screenshot from 2024-03-15 10-29-15

require 'sidekiq-scheduler'
require 'sidekiq/launcher'
require 'sidekiq/extensions/launcher'

Sidekiq.configure_server do |config|
  config.redis = { url: 'redis://' + Rails.configuration.x.redis[:server] }
  config.server_middleware do |chain|
    chain.add Sidekiq::GCMiddleware
  end

  config.on(:startup) do
    # Core Jobs
    schedule = YAML.load_file( 'sidekiq_scheduler.yml')

    # Merging environment based jobs
    yml_file_path = File.expand_path('config/sidekiq_scheduler.yml', Dir.pwd)
    schedule.merge!(YAML.load_file(yml_file_path)) if File.exists? yml_file_path
    Sidekiq.schedule = schedule
    SidekiqScheduler::Scheduler.instance.reload_schedule!
  end
end

Sidekiq.configure_client do |config|
  config.redis = { url: 'redis://' + Rails.configuration.x.redis[:client] }
end

Sidekiq.default_job_options['retry'] = 5

Mail.eager_autoload!
@mperham
Copy link
Collaborator

mperham commented Mar 16, 2024

No idea. Never seen that error before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants