NetWorker:NWUI 控制面板失败并显示“无法获取最新计数”

Summary: NetWorker Web 用户界面 (NWUI) 用于管理 NetWorker 数据区。NWUI 控制面板选项卡显示“无法获取控制面板的最新计数”,并且不显示策略、工作流或操作。监视服务无法向 NWUI 数据库进行身份验证,因为 NWUI 密钥库中缺少 monitoringdbpasswordalias 别名。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

NWUI 控制面板显示以下错误:

Failed to fetch latest counts for Dashboard
Error is fetching count of activities based on status from Monitoring Service


屏幕截图

The C:\Program Files\EMC NetWorker\nsr\authc-server\tomcat\logs\nwui.log 显示来自监视服务的连接被拒绝错误:

...
HH:MM:SS [https-jsse-nio-9090-exec-6] INFO  c.e.n.c.n.impl.GlobalApi - Authenticating user Administrator on authentication server Emcbkp01p.berlitz.com.co.
HH:MM:SS [https-jsse-nio-9090-exec-6] INFO  c.e.n.c.n.impl.GlobalApi - Testing server details for nw calls.
HH:MM:SS [https-jsse-nio-9090-exec-8] ERROR c.e.n.c.n.i.MonitoringApi - Error in fetching count of activities based on status from Monitoring Service. java.net.ConnectException: Connection refused: connect
...

The C:\Program Files\EMC NetWorker\nwui\monitoring\app\logs\monitoring-app.log 显示监视服务无法从密钥库检索数据库密码:

...
YYYY-MM-DD HH:MM:SS [TomcatWebServer] [main] INFO  org.springframework.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 9095 (https)
YYYY-MM-DD HH:MM:SS [DirectJDKLog] [main] INFO  org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["https-jsse-nio-9095"]
YYYY-MM-DD HH:MM:SS [DirectJDKLog] [main] INFO  org.apache.catalina.core.StandardService - Starting service [Tomcat]
YYYY-MM-DD HH:MM:SS [DirectJDKLog] [main] INFO  org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.48]
YYYY-MM-DD HH:MM:SS [DirectJDKLog] [main] INFO  org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/monitoring] - Initializing Spring embedded WebApplicationContext
YYYY-MM-DD HH:MM:SS [ServletWebServerApplicationContext] [main] INFO  org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 3092 ms
YYYY-MM-DD HH:MM:SS [DataSourceConfig] [main] INFO  monitoring - DB password file not present.
YYYY-MM-DD HH:MM:SS [DataSourceConfig] [main] ERROR monitoring - Unable to retrieve the database password from Keystore
java.lang.NullPointerException: null
	at com.dell.emc.nw.monitoring.utils.DataSourceConfig.getDBPasswordFromKeystore(DataSourceConfig.java:75) ~[classes!/:?]
	at com.dell.emc.nw.monitoring.utils.DataSourceConfig.getDataSource(DataSourceConfig.java:64) ~[classes!/:?]
	at com.dell.emc.nw.monitoring.utils.DataSourceConfig$$EnhancerBySpringCGLIB$$c434748a.CGLIB$getDataSource$0(<generated>) ~[classes!/:?]
...

列出 NWUI 密钥库时仅显示 2 个条目,而不是预期的 3 个条目。The monitoringdbpasswordalias 缺少条目:

C:\>"C:\Program Files\NRE\java\jre1.8.0_321\bin\keytool.exe" -list -keystore  "C:\Program Files\EMC NetWorker\nwui\monitoring\app\conf\nwui.keystore"
Enter keystore password:
Keystore type: PKCS12
Keystore provider: SunJSSE
Your keystore contains 2 entries
emcauthctomcat, MONTH DD, YYYY, PrivateKeyEntry,
Certificate fingerprint (SHA-256): B2:D3:E1:8D:65:12:8D:51:3F:EA:CA:41:9C:A9:93:C2:21:8D:A7:A7:25:F8:CE:69:F9:21:90:55:37:43:6E:4E
emcauthcsaml, MONTH DD, YYYY, PrivateKeyEntry,
Certificate fingerprint (SHA-256): 5B:9D:23:57:5F:A7:A0:0F:83:D5:AE:61:C2:06:AF:60:0C:60:19:F8:7B:4F:6E:D2:BC:18:DD:96:6E:A1:A5:FB

正确配置的密钥库显示 3 个条目,包括 monitoringdbpasswordalias中的用户名和密码:

