NIXStats / nixstatsagent

NIXStats monitoring agent
https://www.nixstats.com
Other
92 stars 38 forks source link

Error on Debian 12 installation #60

Open cyril23 opened 1 year ago

cyril23 commented 1 year ago

Tried to install on fresh Debian 12 VM (here: all updates installed - but this doesn't matter):

root@Debian12NFVM:~# wget -q -N --no-check-certificate https://nixstats.com/nixstatsagent.sh && bash nixstatsagent.sh XXX YYY
Installing ...
Installing python3-pip ...
Installing nixstatsagent ... 
Installing nixstatsagent ... 
pip install of nixstatsagent returned error 0. Please see nixstatsagent.log for details.
root@Debian12NFVM:~# 

See nixstatsagent.log: nixstatsagent.log

excerpt:

Preparing to unpack .../python3-wheel_0.38.4-2_all.deb ...
Unpacking python3-wheel (0.38.4-2) ...
Selecting previously unselected package python3-pip.
Preparing to unpack .../python3-pip_23.0.1+dfsg-1_all.deb ...
Unpacking python3-pip (23.0.1+dfsg-1) ...
Setting up python3-wheel (0.38.4-2) ...
Setting up python3-pip (23.0.1+dfsg-1) ...
Processing triggers for man-db (2.11.2-2) ...
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://security.debian.org/debian-security bookworm-security InRelease
Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
less is already the newest version (590-2).
The following package was automatically installed and is no longer required:
  linux-image-6.1.0-9-amd64
Use 'apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.

    If you wish to install a non-Debian-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
    sure you have python3-full installed.

    If you wish to install a non-Debian packaged Python application,
    it may be easiest to use pipx install xyz, which will manage a
    virtual environment for you. Make sure you have pipx installed.

    See /usr/share/doc/python3.11/README.venv for more information.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.

See:

lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 12 (bookworm)
Release:        12
Codename:       bookworm

uname -a
Linux Debian12NFVM 6.1.0-11-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.38-4 (2023-08-08) x86_64 GNU/Linux
ghost commented 1 year ago

For your information NIXStats is not maintained any more, I spent some time trying to debug issues and get help during the previous year but wasn't able to receive any answer.

The founder of NIXStats sold their business to webpros, the owners of Plesk, last year. You can see they have integrated it into their product under the name https://360monitoring.com

halukakin commented 3 months ago

This is a problem with Ubuntu 24 as well... Ubuntu 24 comes with Python 3.12 and it is not compatible with nixstats' install script.

Update: I've corresponded with 360monitoring support. They say they support Python 3.12 since May. Their price levels seem similar.