Hi Community,
I just try to manual update by daily.sh and git pull, both update failed.
After run daily.sh, it is nothing change. For git pull, it shows “Nothing to install or update” after composer install.
How can I update LibreNMS version? Many Thanks.
Run daily.sh
[root@librenms librenms]# ./daily.sh
Re-running /opt/librenms/daily.sh as librenms user
Updating SQL-Schema OK
Cleaning up DB OK
Manual git pull
[root@librenms librenms]# composer install --no-dev
Do not run Composer as root/super user! See How do I install untrusted packages safely? Is it safe to run Composer as superuser or root? - Composer for details
LibreNMS\ComposerHelper::preInstall
Loading composer repositories with package information
Installing dependencies from lock file
Nothing to install or update
Generating autoload files
LibreNMS\ComposerHelper::postInstall
Illuminate\Foundation\ComposerScripts::postInstall
php artisan optimize
Generating optimized class loader
The compiled services file has been removed.
To run validate.php
====================================
Component |
Version |
LibreNMS |
1.46 |
DB Schema |
272 |
PHP |
7.2.12a |
MySQL |
5.5.60-MariaDB |
RRDTool |
1.4.8 |
SNMP |
NET-SNMP 5.7.2 |
==================================== |
|
[OK] Composer Version: 1.8.6
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[FAIL] The poller (librenms) has not completed within the last 5 minutes, check the cron job.
[WARN] IPv6 is disabled on your server, you will not be able to add IPv6 devices.
[WARN] Your local git contains modified files, this could prevent automatic updates.
[FIX]:
You can fix this with ./scripts/github-remove
Modified Files:
bootstrap/cache/.gitignore
html/images/manifest.json
includes/definitions.inc.php
includes/definitions/junos.yaml
storage/app/.gitignore
storage/app/public/.gitignore
storage/debugbar/.gitignore
storage/framework/cache/.gitignore
storage/framework/sessions/.gitignore
storage/framework/testing/.gitignore
storage/framework/views/.gitignore
storage/logs/.gitignore
Don’t run LibreNMS commands as root. (use su - librenms
or sudo -i -u librenms
)
It is same result when I run two method as librenms.
probably because you have a conflict with local changes, as validate.php states.
running git pull
by hand (as the librenms user) should show you a little more info
@murrant Here is the git pull
result. It shows Nothing to install or update
when composer the code.
bash-4.2$ pwd
/opt/librenms
bash-4.2$ git pull
remote: Enumerating objects: 602, done.
remote: Counting objects: 100% (602/602), done.
remote: Total 709 (delta 601), reused 602 (delta 601), pack-reused 107
Receiving objects: 100% (709/709), 283.61 KiB | 300.00 KiB/s, done.
Resolving deltas: 100% (627/627), completed with 501 local objects.
From GitHub - librenms/librenms: Community-based GPL-licensed network monitoring system
d8931e1…f3ba894 master → composer/master
Updating bd5e692…f3ba894
error: Your local changes to the following files would be overwritten by merge:
includes/definitions.inc.php
storage/debugbar/.gitignore
storage/framework/cache/.gitignore
tests/snmpsim/junos.snmprec
Please, commit your changes or stash them before you can merge.
Aborting
bash-4.2$ composer install --no-dev
LibreNMS\ComposerHelper::preInstall
Loading composer repositories with package information
Installing dependencies from lock file
Nothing to install or update
Generating autoload files
LibreNMS\ComposerHelper::postInstall
Illuminate\Foundation\ComposerScripts::postInstall
php artisan optimize
Generating optimized class loader
The compiled services file has been removed.
How can I update it? Thanks.
Remove your file changes as suggested by ./validate.php. Run ./scripts/github-remove
Did something change with daily.sh ?
For what it’s worth, running it a couple days ago and before that it did the git pull and everything. But now it’s as albee pasted, SQL-Schema and DB Clean. Nothing else, and unlike his report, no errors, no validate.php issues.
Running git pull and composer install works fine outside of daily.sh though, so you can still update the install, just not through daily.sh.
Ah, perfect, thanks Kevin
Thanks Murrant.
Remove all change file is work, I use git checkout -- <file>
to discard changes.