The 1.64 release will require PHP 7.2 and Python 3. Both PHP 7.1 and Python 2 are no longer supported upstream. LibreNMS 1.64 is due to be released May 31. For those using the daily release, this may be sooner.
If you do not meet the requirements, LibreNMS will cease updates so that it continues to work. This means you will no longer receive security and bug fixes.
Steps you can take to prevent this.
Update your PHP version. Minimum 7.2.5, but 7.3 or newer is recommended.
Make sure at least Python 3.4 is available, if not install it and pip3.
Install the python requirements with pip3 install -r requirements.txt or via your distribution packages.
If using distributed polling via the wrappers, make sure to install Python 3 python-memcached pip3 install python-memcached
You do NOT need to set the python binary to point to python3. If python3 --version is >= 3.4 you are ready.
Not sure if these steps were all really required, but this is how I upgraded my Ubuntu 18.04 Nginx install up to the recommended php 7.3 (was at v7.2.24 prior)… Python was already at 3.6.9 so just had to install pip3.
I didn’t run into any issues with nginx after upgrading to php 7.3 on Ubuntu 18, so not sure what would be causing that. This is what I get when I run validate.php. I have fixed some errors in the arbos files in my local install so ignore the git warnings.
netnms02:/opt/librenms# ./validate.php
====================================
Component | Version
--------- | -------
LibreNMS | 1.61
DB Schema | 2020_02_10_223323_create_alert_location_map_table (159)
PHP | 7.3.18-1+ubuntu18.04.1+deb.sury.org+1
MySQL | 10.1.44-MariaDB-0ubuntu0.18.04.1
RRDTool | 1.7.0
SNMP | NET-SNMP 5.7.3
====================================
[OK] Composer Version: 1.10.6
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[WARN] Your local git contains modified files, this could prevent automatic updates.
[FIX]:
You can fix this with ./scripts/github-remove
Modified Files:
includes/definitions/arbos.yaml
tests/snmpsim/arbos.snmprec
netnms02:/var/log# php -v
PHP 7.3.18-1+ubuntu18.04.1+deb.sury.org+1 (cli) (built: May 14 2020 10:34:44) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.18, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.18-1+ubuntu18.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies
PHP 7.2.5 Is required, But 7.3 strongly recommended?
Official guide https://docs.librenms.org/Installation/Installation-Ubuntu-1804-Nginx/
Explains how to install 7.2 which ends up being 7.2.24 (this is the same as in one of your official vm images)
No warnings (or issues that I have seen) appears when using 7.2.24 tho.
So, you might either revise the requirement, or update official image, and documentation for how to do this install properly. Also information on how to upgrade the official image would be great.
Thanks!
Just upgraded my distributed system from 1.63 to 1.64, already installed php 7.2.31 and python3 dependency.
This is the output of one of my poller (yes, we disable the automatic update )
user@librepoll1:/opt/librenms# ./validate.php -g distributedpoller
====================================
Component | Version
--------- | -------
LibreNMS | 1.64.1
DB Schema | 2020_04_06_001048_the_great_index_rename (165)
PHP | 7.2.31-1+ubuntu18.04.1+deb.sury.org+1
Python | 3.6.9
MySQL | 10.1.44-MariaDB-0ubuntu0.18.04.1
RRDTool | 1.7.0
SNMP | NET-SNMP 5.7.3
====================================
[OK] Composer Version: 1.10.8
[OK] Dependencies up-to-date.
Checking distributedpoller:^[[A OK
[OK] Connection to memcached is ok
user@librepoll1:/opt/librenms# ./validate.php
====================================
Component | Version
--------- | -------
LibreNMS | 1.64.1
DB Schema | 2020_04_06_001048_the_great_index_rename (165)
PHP | 7.2.31-1+ubuntu18.04.1+deb.sury.org+1
Python | 3.6.9
MySQL | 10.1.44-MariaDB-0ubuntu0.18.04.1
RRDTool | 1.7.0
SNMP | NET-SNMP 5.7.3
====================================
[OK] Composer Version: 1.10.8
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[WARN] Your install is over 24 hours out of date, last update: Mon, 01 Jun 2020 16:24:49 +0000
[FIX]:
Make sure your daily.sh cron is running and run ./daily.sh by hand to see if there are any errors.
[WARN] Your local git branch is not master, this will prevent automatic updates.
[FIX]:
You can switch back to master with git checkout master