Upgrade version - fatal: not a git repository (or any of the parent directories): .git

Dear,

I get the following error when I try to update librenms.

$ ./daily.sh
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git

root@mob-vlumon-01-cacti:/opt/librenms# ./validate.php

[Composer\Downloader\TransportException]
The “https://getcomposer.org/versions” file could not be downloaded: failed to open stream: Connection timed out

self-update [-r|–rollback] [–clean-backups] [–no-progress] [–update-keys] [–stable] [–preview] [–snapshot] [–1] [–2] [–set-channel-only] [–] []

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

Component Version
LibreNMS 1.58
DB Schema 2019_12_16_140000_create_customoids_table (148)
PHP 7.2.24-0ubuntu0.18.04.7
MySQL 10.1.48-MariaDB-0ubuntu0.18.04.1
RRDTool 1.7.0
SNMP NET-SNMP 5.7.3

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

[OK] Installed from package; no Composer required
[OK] Database connection successful
[OK] Database schema correct
[FAIL] Discovery has not completed in the last 24 hours.
[FIX]:
Check the cron job to make sure it is running and using discovery-wrapper.py
[WARN] IPv6 is disabled on your server, you will not be able to add IPv6 devices.
[WARN] Non-git install, updates are manual or from package

Your installation is not based on Install LibreNMS - LibreNMS Docs so daily.sh won’t work, see the output from validate.php

Thanks for the feedback.

Follow command,

root@mob-vlumon-01-cacti:/opt/librenms# ./validate.php

[Composer\Downloader\TransportException]
The “https://getcomposer.org/versions” file could not be downloaded: failed to open stream: Connection timed out

self-update [-r|–rollback] [–clean-backups] [–no-progress] [–update-keys] [–stable] [–preview] [–snapshot] [–1] [–2] [–set-channel-only] [–] []

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

Component Version
LibreNMS 1.58
DB Schema 2019_12_16_140000_create_customoids_table (148)
PHP 7.2.24-0ubuntu0.18.04.7
MySQL 10.1.48-MariaDB-0ubuntu0.18.04.1
RRDTool 1.7.0
SNMP NET-SNMP 5.7.3

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

[OK] Installed from package; no Composer required
[OK] Database connection successful
[OK] Database schema correct
[FAIL] Discovery has not completed in the last 24 hours.
[FIX]:
Check the cron job to make sure it is running and using discovery-wrapper.py
[WARN] IPv6 is disabled on your server, you will not be able to add IPv6 devices.
[WARN] Non-git install, updates are manual or from package

Yes,

[WARN] Non-git install, updates are manual or from package

daily.sh can’t help you because you don’t have a installation from Installing LibreNMS - LibreNMS Docs

The “https://getcomposer.org/versions” file could not be downloaded: failed to open stream: Connection timed out

This indicates your machine doesn’t have access to internet

Looks like it is installed from FreeBSD ports. You can only update via ports.

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