Failed to save users/groups config to backend
Anyone seen the following xormon is installed on same server as stor2rrd.
Checking STOR2RRD settings:
Opening file: /home/stor2rrd/stor2rrd/bin/storage.pl
File /home/stor2rrd/stor2rrd/bin/storage.pl is accessible
Getting STOR2RRD version
Checking Xormon mode
Executing SQLiteDB-test.sh
Getting jquery/mainLib.js
Enabling stor2rrd native UI via settings.sh
Enabling stor2rrd native UI via settings.sh responseStatus: 200 OK body:
Syncing Xormon users & groups
com.xorux.xormon.BackendException: Failed to save users/groups config to backend: {"status":"fail","msg":"
STOR2RRD setup check result: FAIL
Checking STOR2RRD settings:
Opening file: /home/stor2rrd/stor2rrd/bin/storage.pl
File /home/stor2rrd/stor2rrd/bin/storage.pl is accessible
Getting STOR2RRD version
Checking Xormon mode
Executing SQLiteDB-test.sh
Getting jquery/mainLib.js
Enabling stor2rrd native UI via settings.sh
Enabling stor2rrd native UI via settings.sh responseStatus: 200 OK body:
Syncing Xormon users & groups
com.xorux.xormon.BackendException: Failed to save users/groups config to backend: {"status":"fail","msg":"
You are not a member of admins group, you can only change your own settings
"}STOR2RRD setup check result: FAIL
Comments
-
Can you check if user admin has admins group assigned in stor2rrd?
-
In stor2rrd nope it doesn't, but don't see a way of adding it
Login New Full name Email Password Created Last modified Groups admin undefined undefined change never never -
Edit stor2rrd/etc/web_config/users.json and add group admins to admin like:
{
"groups:{
...
}
"users":{
"admin":{
"name":"STOR2RRD Administrator",
"groups":["admins"],
...
-
Before{"groups" : {"ReadOnly" : {"description" : "Member can see everything but nothing can change."}},"users" : {"admin" : {"dashboard" : {"tabs" : [{"name" : "Fabric A","groups" : [
after{"groups" : {"ReadOnly" : {"description" : "Member can see everything but nothing can change."}},"users" : {"admin" : {"dashboard" : {"tabs" : [{"name" : "Fabric A","groups" : ["admins"],
New error is
Checking STOR2RRD settings:
Opening file: /home/stor2rrd/stor2rrd/bin/storage.pl
File /home/stor2rrd/stor2rrd/bin/storage.pl is accessible
Getting STOR2RRD version
com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null') at [Source: (byte[])"Software error:
unexpected end of string while parsing JSON string, at character offset 229 (before "\n ...") at /home/stor2rrd/stor2rrd/bin/Users.pm line 102. Compilation failed in require at /home/stor2rrd/stor2rrd/bin/CustomGroups.pm line 6. BEGIN failed--compilation aborted at /home/stor2rrd/stor2rrd/bin/CustomGroups.pm line 6. Compilation failed in require at /home/stor2rrd/stor2rrd/bin/genjson.pl line 70. BEGIN failed--compilation aborted at /home/s"[truncated 174 bytes]; line: 1, column: 2]
STOR2RRD setup check result: FAIL
Configuration not saved due to above errors. -
File users.json modified previously probably contains invalid string. Can you check syntax e.g. on https://jsonformatter.curiousconcept.com/# or paste it here.
-
- Error: Expecting string, not {. [Code 8, Structure 27]
- Error: Expecting string, not {. [Code 8, Structure 38]
- Error: Expecting string, not {. [Code 8, Structure 116]
- Error: Expecting string, not {. [Code 8, Structure 194]
- Error: Expecting string, not {. [Code 8, Structure 272]
- Error: Expecting string, not {. [Code 8, Structure 1246]
- Error: Expecting comma or }, not ]. [Code 7, Structure 2463]
- Error: Expecting string, not {. [Code 8, Structure 2466]
- Error: Expecting string, not {. [Code 8, Structure 4906]
- Error: Expecting string, not {. [Code 8, Structure 10442]
- Error: Expecting string, not {. [Code 8, Structure 14898]
- Error: Expecting string, not {. [Code 8, Structure 15160]
- Error: Expecting comma or }, not ]. [Code 7, Structure 15217]
- Error: Extra closing } [Code 14, Structure 15225]
- Error: Multiple JSON root elements [Code 22, Structure 15225]
- Error: Extra closing } [Code 14, Structure 15226]
- Error: Multiple JSON root elements [Code 22, Structure 15226]
-
You can try attached file. I have removed ["admins"] from
"users" : {
"admin" : {
"dashboard" : {
"tabs" : [],
{
"name" : "Fabric A",
"groups" : ["admins"],
and added ["admins"] to"users" : {
"admin" : {
"dashboard" : {
...
},
groups: ["admins"]
-
Than very much for your help, I can now see stor2rrd data in xormon.
Howdy, Stranger!
Categories
- 1.6K All Categories
- 41 XORMON NG
- 25 XORMON
- 150 LPAR2RRD
- 13 VMware
- 16 IBM i
- 2 oVirt / RHV
- 4 MS Windows and Hyper-V
- Solaris / OracleVM
- XenServer / Citrix
- Nutanix
- 6 Database
- 2 Cloud
- 10 Kubernetes / OpenShift / Docker
- 122 STOR2RRD
- 19 SAN
- 7 LAN
- 17 IBM
- 3 EMC
- 12 Hitachi
- 5 NetApp
- 15 HPE
- Lenovo
- 1 Huawei
- 1 Dell
- Fujitsu
- 2 DataCore
- INFINIDAT
- 3 Pure Storage
- Oracle