NetWorker: NWUIダッシュボードが「Failed to fetch latest counts」で失敗する
Summary: NetWorker Webユーザー インターフェイス(NWUI)は、NetWorkerデータゾーンの管理に使用されます。NWUIの[ダッシュボード]タブに「ダッシュボードの最新カウントを取得できませんでした」と表示され、ポリシー、ワークフロー、アクションが表示されません。monitoringdbpasswordaliasエイリアスがNWUIキーストアにないため、モニタリング サービスはNWUIデータベースに対して認証できません。 ...
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キーストアを一覧表示すると、予想される3個ではなく2個のエントリーしか表示されません。『オペレーティングシステム』ディスクはオプションなので、同梱されていないコンピューターもあります。 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 エイリアスがキーストアから削除されました。Unknown - 問題の原因が不明です。エイリアスがないと、モニタリング・サービスはデータベース・パスワードを取得できません。サービスの開始に失敗し、ダッシュボードにデータを表示できません。
Resolution
を再構築します。 monitoringdbpasswordalias NWUIキーストアのエイリアス。この手順では、NWUIキーストアのパスワードが必要です。次の内容を入れ替えます: <password> を使用してNWUIキーストアのパスワードを入力します。
- コマンド プロンプトを[管理者として実行]オプションで開きます。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"
- を開きます
pg_hba.confテキストエディタでファイルを作成します。
notepad "C:\Program Files\EMC NetWorker\nwui\monitoring\nwuidb\pgdata\pg_hba.conf"
- ファイルの下部で、コメント化されていないすべてのユーザーのMETHODを「md5」から「trust」に変更します
- 変更を次の場所に保存します。
pg_hba.conf
- 「NetWorker WebUIデータベース」と「NetWorker Web管理UIサーバー」を停止します
services: net stop nwui - 「NetWorker WebUIデータベース」および「NetWorker Web管理UIサーバー」サービスを開始します。
net start nwui - を使用して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'; - の終了
psqlConnectivity: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ファイルは提供しません。
- 元に戻す
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"
- 「NetWorker WebUIデータベース」および「NetWorker Web管理UIサーバー」サービスを開始します。
net start nwui - 次のことを確認します。
monitoringdbpasswordaliasNWUIキーストアで作成されました。
"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"
- NWUIでこの問題が発生していないことを確認します。