Learn about Centmin Mod LEMP Stack today
Become a Member

Glances a top command alternative

Discussion in 'Centmin Mod Insights' started by eva2000, Jan 1, 2017.

Tags:
  1. eva2000

    eva2000 Administrator Staff Member

    38,044
    8,358
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,875
    Local Time:
    3:30 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    cheers, strange haven't run across this message yet
     
  2. eva2000

    eva2000 Administrator Staff Member

    38,044
    8,358
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,875
    Local Time:
    3:30 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    FYI, going to have temporarily disable the centmin.sh auto update pip/glances/psutil function as CentOS 6.x systems are spitting out errors on centmin.sh runs !
    Code (Text):
    DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6
    /usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
      SNIMissingWarning
    /usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
      InsecurePlatformWarning
    DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6
    /usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
      SNIMissingWarning
    /usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
      InsecurePlatformWarning
    DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6
    /usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
      SNIMissingWarning
    /usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
      InsecurePlatformWarning
    /usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
      SNIMissingWarning
    /usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
      InsecurePlatformWarning
    /usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
      SNIMissingWarning
    /usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
      InsecurePlatformWarning
    Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-y3Bzlv/glances/
    
     
  3. pamamolf

    pamamolf Premium Member Premium Member

    3,169
    304
    83
    May 31, 2014
    Ratings:
    +551
    Local Time:
    7:30 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    Any fix for that?

    I have the same issue when i try to use the aws s3 cli tool :(

    CentOS release 6.10 (Final)

    I use the script for 3,6 at addons directory but i am getting the same error again...
     
    Last edited: Jan 20, 2019
  4. eva2000

    eva2000 Administrator Staff Member

    38,044
    8,358
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,875
    Local Time:
    3:30 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    If you're using CentOS 6 and run into issues installing latest Glances version which now requires Python 2.7, you can install Python 2.7 as SCL Yum package via Centmin Mod addons/python27_install.sh
    Code (Text):
    cd /usr/local/src/centminmod/addons
    ./python27_install.sh install
    mkdir -p /home/pip-tmp
    chmod 1777 /home/pip-tmp
    export TMPDIR=/home/pip-tmp
    pip2.7 install --upgrade pip
    pip2.7 install --upgrade psutil
    pip2.7 install --upgrade glances
    

    Code (Text):
    pip --version                   
    pip 18.1 from /usr/lib/python2.7/site-packages/pip (python 2.7)
    

    Code (Text):
    glances --version
    Glances v3.1.0 with psutil v5.4.8
    
     
    • Like Like x 1
  5. eva2000

    eva2000 Administrator Staff Member

    38,044
    8,358
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,875
    Local Time:
    3:30 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    • Informative Informative x 1
  6. pamamolf

    pamamolf Premium Member Premium Member

    3,169
    304
    83
    May 31, 2014
    Ratings:
    +551
    Local Time:
    7:30 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    All updated with no issues but i am still getting this error when i run the aws s3 cli tool as it seems to use the old 2.6 python :(

     
  7. eva2000

    eva2000 Administrator Staff Member

    38,044
    8,358
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,875
    Local Time:
    3:30 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    use pip2.7 to install awscli not pip
     
    • Informative Informative x 1
  8. ndha

    ndha Member

    73
    9
    8
    Sep 28, 2014
    Ratings:
    +27
    Local Time:
    12:30 AM
    Latest
    10
    @eva2000
    I just rebuilt Nginx with GCC 8
    and then TOP2 error,
    i got PSutil library not found. Glances cannot start.
    Already doing like you said in Quote but throw some error too :
    1. pip install --upgrade pip = Requirement already up-to-date: pip in /usr/lib/python2.7/site-packages (19.0.1)
    2. pip uninstall psutil = Cannot uninstall 'psutil'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
    3. pip uninstall psutil = Cannot uninstall 'psutil'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
    4. pip install psutil = Requirement already satisfied: psutil in /usr/lib64/python2.7/site-packages (2.2.1)
    5. pip install --upgrade psutil --force-reinstall -v | egrep 'ccache|gcc|installed' = uninstalled_pathset = UninstallPathSet.from_dist(dist)

    glances -V = PSutil library not found. Glances cannot start.

     
  9. eva2000

    eva2000 Administrator Staff Member

    38,044
    8,358
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,875
    Local Time:
    3:30 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    If you use centmin mod 123.09beta01 with latest updates via cmupdate command you can just run centmin.sh once and it will take care of pip updates for glances and then exit centmin.sh and glances should work
     
    • Like Like x 1
  10. ndha

    ndha Member

    73
    9
    8
    Sep 28, 2014
    Ratings:
    +27
    Local Time:
    12:30 AM
    Latest
    10
    Yes it's :)
    Already doing that..
    But it must be uninstall & reinstall glance after doing cmupdate..
    Cause in my case if only doing like you suggest it got error "glances command not found"
    Thanks for fixing it Eva
     
..