After moving to dedicated database server with memcached enabled, i am getting the “Scheduler is not running” error. Everything else seems to be working, polling etc. Even if I check the scheduler service status on my server, I can see it running and doing it’s schedules. The suggested fix has no effect.
[OK] Composer Version: 2.8.4
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database connection successful
[OK] Database Schema is current
[OK] SQL Server meets minimum requirements
[OK] lower_case_table_names is enabled
[OK] MySQL engine is optimal
[OK] Database and column collations are correct
[OK] Database schema correct
[OK] MySQL and PHP time match
[OK] Distributed Polling setting is enabled globally
[OK] Connection to memcached is ok
[OK] Connected to rrdcached
[OK] Active pollers found
[OK] Dispatcher Service not detected
[OK] Locks are functional
[OK] Python poller wrapper is polling
[OK] Redis is unavailable
[OK] rrdtool version ok
[OK] Connected to rrdcached
[FAIL] Scheduler is not running
[FIX]:
sudo cp /opt/librenms/dist/librenms-scheduler.service /opt/librenms/dist/librenms-scheduler.timer /etc/systemd/system/
sudo systemctl enable librenms-scheduler.timer
sudo systemctl start librenms-scheduler.timer
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
I am still wondering is this something i should be worried about? Everything is running well and smooth, no problems anywhere what so ever and the latest major update went fine.
[OK] Composer Version: 2.8.6
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database connection successful
[OK] Database Schema is current
[OK] SQL Server meets minimum requirements
[OK] lower_case_table_names is enabled
[OK] MySQL engine is optimal
[OK] Database and column collations are correct
[OK] Database schema correct
[OK] MySQL and PHP time match
[OK] Distributed Polling setting is enabled globally
[OK] Connection to memcached is ok
[OK] Connected to rrdcached
[OK] Active pollers found
[OK] Dispatcher Service not detected
[OK] Locks are functional
[OK] Python poller wrapper is polling
[OK] Redis is unavailable
[OK] rrdtool version ok
[OK] Connected to rrdcached
[FAIL] Scheduler is not running
[FIX]:
sudo cp /opt/librenms/dist/librenms-scheduler.service /opt/librenms/dist/librenms-scheduler.timer /etc/systemd/system/
sudo systemctl enable librenms-scheduler.timer
sudo systemctl start librenms-scheduler.timer
Yes, you need to enable the librenms-scheduler.timer. It does not do much at this time, but it will do more over time. (one thing it does is update the mac oui database)
Thanks for the info. The problem is that when i execute the suggested fix, nothing seems to happen. Even according to logs the timer runs at set times.
? librenms-scheduler.timer - LibreNMS Scheduler
Loaded: loaded (/etc/systemd/system/librenms-scheduler.timer; enabled; preset: disabled)
Active: active (waiting) since Mon 2025-03-24 04:34:21; 2 days ago
Until: Mon 2025-03-24 04:34:21; 2 days ago
Trigger: Wed 2025-03-26 09:14:00; 48s left
Triggers: ? librenms-scheduler.service
Mar 24 04:34:21 systemd[1]: Started LibreNMS Scheduler.
Thank you! I went to look at that and… oh for crying out loud.
In addition to CACHE_DRIVER in .env I had to add the memcached host and port into the .env
" Using Memcached
Preferably you should set the memcached server settings via the web UI. Under Settings > Global Settings > Distributed poller, you fill out the memcached host and port, and then in your .env file you will need to add: