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

Could not find 'sinatra' (>= 0) among 16 total gem(s) (Gem::MissingSpecError) #95

Open
nskalis opened this issue Apr 28, 2017 · 1 comment

Comments

@nskalis
Copy link

nskalis commented Apr 28, 2017

Hi,

Could you please help me getting redmon up and running ?

I have installed redmon like this:

tasks:

      - name: "Install redmon (redis)"
        tags:
          - redis
        become: yes
        gem: name="{{ item }}" user_install=no state=latest
        with_items:
          - redmon
        environment:
          http_proxy: "{{ prx.http }}"
          https_proxy: "{{ prx.https }}"

      - name: "Update Ruby gems (redis)"
        tags:
          - redis
        become: yes
        command: gem update --system
        environment:
          http_proxy: "{{ prx.http }}"
          https_proxy: "{{ prx.https }}"

But when I try to connect to local redis instance, I am getting the following error:

$ redmon --port 16384 --lifespan 60 --redis redis://127.0.0.1:6384
/usr/local/share/ruby/site_ruby/rubygems/dependency.rb:308:in `to_specs': Could not find 'sinatra' (>= 0) among 16 total gem(s) (Gem::MissingSpecError)
Checked in 'GEM_PATH=/home/app/.gem/ruby:/usr/share/gems:/usr/local/share/gems', execute `gem env` for more information
	from /usr/local/share/ruby/site_ruby/rubygems/specification.rb:1439:in `block in activate_dependencies'
	from /usr/local/share/ruby/site_ruby/rubygems/specification.rb:1428:in `each'
	from /usr/local/share/ruby/site_ruby/rubygems/specification.rb:1428:in `activate_dependencies'
	from /usr/local/share/ruby/site_ruby/rubygems/specification.rb:1410:in `activate'
	from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_gem.rb:68:in `block in gem'
	from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_gem.rb:67:in `synchronize'
	from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_gem.rb:67:in `gem'
	from /usr/local/bin/redmon:22:in `<main>'
$ gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 2.6.11
  - RUBY VERSION: 2.0.0 (2015-12-16 patchlevel 648) [x86_64-linux]
  - INSTALLATION DIRECTORY: /home/app/.gem/ruby
  - USER INSTALLATION DIRECTORY: /home/app/.gem/ruby
  - RUBY EXECUTABLE: /usr/bin/ruby
  - EXECUTABLE DIRECTORY: /home/app/bin
  - SPEC CACHE DIRECTORY: /home/app/.gem/specs
  - SYSTEM CONFIGURATION DIRECTORY: /etc
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-linux
  - GEM PATHS:
     - /home/app/.gem/ruby
     - /usr/share/gems
     - /usr/local/share/gems
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - https://rubygems.org/
  - SHELL PATH:
     - /usr/local/bin
     - /usr/bin
     - /usr/local/sbin
     - /usr/sbin
     - /home/app/.local/bin
     - /home/app/bin

Would you be so kind to help me and advise me please how to resolve this ?

Nikos

@charis3306
Copy link

I'm upset, too. Have you solved it

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