Join the community today
Become a Member

Sysadmin Unable to get redmon or redis-stat to work

Discussion in 'System Administration' started by ElChorizo, Jun 26, 2021.

  1. ElChorizo

    ElChorizo Premium Member Premium Member

    15
    1
    3
    Apr 29, 2021
    Ratings:
    +2
    Local Time:
    6:51 PM
    1.19.10
    10.3.28
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 7 64bit ?
    • Centmin Mod Version Installed: 123.09beta01
    I am unable to get redis-stat or redmon to work. Both error out. I followed the phusion passenger install instructions... relevant code:

    Code:
    # ruby -v
    ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-linux]
    [17:23][root@centminmod]# redis-stat
    /usr/local/rvm/gems/ruby-2.6.3/gems/sinatra-1.3.6/lib/sinatra/base.rb:1070: warning: constant ::Fixnum is deprecated
    /usr/local/rvm/gems/ruby-2.6.3/gems/sinatra-1.3.6/lib/sinatra/base.rb:1070: warning: constant ::Fixnum is deprecated
    /usr/local/rvm/gems/ruby-2.6.3/gems/sinatra-1.3.6/lib/sinatra/base.rb:1070: warning: constant ::Fixnum is deprecated
    /usr/local/rvm/gems/ruby-2.6.3/gems/sinatra-1.3.6/lib/sinatra/base.rb:1070: warning: constant ::Fixnum is deprecated
    /usr/local/rvm/gems/ruby-2.6.3/gems/sinatra-1.3.6/lib/sinatra/base.rb:1070: warning: constant ::Fixnum is deprecated
    /usr/local/rvm/gems/ruby-2.6.3/gems/si-0.1.4/lib/si/patch.rb:5: warning: constant ::Fixnum is deprecated
    /usr/local/rvm/gems/ruby-2.6.3/gems/si-0.1.4/lib/si/patch.rb:9: warning: constant ::Bignum is deprecated
    /usr/local/rvm/gems/ruby-2.6.3/gems/option_initializer-1.5.1/lib/option_initializer.rb:154: warning: constant ::Fixnum is deprecated
    /usr/local/rvm/gems/ruby-2.6.3/gems/option_initializer-1.5.1/lib/option_initializer.rb:198: warning: constant ::Fixnum is deprecated
    /usr/local/rvm/gems/ruby-2.6.3/gems/redis-3.0.7/lib/redis/client.rb:386: warning: constant ::Fixnum is deprecated
    /usr/local/rvm/gems/ruby-2.6.3/gems/si-0.1.4/lib/si/module.rb:4: warning: constant ::Fixnum is deprecated
    /usr/local/rvm/gems/ruby-2.6.3/gems/si-0.1.4/lib/si/module.rb:21: warning: constant ::Fixnum is deprecated
    /usr/local/rvm/gems/ruby-2.6.3/gems/si-0.1.4/lib/si/module.rb:10: warning: constant ::Fixnum is deprecated
    undefined method `display_width' for #<String:0x0000000003154700>
    Did you mean?  display
    As far as redmon, it craps itself and restarts by itself...


    Code:
    [17:23][root@centminmod]# redmon
    /usr/local/rvm/gems/ruby-2.6.3/gems/thin-1.5.1/lib/thin/server.rb:104: warning: constant ::Fixnum is deprecated
    /usr/local/rvm/gems/ruby-2.6.3/gems/sinatra-1.3.6/lib/sinatra/base.rb:1070: warning: constant ::Fixnum is deprecated
    /usr/local/rvm/gems/ruby-2.6.3/gems/sinatra-1.3.6/lib/sinatra/base.rb:1070: warning: constant ::Fixnum is deprecated
    /usr/local/rvm/gems/ruby-2.6.3/gems/sinatra-1.3.6/lib/sinatra/base.rb:1070: warning: constant ::Fixnum is deprecated
    /usr/local/rvm/gems/ruby-2.6.3/gems/sinatra-1.3.6/lib/sinatra/base.rb:1070: warning: constant ::Fixnum is deprecated
    >> Thin web server (v1.5.1 codename Straight Razor)
    >> Maximum connections set to 1024
    >> Listening on 0.0.0.0:4567, CTRL+C to stop
    [21-06-25 17:24:15] listening on http://0.0.0.0:4567/
    /usr/local/rvm/gems/ruby-2.6.3/gems/redis-3.0.7/lib/redis/client.rb:386: warning: constant ::Fixnum is deprecated
    [21-06-25 17:24:25] !!! Redmon has shit the bed, restarting... source sequence is illegal/malformed utf-8
    [21-06-25 17:24:25] /usr/local/rvm/gems/ruby-2.6.3/gems/redmon-0.0.13/lib/redmon/worker.rb:27:in `to_json'
    [21-06-25 17:24:25] /usr/local/rvm/gems/ruby-2.6.3/gems/redmon-0.0.13/lib/redmon/worker.rb:27:in `stats'
    [21-06-25 17:24:25] /usr/local/rvm/gems/ruby-2.6.3/gems/redmon-0.0.13/lib/redmon/worker.rb:13:in `record_stats'
    [21-06-25 17:24:25] /usr/local/rvm/gems/ruby-2.6.3/gems/redmon-0.0.13/lib/redmon/worker.rb:7:in `block in run!'
    [21-06-25 17:24:25] /usr/local/rvm/gems/ruby-2.6.3/gems/eventmachine-1.2.7/lib/em/timers.rb:56:in `fire'
    [21-06-25 17:24:25] /usr/local/rvm/gems/ruby-2.6.3/gems/eventmachine-1.2.7/lib/eventmachine.rb:195:in `call'
    [21-06-25 17:24:25] /usr/local/rvm/gems/ruby-2.6.3/gems/eventmachine-1.2.7/lib/eventmachine.rb:195:in `run_machine'
    [21-06-25 17:24:25] /usr/local/rvm/gems/ruby-2.6.3/gems/eventmachine-1.2.7/lib/eventmachine.rb:195:in `run'
    [21-06-25 17:24:25] /usr/local/rvm/gems/ruby-2.6.3/gems/redmon-0.0.13/lib/redmon.rb:20:in `start_em'
    [21-06-25 17:24:25] /usr/local/rvm/gems/ruby-2.6.3/gems/redmon-0.0.13/lib/redmon.rb:9:in `run'
    [21-06-25 17:24:25] /usr/local/rvm/gems/ruby-2.6.3/gems/redmon-0.0.13/bin/redmon:84:in `<top (required)>'
    [21-06-25 17:24:25] /usr/local/rvm/gems/ruby-2.6.3/bin/redmon:23:in `load'
    [21-06-25 17:24:25] /usr/local/rvm/gems/ruby-2.6.3/bin/redmon:23:in `<main>'
    [21-06-25 17:24:25] /usr/local/rvm/gems/ruby-2.6.3/bin/ruby_executable_hooks:24:in `eval'
    [21-06-25 17:24:25] /usr/local/rvm/gems/ruby-2.6.3/bin/ruby_executable_hooks:24:in `<main>'
    [21-06-25 17:24:25] Shutting down
    
     
  2. eva2000

    eva2000 Administrator Staff Member

    47,292
    10,700
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,625
    Local Time:
    9:51 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    LOL love the error message Redmon returns! I haven't tested Redmon in ages.

    Did you follow Redmon instructions outlined in post at Redis - Insight Guide - How to install Redis server on Centmin Mod LEMP stack, could be Ruby version is too old warning: constant ::Fixnum is deprecated When generating new model

    Ruby 3.0.1 is the latest now Download Ruby but even when I update addons/ruby.sh to install Ruby 3.0.1, Redmon is broken as it seems it only supports very old Redis 3.x dependencies and not even Redis 4. Latest Redis server version in use now is Redis 6.2 so looks like Redmon may not work anymore
    The last 2 quotes are when Redis 3/4 server was out. Redis server is now at Redis 6.2.

    Redmon hasn't been updated since 2017 Releases · steelThread/redmon

    with Ruby 3.0.1 and Redmon 0.0.13 error

    Code (Text):
    redmon
    2021-06-26 13:32:07 +0000 Thin web server (v1.8.1 codename Infinite Smoothie)
    2021-06-26 13:32:07 +0000 Maximum connections set to 1024
    2021-06-26 13:32:07 +0000 Listening on 0.0.0.0:4567, CTRL+C to stop
    [21-06-26 13:32:07] listening on http://0.0.0.0:4567/
    [21-06-26 13:32:17] !!! Redmon has shit the bed, restarting... undefined method `connect' for Redis:Class
    [21-06-26 13:32:17] /usr/local/rvm/gems/ruby-3.0.1/gems/redmon-0.0.13/lib/redmon/redis.rb:18:in `redis'
    [21-06-26 13:32:17] /usr/local/rvm/gems/ruby-3.0.1/gems/redmon-0.0.13/lib/redmon/worker.rb:13:in `record_stats'
    [21-06-26 13:32:17] /usr/local/rvm/gems/ruby-3.0.1/gems/redmon-0.0.13/lib/redmon/worker.rb:7:in `block in run!'
    [21-06-26 13:32:17] /usr/local/rvm/gems/ruby-3.0.1/gems/eventmachine-1.2.7/lib/em/timers.rb:56:in `fire'
    [21-06-26 13:32:17] /usr/local/rvm/gems/ruby-3.0.1/gems/eventmachine-1.2.7/lib/eventmachine.rb:195:in `call'
    [21-06-26 13:32:17] /usr/local/rvm/gems/ruby-3.0.1/gems/eventmachine-1.2.7/lib/eventmachine.rb:195:in `run_machine'
    [21-06-26 13:32:17] /usr/local/rvm/gems/ruby-3.0.1/gems/eventmachine-1.2.7/lib/eventmachine.rb:195:in `run'
    [21-06-26 13:32:17] /usr/local/rvm/gems/ruby-3.0.1/gems/redmon-0.0.13/lib/redmon.rb:20:in `start_em'
    [21-06-26 13:32:17] /usr/local/rvm/gems/ruby-3.0.1/gems/redmon-0.0.13/lib/redmon.rb:9:in `run'
    [21-06-26 13:32:17] /usr/local/rvm/gems/ruby-3.0.1/gems/redmon-0.0.13/bin/redmon:84:in `<top (required)>'
    [21-06-26 13:32:17] /usr/local/rvm/gems/ruby-3.0.1/bin/redmon:23:in `load'
    [21-06-26 13:32:17] /usr/local/rvm/gems/ruby-3.0.1/bin/redmon:23:in `<main>'
    2021-06-26 13:32:18 +0000 Thin web server (v1.8.1 codename Infinite Smoothie)
    2021-06-26 13:32:18 +0000 Maximum connections set to 1024
    2021-06-26 13:32:18 +0000 Listening on 0.0.0.0:4567, CTRL+C to stop
    [21-06-26 13:32:18] listening on http://0.0.0.0:4567/
    ^C[21-06-26 13:32:22] Shutting down
    
     
  3. ElChorizo

    ElChorizo Premium Member Premium Member

    15
    1
    3
    Apr 29, 2021
    Ratings:
    +2
    Local Time:
    6:51 PM
    1.19.10
    10.3.28
    I did follow the instructions, guess it's just too old. No worries though!