Auto update has failed

Hello LibreNMS Team,

First, thank you very much, it is a great tool :slight_smile:

Yet I have an issue : the automatic update systematically fails and I get the following error every day :

[LibreNMS] Auto update has failed
fatal: unable to access ‘https://github.com/librenms/librenms.git/’: Failed to connect to github.com port 443: Connection timed out

We I manually trigger daily.sh it works perfectly.
I do use a proxy, it is configured in th system and in config.php.

Any idea where the problem could be?

We purely do a git pull as the librenms user, this means you must have a working proxy setup for that user (not LibreNMS related so config.php doesn’t have any effect).

Thank you for the confirmation, it is what I suspected.

Is there a difference between the automatic update and the daily.sh script? When I execute the daily.sh script with the librenms user, it just works:

[email protected]:~> ./daily.sh
Updating to latest codebase OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK

You get a full login environment (which probably has the proxy vars set) when you manually log in.

You’ll need to explicitly prefix them on the cron job I think.

Indeed, running daily.sh as root fails (cannot fetch the latest codebase).
We will correct the configuration, thank you for the clue :wink:

daily.sh should never be run as root, that breaks permissions.

If you have any questions about how to fix issues, ask here or IRC.