High Availability devices, only one device can be added

@TheGreatDoc Thanks, I just tried running sudo su - librenms and now i see librenms@servername.

@TheGreatDoc

Ok, good news, one system is fully up to date and I see the duplicate name option in the settings section, that you pointed out. (ubuntu 18)

Bad news, my second system is receiving two warnings. Both warnings are under the update section. One fix is to run ./daily.sh by hand, which I am, and I am not receiving any errors.

The other is to update PHP, which I’m not sure how to do, yet. I’d like to solve the ./daily.sh error before tackling the PHP update. (ubuntu 16)

Thanks.

What error do you get?

No error, just the two warnings I posted above.

Thanks.

I re-checked the topic and you didnt pasted the warnings. Could you paste them?

I can post the warnings tomorrow (I don’t have access to that system, at this time), but the quick version is, run ./daily.sh by hand and check for errors (I manually ran ./daily.sh, no errors).

The other was that PHP is out of date and needs to be updated.

Thanks.

Ok, post them when you can and we will go from there, but probably that install is moved to php72-python2 branch if your php is < 7.3 and python < 3.4 iirc

@TheGreatDoc

I am having issues, again. Everything has been working since my last post from back in July. When I logged into librenms, it gave me a PHP warning. It hasn’t been updated since November 3, here is where I am at…

librenms@librenms1:~$ ./daily.sh
Updating to latest codebase OK
Updating Composer packages OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK
librenms@librenms1:~$ ./validate.php

Component Version
LibreNMS 1.69-1-gbc02ab3f6
DB Schema 2020_07_27_00522_alter_devices_snmp_algo_columns (188)
PHP 7.2.24-0ubuntu0.18.04.7
Python 3.6.9
MySQL 10.1.47-MariaDB-0ubuntu0.18.04.1
RRDTool 1.7.0
SNMP NET-SNMP 5.7.3
OpenSSL

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

[OK] Composer Version: 1.10.17
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[WARN] PHP version 7.3 is the minimum supported version as of November, 2020. We recommend you update PHP to a supported version (7.4 suggested) to continue to receive updates. If you do not update PHP, LibreNMS will continue to function but stop receiving bug fixes and updates.
[WARN] Your install is over 24 hours out of date, last update: Tue, 03 Nov 2020 01:56:49 +0000
[FIX]:
Make sure your daily.sh cron is running and run ./daily.sh by hand to see if there are any errors.
[WARN] Your local git branch is not master, this will prevent automatic updates.
[FIX]:
You can switch back to master with git checkout master
librenms@librenms1:~$ git checkout master
Switched to branch ‘master’
Your branch is behind ‘origin/master’ by 73 commits, and can be fast-forwarded.
(use “git pull” to update your local branch)
librenms@librenms1:~$ git pull
Updating bc02ab3f6…e2fb7ba63
Checking out files: 100% (1116/1116), done.
Fast-forward
.github/ISSUE_TEMPLATE/New-Device.md | 2 ±
.github/PULL_REQUEST_TEMPLATE.md | 2 ±
.
.
.
REMOVED LINES TO SAVE SPACE
.
.
.

librenms@librenms1:~$
librenms@librenms1:~$
librenms@librenms1:~$ git checkout master
Already on ‘master’
Your branch is up to date with ‘origin/master’.
librenms@librenms1:~$ ./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@librenms1:~$ ./validate.php

In AppServiceProvider.php line 43:

Call to undefined method Illuminate\Pagination\Paginator::useBootstrap()

PHP Fatal error: Uncaught ErrorException: Undefined index: openssl_ver in /opt/librenms/validate.php:167
Stack trace:
#0 /opt/librenms/validate.php(167): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(8, ‘Undefined index…’, ‘/opt/librenms/v…’, 167, Array)
#1 /opt/librenms/validate.php(84): print_header(Array)
#2 [internal function]: {closure}()
#3 {main}
thrown in /opt/librenms/validate.php on line 167
librenms@librenms1:~$

EDIT- The librenms GUI is not responsive, I did take a snapshot of this VM prior to running those commands. Not sure if this can be fixed in the current state or if I need to revert from the snapshot.

@TheGreatDoc I have resorted the VM to the snapshot just before I ran the commands that caused those errors and for the librenms web GUI to break. If you see this and are able to assist, I can start from the beginning to avoid causing those errors to the system. If I don’t hear anything, I’ll have to let it run as is w/o any updates, unfortunately. Thanks.

try running ./scripts/composer_wrapper.php install --no-dev

@TheGreatDoc does this need to be done as the librenms user?

yes, as librenms user

@TheGreatDoc I am logged in as librenms user, but I’m not sure where to run the command. I can see the composer_wrapper.php file listed in the directory I am in, but I don’t think I am in the right place.
Thanks.

In the librenms directory /opt/librenms if using default, run the command I told you ./scripts/composer_wrapper.php install --no-dev

@TheGreatDoc

Thanks, obviously I was in the wrong place.

librenms@librenms1:~$ ./scripts/composer_wrapper.php install --no-dev

