Daily Update Failed - You are not currently on a branch

I am getting following error for daily update script. Need help sorting this out.

$ sudo ./daily.sh
Re-running /opt/librenms/daily.sh as librenms user
Checking PHP version OK
Updating to latest codebase FAIL
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>

Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK

Following is update of validate

$ sudo ./validate.php

Component Version
LibreNMS 1.36
DB Schema 232
PHP 7.0.27
MySQL 5.5.56-MariaDB
RRDTool 1.4.8
SNMP NET-SNMP 5.7.2

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

[OK] Database connection successful
[OK] Database schema correct

Run git status and pastebin the output

Here’s the required output

$ sudo git status
# HEAD detached at 1.36
nothing to commit, working directory clean

Try running git fetch --tags && git checkout 1.36.01

1 Like

Thanks alot. This solved the issue. Now daily.sh running properly.

$ git fetch --tags && git checkout 1.36.01
Previous HEAD position was 92e1048… fix: Make consistent with other authorisers (#8151)
HEAD is now at ff92960… fix: daily.sh Updated to resolve release version issues (#8172)

$ ./daily.sh
Updating to latest release OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK