A.1 若 dbauser 密碼和儲存在 .pgpass 檔案中的 dbauser 密碼不相符,則 Sentinel Log Manager 升級將會失敗

問題:

當您升級 Sentinel Log Manager 時,若 dbauser 密碼和儲存於 .pgpass 檔案的 dbauser 密碼不相符,則資料庫升級將會失敗。

此行為會因不同安裝方式而不同:

標準安裝程式: 此升級不會繼續執行,且會顯示指出錯誤原因和解決方式的訊息。

裝置主控台: 將會顯示以下錯誤訊息:

Installing: novell-SLMdb-1.2.0.2-954 [error]
Installation of novell-SLMdb-1.2.0.2-954 failed:
(with --nodeps --force) Error: Subprocess failed. Error: RPM failed: Unable to login to the database, cannot continue with the upgrade. Check if the dbauser password specified in /home/novell/.pgpass is correct and try again.
error: %pre(novell-SLMdb-1.2.0.2-954.x86_64) scriptlet failed, exit status 2
error:   install: %pre scriptlet failed (2), skipping novell-SLMdb-1.2.0.2-954
Abort, retry, ignore? [a/r/i] (a):

WebYaST: WebYaST 會持續指出有可用的更新。您可以查看 /var/opt/novell/sentinel_log_mgr/log/install.log 檔案以了解此錯誤的實際原因。

解決方式:

以目前的 dbauser 密碼更新 .pgpass 檔案中的密碼並繼續升級。如需關於 .pgpass 檔案的詳細資訊,請參閱 PostgreSQL 文件。

若您使用裝置主控台進行升級,請執行下列其中一項操作:

若您使用 WebYaST 進行升級:

  1. 登入裝置主控台。

  2. 更新 /home/novell/.pgpass 檔案中的 dbauser 密碼。

  3. 在 WebYaST 中,按一下「全部更新」以繼續進行升級程序。

    升級完成之後,將會在 WebYaST 中顯示「系統已處於最新狀態」訊息。