[SOLVED] Poller: ERROR: Could not load or parse configuration, are PATHs correct?

Hi,

after reboot all poller won’t work. When I try to start service wia systemd:
May 2 14:55:47 dss-p2 systemd[1]: Started LibreNMS SNMP Poller Service.
May 2 14:55:47 dss-p2 poller-service: INFO: Starting poller-service
May 2 14:55:47 dss-p2 poller-service: ERROR: Could not load or parse configuration, are PATHs correct?
May 2 14:55:47 dss-p2 systemd[1]: librenms-poller-service.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
May 2 14:55:47 dss-p2 systemd[1]: librenms-poller-service.service: Unit entered failed state.
May 2 14:55:47 dss-p2 systemd[1]: librenms-poller-service.service: Failed with result ‘exit-code’.
May 2 14:55:49 dss-p2 systemd[1]: librenms-poller-service.service: Service hold-off time over, scheduling restart.
May 2 14:55:49 dss-p2 systemd[1]: Stopped LibreNMS SNMP Poller Service.
May 2 14:55:49 dss-p2 systemd[1]: Started LibreNMS SNMP Poller Service.
May 2 14:55:49 dss-p2 poller-service: INFO: Starting poller-service
May 2 14:55:49 dss-p2 poller-service: ERROR: Could not load or parse configuration, are PATHs correct?
May 2 14:55:49 dss-p2 systemd[1]: librenms-poller-service.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
May 2 14:55:49 dss-p2 systemd[1]: librenms-poller-service.service: Unit entered failed state.
May 2 14:55:49 dss-p2 systemd[1]: librenms-poller-service.service: Failed with result ‘exit-code’.

now service flapping. Start and died in loop. Manual poller.php -h work.

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

Component Version
LibreNMS 1.39-5-gf568adf
DB Schema 249
PHP 7.0.28-0ubuntu0.16.04.1
MySQL 5.7.21-20-log
RRDTool 1.5.5
SNMP NET-SNMP 5.7.3

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

[OK] Composer Version: 1.6.4
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[FAIL] The poller (dss-p1) has not completed within the last 5 minutes, check the cron job.
[FAIL] The poller (dss-p2) has not completed within the last 5 minutes, check the cron job.
[WARN] Some devices have not been polled in the last 5 minutes. You may have performance issues.

systemd service:
[Unit]
Description=LibreNMS SNMP Poller Service
After=network.target

[Service]
ExecStart=/opt/librenms/poller-service.py
WorkingDirectory=/opt/librenms
User=librenms
Group=librenms
RestartSec=2
Restart=always

[Install]
WantedBy=multi-user.target

Until reboot all works OK. Telnet to memcache and rrdcached works.
Please help - this is big system.

Sorry my fault. Typo in config.php

I’m having this same issue. May I ask where your typo was?

in my case different quota sign. “text” or ”text ”.

ugh. sadly the same here. Something changed my apostrophes to smart quotes somewhere along the way.

For anyone who stumbles on this in the future via googling:
Dispatcher service on RHEL 7 error with unable to read char from .env was NOT a permission, umask, etc thing for me, if config_to_json hits a smartquote, it returns the config to the script as ‘’. Thus a broken poller service. BLAH.

Also if you see a bunch of rrd faults in your logs, try manually compiling rrdtool to 1.7.2 (or to whatever the other pollers are using in a distributed poller setup).

Thanks for getting back to me quartist.