Daily.sh failed today

Here is the output of my update and fix process. Currents status is that UI show following message.Whoops, looks like something went wrong. Check your librenms.log.

./daily.sh
Updating to latest codebase FAIL
error: Your local changes to the following files would be overwritten by merge:
.editorconfig
.gitignore
.travis.yml
LibreNMS/Alert/Transport/Alertmanager.php
LibreNMS/Alert/Transport/Elasticsearch.php
LibreNMS/Alert/Transport/Mattermost.php
LibreNMS/Util/Laravel.php
LibreNMS/Util/ModuleTestHelper.php
LibreNMS/Validations/Database.php
app/Console/Kernel.php
app/Exceptions/Handler.php
app/Http/Controllers/Auth/RegisterController.php
app/Http/Kernel.php
app/Http/Middleware/EncryptCookies.php
app/Http/Middleware/TrimStrings.php
app/Http/Middleware/VerifyCsrfToken.php
app/Providers/AppServiceProvider.php
app/Providers/EventServiceProvider.php
artisan
bootstrap/app.php
composer.json
composer.lock
config/app.php
config/broadcasting.php
config/cache.php
config/database.php
config/debugbar.php
config/filesystems.php
config/mail.php
config/queue.php
config/services.php
config/session.php
config/trustedproxy.php
config/view.php
database/seeds/DatabaseSeeder.php
doc/Alerting/Creating-Transport.md
doc/Alerting/Templates.md
doc/Extensions/Smokeping.md
doc/Installation/Installation-CentOS-6-Apache-Nginx.md
doc/Installation/Installation-CentOS-7-Apache.md
doc/Installation/Installation-CentOS-7-Nginx.md
doc/Installation/Installation-Ubuntu-1404-Apache.md
doc/Installation/Installation-Ubuntu-1404-Lighttpd.md
doc/Installation/Installation-Ubuntu-1404-Nginx.md
doc/Installation/Installation-Ubuntu-1604-Apache.md
doc/Installation/Installation-Ubuntu-1604-Nginx.md
doc/Installation/Installation-Ubuntu-1804-Apache.md
doc/Installation/Installation-Ubuntu-1804-Nginx.md
doc/Installation/index.md
doc/Support/Adding-a-Device.md
html/includes/forms/convert-template.inc.php
html/legacy_index.php
includes/definitions/cyberpower.yaml
includes/definitions/discovery/saf-cfm.yaml
includes/functions.php
includes/init.php
includes/polling/ports.inc.php
misc/macros.json
misc/os_schema.json
package.json
phpunit.xml
resources/lang/en/validation.php
resources/views/layouts/librenmsv1.blade.php
resources/views/welcome.blade.php
routes/web.php
storage/framework/cache/.gitignore
tests/AlertingTest.php
tests/AuthSSOTest.php
tests/DBSetupTest.php
tests/DocsTest.php
tests/IpTest.php
tests/LockTest.php
tests/RrdtoolTest.php
tests/TestCase.php
tests/bootstrap.php
webpack.mix.js
Please, commit your changes or stash them before you can merge.
error: The following untracked working tree files would be overwritten by merge:
app/Http/Controllers/Auth/VerificationController.php
config/hashing.php
config/logging.php
config/tinker.php
html/images/os/osmc.png
html/svg/403.svg
html/svg/404.svg
html/svg/500.svg
html/svg/503.svg
includes/definitions/discovery/nokia-isam.yaml
includes/definitions/nokia-isam.yaml
includes/discovery/mempools/nokia-isam.inc.php
includes/discovery/sensors/dbm/nokia-isam.inc.php
includes/discovery/sensors/pre-cache/nokia-isam.inc.php
includes/discovery/sensors/state/nokia-isam.inc.php
includes/discovery/sensors/temperature/nokia-isam.inc.php
includes/polling/mempools/nokia-isam.inc.php
includes/polling/os/nokia-isam.inc.php
includes/polling/ports/nokia-isam.inc.php
includes/polling/sensors/state/eds.inc.php
includes/polling/sensors/temperature/eds.inc.php
mibs/nokia/ASAM-ALARM-MIB
mibs/nokia/ASAM-EQUIP-MIB
mibs/nokia/ASAM-SYSTEM-MIB
mibs/nokia/ASAM-TC-MIB
mibs/nokia/ITF-MIB
mibs/nokia/ITF-MIB-EXT
mibs/nokia/SFP-MIB
mibs/nokia/SYSTEM-MIB
resources/js/app.js
resources/js/bootstrap.js
resources/js/components/ExampleComponent.vue
resources/sass/_variables.scss
resources/sass/app.scss
tests/data/nokia-isam.json
tests/snmpsim/nokia-isam.snmprec
Please move or remove them before you can merge.
Aborting
Updating Composer packages OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK

