Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WebUI] mdb database statistics don't work #6557

Open
mirielka opened this issue Jan 29, 2025 · 0 comments
Open

[WebUI] mdb database statistics don't work #6557

mirielka opened this issue Jan 29, 2025 · 0 comments
Labels
needs triage The issue will be triaged during scrum

Comments

@mirielka
Copy link
Contributor

mirielka commented Jan 29, 2025

Description of a problem
Monitoring info on database suffix on instance with mdb database does not work.

Version-Release number of the selected component
389-ds-base-3.0.4-3.el10.x86_64
cockpit-389-ds-3.0.4-6.el10dsrv.noarch

Browser (if applicable)
Firefox

Steps to reproduce

  1. Create instance with mdb database
  2. Open WebUI, go to Monitoring tab
  3. Go to Database -> dc=example, dc=com

Actual results
Reports "Loading Suffix Monitor Information ..." and shows Ooops!

Console output:

Uncaught TypeError: n.attrs.dncachehitratio is undefined    
refreshSuffixCache ...:9090/cockpit/@localhost/389-console/index.js:634    
l ...:9090/cockpit/@localhost/389-console/index.js:13    
c ...:9090/cockpit/@localhost/389-console/index.js:13    
i ...:9090/cockpit/@localhost/389-console/index.js:13    
setTimeout handler*s ...:9090/cockpit/@localhost/389-console/index.js:13    
c ...:9090/cockpit/@localhost/389-console/index.js:13    
d ...:9090/cockpit/@localhost/389-console/index.js:13    
resolve ...:9090/cockpit/@localhost/389-console/index.js:13    
spawn ...:9090/cockpit/@localhost/389-console/index.js:14    
TM ...:9090/cockpit/@localhost/389-console/index.js:9    
value ...:9090/cockpit/@localhost/389-console/index.js:9    
h ...:9090/cockpit/@localhost/389-console/index.js:13    
m ...:9090/cockpit/@localhost/389-console/index.js:13    
h ...:9090/cockpit/@localhost/389-console/index.js:12    
dispatch_data ...:9090/cockpit/@localhost/389-console/index.js:12    
pq ...:9090/cockpit/@localhost/389-console/index.js:9index.js:634:38379
CMD: refreshSuffixCache: Get suffix monitor ==> dsconf -j ldapi://%2fvar%2frun%2fslapd-localhost.socket monitor backend dc=example,dc=com

Expected results
Should show monitoring info

Additional information

Error also when trying to display cache statistics in CLI:

# dsconf localhost monitor dbmon
Error: list index out of range

# dsconf localhost monitor backend dc=example,dc=com
dn: cn=monitor,cn=userRoot,cn=ldbm database,cn=plugins,cn=config
readonly: 0
entrycachehits: 308
entrycachetries: 323
entrycachehitratio: 95
currententrycachesize: 49691
maxentrycachesize: 512000
currententrycachecount: 14
maxentrycachecount: -1
... (total 321 lines of output)

When clicking only "Database" in Monitoring tab without going into the suffix, it shows "Cache Hit Ratio NaN%" and all the values are empty.

@mirielka mirielka added the needs triage The issue will be triaged during scrum label Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage The issue will be triaged during scrum
Projects
None yet
Development

No branches or pull requests

1 participant