NetWorker:NWUI 儀表板失敗,並顯示「無法擷取最新計數」

Summary: NetWorker Web 使用者介面 (NWUI) 可用來管理 NetWorker 資料區。NWUI 儀表板標籤顯示「無法擷取儀表板監控最新的計數」,且未顯示原則、工作流程或動作。監控服務無法驗證 NWUI 資料庫,因為 NWUI 金鑰存放區中缺少監控dbpasswordalias alias。

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


螢幕擷取畫面

可使用 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
...

可使用 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 個。可使用 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 監控資料庫進行身份驗證的資料庫密碼。

可使用 monitoringdbpasswordalias 已從金鑰庫中除去別名。移除的原因不明。如果沒有別名,監控服務將無法檢索資料庫密碼。服務無法啟動,儀錶板無法顯示數據。

Resolution

重新建立 monitoringdbpasswordalias NWUI 金鑰庫中的別名。此程序需要 NWUI 金鑰存放區密碼。取代 <password> 在以下步驟中使用 NWUI 金鑰庫密碼。
 

  1. 使用「以系統管理員身分執行」選項開啟命令提示字元視窗。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"
  • 將檔案底部所有未註解使用者的方法從「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.