./scripts/github-remove -d
Are you sure you want to delete all modified and untracked files? [y/N] y
Removing app/Http/Controllers/Auth/VerificationController.php
Removing html/images/os/osmc.png
Removing html/svg/
Removing includes/definitions/discovery/nokia-isam.yaml
Removing includes/definitions/nokia-isam.yaml
Removing includes/discovery/mempools/nokia-isam.inc.php
Removing includes/discovery/sensors/dbm/nokia-isam.inc.php
Removing includes/discovery/sensors/pre-cache/nokia-isam.inc.php
Removing includes/discovery/sensors/state/nokia-isam.inc.php
Removing includes/discovery/sensors/temperature/nokia-isam.inc.php
Removing includes/polling/mempools/nokia-isam.inc.php
Removing includes/polling/os/nokia-isam.inc.php
Removing includes/polling/ports/nokia-isam.inc.php
Removing includes/polling/sensors/state/eds.inc.php
Removing includes/polling/sensors/temperature/eds.inc.php
Removing mibs/nokia/ASAM-ALARM-MIB
Removing mibs/nokia/ASAM-EQUIP-MIB
Removing mibs/nokia/ASAM-SYSTEM-MIB
Removing mibs/nokia/ASAM-TC-MIB
Removing mibs/nokia/ITF-MIB
Removing mibs/nokia/ITF-MIB-EXT
Removing mibs/nokia/SFP-MIB
Removing mibs/nokia/SYSTEM-MIB
Removing resources/js/
Removing resources/sass/
Removing tests/data/nokia-isam.json
Removing tests/snmpsim/nokia-isam.snmprec

./daily.sh
Updating to latest codebase FAIL
error: The following untracked working tree files would be overwritten by merge:
config/hashing.php
config/logging.php
config/tinker.php
Please move or remove them before you can merge.
Aborting
Updating Composer packages OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK

-bash-4.2$ ./validate.php

Component Version
LibreNMS 1.48.1-32-g25954cc
DB Schema 2019_01_16_195644_add_vrf_id_and_bgpLocalAs (131)
PHP 7.2.14
MySQL 5.5.60-MariaDB
RRDTool 1.4.8
SNMP NET-SNMP 5.7.2

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

[OK] Composer Version: 1.8.4
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[WARN] Your install is over 24 hours out of date, last update: Mon, 11 Feb 2019 20:17:50 +0000
[FIX]:
Make sure your daily.sh cron is running and run ./daily.sh by hand to see if there are any errors.
[FAIL] We have found some files that are owned by a different user than librenms, this will stop you updating automatically and / or rrd files being updated causing graphs to fail.
[FIX]:
sudo chown -R librenms:librenms /opt/librenms
sudo setfacl -d -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
sudo chmod -R ug=rwX /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
Files:
/opt/librenms/html/plugins/Weathermap
/opt/librenms/html/plugins/Weathermap/.git
/opt/librenms/html/plugins/Weathermap/.git/refs
/opt/librenms/html/plugins/Weathermap/.git/refs/heads
/opt/librenms/html/plugins/Weathermap/.git/refs/heads/master
/opt/librenms/html/plugins/Weathermap/.git/refs/tags
/opt/librenms/html/plugins/Weathermap/.git/refs/remotes
/opt/librenms/html/plugins/Weathermap/.git/refs/remotes/origin
/opt/librenms/html/plugins/Weathermap/.git/refs/remotes/origin/HEAD
/opt/librenms/html/plugins/Weathermap/.git/branches
/opt/librenms/html/plugins/Weathermap/.git/description
/opt/librenms/html/plugins/Weathermap/.git/hooks
/opt/librenms/html/plugins/Weathermap/.git/hooks/applypatch-msg.sample
/opt/librenms/html/plugins/Weathermap/.git/hooks/commit-msg.sample
/opt/librenms/html/plugins/Weathermap/.git/hooks/post-update.sample
and 232 moreโ€ฆ

What to do next ?:confused: Files that are not owned by Librenms are all Weathermap related and should not affect Librenms functionality.

Hello

I had this issue on one machine, and I cannot explain why this one and not the others. It seems that git files were updated but git does not remember about it.

Anyway, ./scripts/github-remove -d is the first step as you already found. And then you can move the last 3 files to /tmp:
config/hashing.php
config/logging.php
config/tinker.php

after this, ./daily.sh should do his magic :wink:

Bye

1 Like

That did it! Thank you!

1 Like