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 ‘’: Failed to connect to port 443: Connection timed out

We I manually trigger 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 script? When I execute the script with the librenms user, it just works:

[email protected]:~> ./
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 as root fails (cannot fetch the latest codebase).
We will correct the configuration, thank you for the clue :wink: should never be run as root, that breaks permissions.

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