Docker container install - scheduler not running and ServerName

  • Steps to reproduce an issue.
  • The output of ./validate.php

Error1:
FAIL: Scheduler is not running
–I’m not sure how to deploy the recommended fix.

cp /opt/librenms/dist/librenms-scheduler.service /opt/librenms/dist/librenms-scheduler.timer /etc/systemd/system/
systemctl enable librenms-scheduler.timer
systemctl start librenms-scheduler.timer

Error2: FAIL: ServerName is set incorrectly for your webserver, update your webserver config.
– I updated the hostname: variable in the docker compose file as well as the globlal settings, but I still get the error.

Can someone nudge me in the right direction?

exactly same issue here

Here was my fix:

The easy part: ServerName - Use full FQDN in the Specific URL
For example: https://librenms.cooldomain.com/
Left hostname alone

nor for the hard part…

I had to create 2 shell scripts

First one named it: librenmsdockercron.sh
Contents:

15 0 * * * cd /opt/librenms/ && bash daily.sh
*/5 * * * * php -f /opt/librenms/html/plugins/Weathermap/map-poller.php
33   */6  * * *   librenms    /opt/librenms/cronic /opt/librenms/discovery-wrapper.py 1
*/5  *    * * *   librenms    /opt/librenms/discovery.php -h new >> /dev/null 2>&1
*/5  *    * * *   librenms    /opt/librenms/cronic /opt/librenms/poller-wrapper.py 16
*    *    * * *   librenms    /opt/librenms/alerts.php >> /dev/null 2>&1
*/5  *    * * *   librenms    /opt/librenms/poll-billing.php >> /dev/null 2>&1
01   *    * * *   librenms    /opt/librenms/billing-calculate.php >> /dev/null 2>&1
*/5  *    * * *   librenms    /opt/librenms/check-services.php >> /dev/null 2>&1
* * * * * php /opt/librenms/artisan schedule:run

Next shell script named: import-cron.sh
Contents:

#!/bin/sh
# Import cronjob
crontab -u librenms /opt/librenms/cronscript.sh

Next, I edited the docker compose file.
under the librenms section > volumes.
I have this

    volumes:
      - "./librenms:/data"
      - "./librenmsdockercron.sh:/opt/librenms/cronscript.sh"
      - "./import-cron.sh:/etc/cont-init.d/09-import-cron.sh"

This imports both files, and the 2nd file is auto run container is booted.

Hi, can you explain better how to configure the easy part with the error of ServerName? I’ve tried in different ways but i still receive the same error…

Sure,
In the GUI go to: GlobalSettings > System> Server> Specific URL
In that url, include your https://host.domain.com

1 Like

Thank you so much. It works 🫱🏼‍🫲🏼

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