Hello
I installed librenms. I checked the following errors, and I’m inquiring about a solution. Thank you.
====================================
Component | Version |
---|---|
LibreNMS | 21.12.0-4-g4b64d33d1 |
DB Schema | 2021_25_01_0129_isis_adjacencies_nullable (229) |
PHP | 7.4.3 |
Python | 3.8.10 |
MySQL | 10.3.32-MariaDB-0ubuntu0.20.04.1 |
RRDTool | 1.7.2 |
SNMP | 5.8 |
====================================
[OK] Composer Version: 2.2.3
[OK] Dependencies up-to-date.
[FAIL] APP_KEY does not match key used to encrypt data. APP_KEY must be the same on all nodes.
[FIX]:
If you rotated APP_KEY, run lnms key:rotate to resolve.
[OK] Database connection successful
[OK] Database schema correct
[email protected]:~$ ./lnms key:rotate
Either old key or --generate-new-key is required.
[email protected]:~$ ./lnms key:rotate --generate-new-key
Old key: base64:eHSfAEyuIjgLRQhBdMGVFB/WGBfs+6wd/i+mEwnfUR4=
New key: base64:Wn8T5vNFuVT49aPhEgnqGTpM6R6RcAuYgAXoGx7AlK4=
Document BOTH keys! In case something goes wrong set the new key in .env and use the old key as an argument to this command
This command could cause irreversible loss of data and will invalidate all browser sessions. Make sure you have backups.
I have backups and want to continue (yes/no) [no]:
yes
Failed to decrypt validation.encryption.test, skipping
Old key: base64:eHSfAEyuIjgLRQhBdMGVFB/WGBfs+6wd/i+mEwnfUR4=
New key: base64:Wn8T5vNFuVT49aPhEgnqGTpM6R6RcAuYgAXoGx7AlK4=
Failed to decrypt item(s). Set new key as APP_KEY and run this again with the old key as an argument.
[email protected]:~$