English 中文(简体)
我正试图启动边际Kq服务器。
原标题:I am trying to start sidekiq server

I want to run sidekiq server, but I found some warning.

I am running sidekiq server, but found error and warning and sidekiq server is not running even through I have updated all gems according to requirements.Below is error when I am staring sidekiq server using sidekiq.

WARN: Clearing out unresolved specs. Try  gem cleanup <gem> 
Please report a bug if this causes problems.
/home/dell/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/lib/bundler/runtime.rb:304:in `check_for_activated_spec! : You have already activated rack 3.0.8, but your Gemfile requires rack 2.2.4. Prepending `bundle exec` to your command may solve this. (Gem::LoadError)
    from /home/dell/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/lib/bundler/runtime.rb:25:in `block in setup 
    from /home/dell/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/lib/bundler/spec_set.rb:165:in `each 
    from /home/dell/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/lib/bundler/spec_set.rb:165:in `each 
    from /home/dell/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/lib/bundler/runtime.rb:24:in `map 
    from /home/dell/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/lib/bundler/runtime.rb:24:in `setup 
    from /home/dell/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/lib/bundler.rb:162:in `setup 
    from /home/dell/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/lib/bundler/setup.rb:10:in `block in <top (required)> 
    from /home/dell/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/lib/bundler/ui/shell.rb:159:in `with_level 
    from /home/dell/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/lib/bundler/ui/shell.rb:111:in `silence 
    from /home/dell/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/lib/bundler/setup.rb:10:in `<top (required)> 
    from <internal:/home/dell/.rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:96:in `require 
    from <internal:/home/dell/.rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:96:in `require 
    from /home/dell/Documents/sidekiqlearning/config/boot.rb:3:in `<top (required)> 
    from /home/dell/Documents/sidekiqlearning/config/application.rb:1:in `require_relative 
    from /home/dell/Documents/sidekiqlearning/config/application.rb:1:in `<top (required)> 
    from /home/dell/Documents/sidekiqlearning/config/environment.rb:2:in `require_relative 
    from /home/dell/Documents/sidekiqlearning/config/environment.rb:2:in `<top (required)> 
    from <internal:/home/dell/.rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:148:in `require 
    from <internal:/home/dell/.rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:148:in `require 
    from /home/dell/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/sidekiq-7.2.0/lib/sidekiq/cli.rb:303:in `boot_application 
    from /home/dell/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/sidekiq-7.2.0/lib/sidekiq/cli.rb:42:in `run 
    from /home/dell/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/sidekiq-7.2.0/bin/sidekiq:31:in `<top (required)> 
    from /home/dell/.rbenv/versions/3.2.2/bin/sidekiq:25:in `load 
问题回答
bundle exec sidekiq

Just use this command, I hope it will run your sidekiq server. And tell me one more thing, did you make config/sidekiq.rb?





相关问题
rails collection_select vs. select

collection_select and select Rails helpers: Which one should I use? I can t see a difference in both ways. Both helpers take a collection and generates options tags inside a select tag. Is there a ...

SSL slowness in EC2

We ve deployed our rails app to EC2. In our setup, we have two proxies on small instances behind round-robin DNS. These run nginx load balancers for a dynamically growing and shrinking farm of web ...

Auth-code with A-Za-z0-9 to use in an URL parameter

As part of a web application I need an auth-code to pass as a URL parameter. I am currently using (in Rails) : Digest::SHA1.hexdigest((object_id + rand(255)).to_s) Which provides long strings like : ...

RubyCAS-Client question: Rails

I ve installed RubyCAS-Client version 2.1.0 as a plugin within a rails app. It s working, but I d like to remove the ?ticket= in the url. Is this possible?

activerecord has_many :through find with one sql call

I have a these 3 models: class User < ActiveRecord::Base has_many :permissions, :dependent => :destroy has_many :roles, :through => :permissions end class Permission < ActiveRecord::...

Ordering a hash to xml: Rails

I m building an xml document from a hash. The xml attributes need to be in order. How can this be accomplished? hash.to_xml

Text Editor for Ruby-on-Rails

guys which text editor is good for Rubyonrails? i m using Windows and i was using E-Texteditor but its not free n its expired now can anyone plese tell me any free texteditor? n which one is best an ...

How to get SQL queries for each user where env is production

I’m developing an application dedicated to generate statistical reports, I would like that user after saving their stat report they save sql queries too. To do that I wrote the following module: ...

热门标签