LibreNMS\ComposerHelper::preInstall
Loading composer repositories with package information
Installing dependencies from lock file
Nothing to install or update
Generating optimized autoload files
Deprecation Notice: Class Crypt_CHAP_MD5 located in ./vendor/dapphp/radius/lib/Pear_CHAP.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///opt/librenms/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Crypt_CHAP_MSv1 located in ./vendor/dapphp/radius/lib/Pear_CHAP.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///opt/librenms/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Crypt_CHAP_MSv2 located in ./vendor/dapphp/radius/lib/Pear_CHAP.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///opt/librenms/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Illuminate\Foundation\ComposerScripts::postAutoloadDump
@php artisan package:discover --ansi
Discovered Package: darkghosthunter/larapoke
Discovered Package: fideloper/proxy
Discovered Package: fruitcake/laravel-cors
Discovered Package: laravel/tinker
Discovered Package: laravel/ui
Discovered Package: librenms/laravel-vue-i18n-generator
Discovered Package: nesbot/carbon
Discovered Package: oriceon/toastr-5-laravel
Discovered Package: tightenco/ziggy
Discovered Package: wpb/string-blade-compiler
Package manifest generated successfully.
49 packages you are using are looking for funding.
Use the composer fund command to find out more!
LibreNMS\ComposerHelper::postInstall
Illuminate\Foundation\ComposerScripts::postInstall
@php artisan vue-i18n:generate --multi-locales --format=umd
@php artisan view:cache
Compiled views cleared!
Blade templates cached successfully!
@php artisan optimize
Configuration cache cleared!
Configuration cached successfully!
Route cache cleared!
Routes cached successfully!
Files cached successfully!
@php artisan config:clear
Configuration cache cleared!
scripts/check_requirements.py || pip3 install --user -r requirements.txt || :
librenms@librenms1:~$

@TheGreatDoc Does that output help? Which command should I run next? Thanks.

That commands is to try to fix the error you post before.

So move to master branch then just run ./daily.sh instead git pull.

Ok, I ran ./daily.sh to see where I am at.

librenms@librenms1:~$ ./daily.sh
Updating to latest codebase OK
Updating Composer packages OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK
librenms@librenms1:~$ ./validate.php

Component Version
LibreNMS 1.69-1-gbc02ab3f6
DB Schema 2020_07_27_00522_alter_devices_snmp_algo_columns (188)
PHP 7.2.24-0ubuntu0.18.04.7
Python 3.6.9
MySQL 10.1.47-MariaDB-0ubuntu0.18.04.1
RRDTool 1.7.0
SNMP NET-SNMP 5.7.3
OpenSSL

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

[OK] Composer Version: 1.10.19
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[WARN] PHP version 7.3 is the minimum supported version as of November, 2020. We recommend you update PHP to a supported version (7.4 suggested) to continue to receive updates. If you do not update PHP, LibreNMS will continue to function but stop receiving bug fixes and updates.
[WARN] Your install is over 24 hours out of date, last update: Tue, 03 Nov 2020 01:56:49 +0000
[FIX]:
Make sure your daily.sh cron is running and run ./daily.sh by hand to see if there are any errors.
[WARN] Your local git branch is not master, this will prevent automatic updates.
[FIX]:
You can switch back to master with git checkout master

------------------then i switched to master branch----------------------

librenms@librenms1:~$ git checkout master
Switched to branch ‘master’
Your branch is behind ‘origin/master’ by 74 commits, and can be fast-forwarded.
(use “git pull” to update your local branch)

----------------------then I ran ./daily.sh, as suggested------------------------

librenms@librenms1:~$ ./daily.sh
Unsupported PHP version, switched to php72 branch. OK
Updating to latest codebase OK
Updating Composer packages OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK

---------------------then I ran ./validate.php----------------------------

librenms@librenms1:~$ ./validate.php

Component Version
LibreNMS 1.69-1-gbc02ab3f6
DB Schema 2020_07_27_00522_alter_devices_snmp_algo_columns (188)
PHP 7.2.24-0ubuntu0.18.04.7
Python 3.6.9
MySQL 10.1.47-MariaDB-0ubuntu0.18.04.1
RRDTool 1.7.0
SNMP NET-SNMP 5.7.3
OpenSSL

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

[OK] Composer Version: 1.10.19
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[WARN] PHP version 7.3 is the minimum supported version as of November, 2020. We recommend you update PHP to a supported version (7.4 suggested) to continue to receive updates. If you do not update PHP, LibreNMS will continue to function but stop receiving bug fixes and updates.
[WARN] Your install is over 24 hours out of date, last update: Tue, 03 Nov 2020 01:56:49 +0000
[FIX]:
Make sure your daily.sh cron is running and run ./daily.sh by hand to see if there are any errors.
[WARN] Your local git branch is not master, this will prevent automatic updates.
[FIX]:
You can switch back to master with git checkout master
librenms@librenms1:~$

This is where I am at, now, I thought I just switched to master, but it gives me that same warning, again.

Stuck in the same spot.

What should I try next? Thanks.

Oh dude, how I did not saw that.

You are running php 7.2 and the last supported version is 7.3

Exactly and I’m not sure how to upgrade PHP, which is what I need help with.

Thanks.