Analyzer Service Troubleshooting

  1. Check Python 3 version on your system (make sure it is >=3.6):
    python3 -V
    
  2. Make sure you correctly followed installation:

    • Clean Linux OS
      • RedHat Linux / Rocky Linux (x86, ppc):
        su -
        dnf install -y python3-virtualenv python3-pip libpq-devel python3-devel
        
      • Debian: 11/12:
        su -
        apt install -y python3-venv
        
      Then create venv and install packages (as xormon):
      su - xormon     # make sure you make installation as xormon user
      cd ~/xormon-ng/server-nest/
      python3 -m venv venv
      venv/bin/python3 -m ensurepip --upgrade
      venv/bin/python3 -m pip install --upgrade pip
      venv/bin/python3 -m pip install -r microservices/analyzer/requirements/requirements.txt
      
      Once you get this error:
      Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 101] Network is unreachable')': /simple/pip/
      
      Then try to avoid it by using internal proxy for Python packages installation
      venv/bin/python3 -m pip install --proxy http://<username>:<password>@<hostname>:<port> --upgrade pip
      venv/bin/python3 -m pip install --proxy http://<username>:<password>@<hostname>:<port> -r microservices/analyzer/requirements/requirements.txt 
      Restart XorMon:
      su - xormon 
      cd ~/xormon-ng
      ./xormon.sh stop
      ./xormon.sh start
      

    • Xorux Virtual Appliance
      This is about our Xorux Virtual Appliance used by the first generation of our tools: XorMon Original, LPAR2RRD and STOR2RRD
      It is not about XorMon Virtual Appliance you can download from this site which already contains XorMon.
      • Rocky Linux (7.60+)
        Use this procedure to upgrade and configure XorMon distributed with Xorux Virtual Appliance 7.60+ which is based on Rocky Linux 8.x, you can check this by
        grep "Virtual Appliance version" /var/www/html/index.html| sed -e 's/^.*Virtual Appliance version/Virtual Appliance version/' -e 's/is brought to you by.*//'
          Virtual Appliance version 7.60
        First as root:
        su -
        dnf install -y python3-virtualenv python3-devel libpq-devel
        
        Then as lpar2rrd user:
        su - lpar2rrd
        export PATH="$PATH:/usr/pgsql-12/bin" 
        cd /opt/xorux/xormon-ng/server-nest
        python3 -m venv venv
        venv/bin/python3 -m ensurepip --upgrade
        venv/bin/python3 -m pip install --upgrade pip
        venv/bin/python3 -m pip install -r microservices/analyzer/requirements/requirements.txt
        
        Once you get this error:
        Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 101] Network is unreachable')': /simple/pip/
        
        Then try to avoid it by using internal proxy for Python packages installation
        venv/bin/python3 -m pip install --proxy http://<username>:<password>@<hostname>:<port> --upgrade pip
        venv/bin/python3 -m pip install --proxy http://<username>:<password>@<hostname>:<port> -r microservices/analyzer/requirements/requirements.txt 
        Then restart XorMon:
        su - lpar2rrd
        cd /opt/xorux/xormon-ng
        ./xormon.sh stop
        ./xormon.sh start
        
      • CentOS (older than 7.60)
        As root:
        su -
        yum -y install python3-virtualenv python3-pip python3-devel
        yum -y install postgresql-devel gcc
        
        As lpar2rrd user install:
        su - lpar2rrd
        cd ~/xormon-ng/server-nest/
        python3 -m venv venv
        venv/bin/python3 -m ensurepip --upgrade
        venv/bin/python3 -m pip install --upgrade pip
        venv/bin/python3 -m pip install -r microservices/analyzer/requirements/requirements.txt
        
        Once you get this error:
        Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 101] Network is unreachable')': /simple/pip/
        
        Then try to avoid it by using internal proxy for Python packages installation
        venv/bin/python3 -m pip install --proxy http://<username>:<password>@<hostname>:<port> --upgrade pip
        venv/bin/python3 -m pip install --proxy http://<username>:<password>@<hostname>:<port> -r microservices/analyzer/requirements/requirements.txt 
        Then restart XorMon:
        su - lpar2rrd
        cd ~/xormon-ng
        ./xormon.sh stop
        ./xormon.sh start
        
  3. Check analyzer status:
    cd ~/xormon-ng/server-nest/
    npx pm2 list --sort name:asc
    
    In process list look for analyzer.
    You might also try to restart it:
    cd ~/xormon-ng/server-nest/
    npx pm2 start analyzer
    
    and check again.

  4. In case you did not find solution, please contact our support and send us logs via upload.xormon.com
    UI ➡ settings ➡ Logs ➡ support logs: follow the form