Unable to update

I have librenms from Ubuntu VM official librenms image

I have disabled automatic updates.
I want to perform a manual update.

./daily.sh does nothing

see below output. running the daily.sh did not update anything

librenms@librenms:~$ ./validate.php
====================================
Component | Version
--------- | -------
LibreNMS  | 21.11.0
DB Schema | 2021_02_09_122930_migrate_to_utf8mb4 (224)
PHP       | 7.4.3
Python    | 3.8.10
MySQL     | 10.3.31-MariaDB-0ubuntu0.20.04.1
RRDTool   | 1.7.2
SNMP      | NET-SNMP 5.8
====================================

[OK]    Composer Version: 2.4.4
[OK]    Dependencies up-to-date.
[OK]    Database connection successful
[OK]    Database schema correct
librenms@librenms:~$ ./daily.sh
Updating SQL-Schema                                OK
Cleaning up DB                                     OK
librenms@librenms:~$ ./validate.php
====================================
Component | Version
--------- | -------
LibreNMS  | 21.11.0
DB Schema | 2021_02_09_122930_migrate_to_utf8mb4 (224)
PHP       | 7.4.3
Python    | 3.8.10
MySQL     | 10.3.31-MariaDB-0ubuntu0.20.04.1
RRDTool   | 1.7.2
SNMP      | NET-SNMP 5.8
====================================

[OK]    Composer Version: 2.4.4
[OK]    Dependencies up-to-date.
[OK]    Database connection successful
[OK]    Database schema correct
librenms@librenms:~$

I have tried the advanced way

cd /opt/librenms
git pull
./scripts/composer_wrapper.php install --no-dev
php includes/sql-schema/update.php
./validate.php

which also does nothing

how can I update ?
thanks

replying to myself:

git repo was not on the master branch.
after checking out to master, update started.

got some errors but this is another story.

I think checking the current branch could be helpful for non-advanced users

Frankly I’m not sure how installs get to be on another branch. I’ve never had it happen. I second this, I think it should be checked in the validate script.

Same, though as an FYI of more use cases, I’m stuck on php73 on a server via the daily script and dependencies, so this is also valid:

librenms@lnms:~$ git branch
  master
  php71-python2
  php72
* php73

librenms@lnms:~$ git rev-parse --abbrev-ref HEAD
php73

librenms@lnms:~$ cat .git/HEAD
ref: refs/heads/php73

librenms@lnms:~$ git remote get-url origin
https://github.com/librenms/librenms.git

Pretty sure I’ve seen newer versions of validate spew out branch warnings in a few posts on here.

1 Like

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