Currently having an issue with daily update on my CentOS - 3.10.0-957.5.1.el7.x86_64 #1 SMP.
./validate.php
fatal: Not a valid object name HEAD
fatal: ambiguous argument ‘HEAD’: unknown revision or path not in the working tree.
Use ‘–’ to separate paths from revisions, like this:
‘git […] – […]’
git reset --hard
-bash-4.2$ ./daily.sh
fatal: ambiguous argument ‘HEAD’: unknown revision or path not in the working tree.
Use ‘–’ to separate paths from revisions, like this:
‘git […] – […]’
fatal: ambiguous argument ‘HEAD’: unknown revision or path not in the working tree.
Use ‘–’ to separate paths from revisions, like this:
‘git […] – […]’
warning: ignoring broken ref refs/heads/master.
error: pathspec ‘master’ did not match any file(s) known to git.
fatal: Needed a single revision
Updating to latest codebase FAIL
fatal: No such ref: HEAD
fatal: No such ref: HEAD
You are not currently on a branch. Please specify which
branch you want to merge with. See git-pull(1) for details.
git pull <remote> <branch>
fatal: Needed a single revision
Updating Composer packages OK
fatal: ambiguous argument ‘HEAD’: unknown revision or path not in the working tree.
Use ‘–’ to separate paths from revisions, like this:
‘git […] – […]’
Updated from unset to OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK
-bash-4.2$ git init
Reinitialized existing Git repository in /opt/librenms/.git/
-bash-4.2$ git remote add origin https://github.com/librenms/librenms.git
fatal: remote origin already exists.
You have new mail in /var/spool/mail/librenms
-bash-4.2$ git fetch
-bash-4.2$ git reset --hard origin/master
Checking out files: 100% (9121/9121), done.
error: unable to resolve reference HEAD: No such file or directory
error: Cannot lock the ref ‘HEAD’.
-bash-4.2$ git branch --set-upstream-to=origin/master master
fatal: Failed to resolve HEAD as a valid ref.
-bash-4.2$ git init
Reinitialized existing Git repository in /opt/librenms/.git/
-bash-4.2$ git remote add origin https://github.com/librenms/librenms.git
fatal: remote origin already exists.
-bash-4.2$ git fetch
-bash-4.2$ git reset --hard origin/master
error: unable to resolve reference HEAD: No such file or directory
error: Cannot lock the ref ‘HEAD’.
-bash-4.2$ git branch --set-upstream-to=origin/master master
fatal: Failed to resolve HEAD as a valid ref.
-bash-4.2$ git checkout master
warning: ignoring broken ref refs/heads/master.
error: pathspec ‘master’ did not match any file(s) known to git.
I think that this is for Debian. I have a CentOS, running nginx, PHP 7.2
LibreNMS is an autodiscovering PHP/MySQL-based network monitoring system.
Version - Wed Dec 31 1969 21:00:00 GMT-0300
DB Schema 2019_01_16_195644_add_vrf_id_and_bgpLocalAs (131)
Web Server nginx/1.12.2
PHP 7.2.14
MySQL 5.5.60-MariaDB
RRDtool 1.6.0
-bash-4.2$ ./daily.sh
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
warning: ignoring broken ref refs/heads/master.
error: pathspec 'master' did not match any file(s) known to git.
fatal: Needed a single revision
Updating to latest codebase FAIL
fatal: No such ref: HEAD
fatal: No such ref: HEAD
You are not currently on a branch. Please specify which
branch you want to merge with. See git-pull(1) for details.
git pull <remote> <branch>
fatal: Needed a single revision
Updating Composer packages OK
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Updated from unset to OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK
-bash-4.2$ git fetch origin
-bash-4.2$ git checkout master
warning: ignoring broken ref refs/heads/master.
error: pathspec 'master' did not match any file(s) known to git.
-bash-4.2$ git reset