Symptoms
-
The following error appears repeatedly in `/var/log/opsview/opsview.log`:
METRIC UNKNOWN - RegistryError<status_code=401, error_code=110, index=0, message='The request requires user authentication', raw_message=bytearray(b'{"errorCode":110,"message":"The request requires user authentication","cause":"Insufficient credentials","index":0}
')> - You occasionally see the error `Web exception: Please refer to the system log for more details or contact your System Administrator` in the UI
Cause: Incorrect registry password
Known issue: OP-42928
The setup-monitoring.yml
playbook sets registry password in the file /opt/opsview/monitoringscripts/etc/plugins/self-monitoring/orchestrator.yaml
to the default value opsview
despite this not necessarily being the correct registry password.
Solution
Replace the incorrect password in /opt/opsview/monitoringscripts/etc/plugins/self-monitoring/orchestrator.yaml
with the correct password.
Nonpersistent changes
The following changes may not persist across runs of opsview-deploy. You may need to re-apply these changes each time you run opsview-deploy.
- Log in to the orchestrator as
root
. - Obtain the correct registry password using
awk
:
awk '/opsview_registry_password/ {print $2}' /opt/opsview/deploy/etc/user_secrets.yml
- Open the file
/opt/opsview/monitoringscripts/etc/plugins/self-monitoring/orchestrator.yaml
on your orchestrator with your preferred text editor. - Replace the password in the
registry
section with the password you obtained in step 2. For example,
registry:
host: 127.0.0.1
password: opsview
port: '12379'
provider: etcd
user: opsview
is changed to Text registry: host: 127.0.0.1 password: <correct registry password> port: '12379' provider: etcd user: opsview
Comments
0 comments
Please sign in to leave a comment.