I tried updating by using the commands
su - librenms
git pull
./daily.sh
as in the banner in this forum, and it failed like this:
librenms@librenms:~$ ./daily.sh
In AppServiceProvider.php line 43:
Call to undefined method Illuminate\Pagination\Paginator::useBootstrap()
Updating SQL-Schema OK
Cleaning up DB OK
In AppServiceProvider.php line 43:
Call to undefined method Illuminate\Pagination\Paginator::useBootstrap()
librenms@librenms:~$
I’m on Ubuntu. I did an apt update;apt upgrade and rebooted, and tried again. Same.
Any suggestions?
I tried putting more information in the subject, but the forum would not let me. It was trying to grammar-check the subject.
I was a bit desperate so I bashed out this fix:
librenms@librenms:~$ git rev-list --tags --max-count=1
0ac05fda69b2a56f775d8c3ae2a41a3c58ef452c
librenms@librenms:~$ git describe 0ac05fda69b2a56f775d8c3ae2a41a3c58ef452c
1.66-237-g0ac05fda6
librenms@librenms:~$ git checkout 1.66-237-g0ac05fda6
Note: checking out ‘1.66-237-g0ac05fda6’.
You are in ‘detached HEAD’ state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b
HEAD is now at 0ac05fda6 Bump version to 1.69
librenms@librenms:~$ git fetch --tags
librenms@librenms:~$ git status
HEAD detached at 0ac05fda6
nothing to commit, working tree clean
librenms@librenms:~$ ./daily.sh
Fetching new release information OK
Updating to latest release OK
Updating Composer packages OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK
librenms@librenms:~$
librenms@librenms:~$
and now I seem to be running again. What did I do?
It was expected this upgrade due to Laravel changes.
But it should just continue with the update as normal.
running “git pull” before Daily.sh doesn’t make sense and Isnt part of the offical documention; https://docs.librenms.org/General/Updating/
I had this problem too, and as others have replied, it needs php 7.3 - I wish there had been a check for this - my monitoring has been broken for days and I never realised ;(
Follow this to enable the php7.3 repository if you’re using the VM: https://blog.remirepo.net/post/2018/12/10/Install-PHP-7.3-on-CentOS-RHEL-or-Fedora
You will also need to disable the “webtatic” repo : yum-config-manager --disable webtatic
or it will complain.