C:\>"C:\Program Files\NRE\java\jre1.8.0_321\bin\keytool.exe" -list -keystore  "C:\Program Files\EMC NetWorker\nwui\monitoring\app\conf\nwui.keystore"
Enter keystore password:
Keystore type: PKCS12
Keystore provider: SunJSSE
Your keystore contains 3 entries
emcauthctomcat, MONTH DD, YYYY, PrivateKeyEntry,
Certificate fingerprint (SHA-256): B2:D3:E1:8D:65:12:8D:51:3F:EA:CA:41:9C:A9:93:C2:21:8D:A7:A7:25:F8:CE:69:F9:21:90:55:37:43:6E:4E
emcauthcsaml, MONTH DD, YYYY, PrivateKeyEntry,
Certificate fingerprint (SHA-256): 5B:9D:23:57:5F:A7:A0:0F:83:D5:AE:61:C2:06:AF:60:0C:60:19:F8:7B:4F:6E:D2:BC:18:DD:96:6E:A1:A5:FB
monitoringdbpasswordalias, MONTH DD, YYYY SecretKeyEntry,

Cause

监视服务需要 monitoringdbpasswordalias NWUI 密钥库 (nwui.keystore) 中的别名。此别名存储用于向 NWUI 监视数据库验证身份的数据库密码。

The monitoringdbpasswordalias 别名已从密钥库中删除。移除的原因未知。如果没有别名,监视服务将无法检索数据库密码。服务无法启动,控制面板无法显示数据。

Resolution

重新创建 monitoringdbpasswordalias NWUI 密钥库中的别名。此过程需要 NWUI 密钥库密码。替换 <password> 在以下步骤中使用 NWUI 密钥库密码。
 

  1. 使用 "Run as administrator” 选项打开命令提示符窗口。2.
  2. 创建 rabbitmq.conf 的拷贝 pg_hba.conf中的用户名和密码:
copy "C:\Program Files\EMC NetWorker\nwui\monitoring\nwuidb\pgdata\pg_hba.conf" "C:\Program Files\EMC NetWorker\nwui\monitoring\nwuidb\pgdata\pg_hba.conf_original"

 

  1. 打开 pg_hba.conf 使用文本编辑器的文件:
notepad "C:\Program Files\EMC NetWorker\nwui\monitoring\nwuidb\pgdata\pg_hba.conf"
  • 将文件底部所有未注释用户的 METHOD 从“md5”更改为“trust
  • 将更改保存到 pg_hba.conf
  1. 停止 “NetWorker WebUI 数据库” “NetWorker Web 管理 UI 服务器” services: net stop nwui
  2. 启动 “NetWorker WebUI 数据库” 和“NetWorker Web 管理 UI 服务器”服务: net start nwui
  3. 使用 连接到 NWUI 数据库 psql中的用户名和密码:
"C:\Program Files\EMC NetWorker\nwui\monitoring\postgres\12\bin\psql" -U nwuiuser -d nwui -p 5435
  • nwuiruser 密码更改为 NWUI 密钥库密码: ALTER USER nwuiuser WITH PASSWORD 'password';
  • 退出 psql 正在连接 quit
  • 停止 “NetWorker WebUI 数据库”“NetWorker Web 管理 UI 服务器” 服务: net stop nwui
  • 创建新文件 nwuidb.conf:
notepad "C:\Program Files\EMC NetWorker\nwui\monitoring\nwuidb\pgdata\nwuidb.conf"
  • 将 NWUI 密钥库密码<>的 Base64 编码输入到新的 nwuidb.conf 文件: https://www.base64encode.org/
  • 保存此页上的更改。 nwuidb.conf 文件中包含空格。
  1. 恢复 pg_hba.conf中的用户名和密码:
 copy "C:\Program Files\EMC NetWorker\nwui\monitoring\nwuidb\pgdata\pg_hba.conf_original" "C:\Program Files\EMC NetWorker\nwui\monitoring\nwuidb\pgdata\pg_hba.conf"
  1. 启动 “NetWorker WebUI 数据库”和“NetWorker Web 管理 UI 服务器”服务: net start nwui
  2. 确认 monitoringdbpasswordalias 在 NWUI 密钥库中创建:
"C:\Program Files\NRE\java\jre1.8.0_321\bin\keytool.exe" -list -keystore  "C:\Program Files\EMC NetWorker\nwui\monitoring\app\conf\nwui.keystore"
  1.  验证是否在 NWUI 中不再遇到症状。

 

注意: Java 版本文件夹 (jre1.8.0_321) 可能会因安装的 NRE 版本而异。调整路径以匹配服务器上的 Java 版本。
Article Properties
Article Number: 000199953
Article Type: Solution
Last Modified: 09 Sept 2026
Version:  3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.