Analyzer Service Troubleshooting
python3 -V
ls -ls /usr/bin/python*
lrwxrwxrwx 1 root root 9 Aug 4 13:28 /usr/bin/python3 -> python3.6 -rwxr-xr-x 1 root root 6288 Nov 24 15:30 /usr/bin/python3.12 -rwxr-xr-x 1 root root 3378 Nov 24 15:30 /usr/bin/python3.12-config -rwxr-xr-x 2 root root 10560 Aug 4 13:28 /usr/bin/python3.6 lrwxrwxrwx 1 root root 17 Aug 4 13:28 /usr/bin/python3.6-config -> python3.6m-config -rwxr-xr-x 2 root root 10560 Aug 4 13:28 /usr/bin/python3.6m -rwxr-xr-x 1 root root 3440 Aug 4 13:28 /usr/bin/python3.6m-config lrwxrwxrwx 1 root root 16 Aug 4 13:28 /usr/bin/python3-config -> python3.6-configpython3.12 is available in the above example.
su - xormon cd ~/xormon-ng/server-nest/ npx pm2 list --sort name:ascLook for 'analyzer' in the process list.
su - xormon cd ~/xormon-ng/server-nest/ npx pm2 start analyzerCheck again.
su - xormon cd ~/xormon-ng/server-nest venv/bin/python3 -m pip install -r microservices/analyzer/requirements/requirements.txtRestart XorMon
su - xormon cd ~/xormon-ng ./xormon.sh restart
su - xormon cd ~/xormon-ng/server-nest rm -rf venv/ rm -rf ~/.cache/pip python3.12 -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.txtRestart XorMon
su - xormon cd ~/xormon-ng/ ./xormon.sh restart
su - xormon cd ~/xormon-ng ./xormon.sh mspatch xormon_ms_patch-analyzer.tarIf the problem persists, then please contact our support and send us logs via upload.xormon.com
venv/bin/python3 -m pip install -r microservices/analyzer/requirements/requirements.txtCommand fails to build with a JPEG error
dnf install libjpeg-turbo-devel libjpeg-turbo-utils
venv/bin/python3 -m pip install -r microservices/analyzer/requirements/requirements.txtFails with an 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/
Solution: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.txtRestart XorMon:
su - xormon cd ~/xormon-ng ./xormon.sh restart
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.60First as root:
su - dnf install -y python3-virtualenv python3-devel libpq-develThen 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.txtIf 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/
Try to avoid it by using internal proxy for Python packages installationvenv/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.txtRestart XorMon:
su - lpar2rrd cd /opt/xorux/xormon-ng ./xormon.sh stop ./xormon.sh start
su - yum -y install python3-virtualenv python3-pip python3-devel yum -y install postgresql-devel gccAs 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.txtIf 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/
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.txtRestart XorMon:
su - lpar2rrd cd ~/xormon-ng ./xormon.sh stop ./xormon.sh start