Librenms poller-wrapper stop working

Hi Everybody,

My librenms system stop polling . :frowning: Any idea ?

librenms@xxx:~$ ./validate.php

Component Version
LibreNMS 21.10.0-44-g688ec422d
DB Schema 2021_10_20_224207_increase_length_of_attrib_type_column (224)
PHP 7.4.16
Python 3.5.3
MySQL 10.2.27-MariaDB-10.2.27+maria~stretch
RRDTool 1.6.0
SNMP NET-SNMP 5.7.3

====================================

[OK] Composer Version: 2.1.9
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[WARN] IPv6 is disabled on your server, you will not be able to add IPv6 devices.
librenms@xxx:~$ ./daily.sh
Updating to latest codebase OK
Updating Composer packages OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK
Caching Mac OUI data OK
librenms@xxx:~$ ./poller-wrapper.py -d 16
Traceback (most recent call last):
File “/var/www/html/librenms/LibreNMS/init.py”, line 156, in get_config_data
import dotenv
ImportError: No module named ‘dotenv’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “./poller-wrapper.py”, line 38, in
config = LibreNMS.get_config_data(os.path.dirname(os.path.realpath(file)))
File “/var/www/html/librenms/LibreNMS/init.py”, line 164, in get_config_data
except (ImportError, ModuleNotFoundError) as exc:
NameError: name ‘ModuleNotFoundError’ is not defined

Apparently you either you need to install python-dotenv or update to python 3.6

Thanx. :slight_smile:
It was installed two version of python. The default version was 2.7
I have changed to version 3.5 and poller started work again. :slight_smile:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.