當您升級 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 文件。
若您使用裝置主控台進行升級,請執行下列其中一項操作:
輸入 a 以中止安裝,更新 /home/novell/.pgpass 檔案中的密碼,然後執行 Zypper 修補程式以繼續升級。
開啟另一個主控台,然後在 /home/novell/.pgpass 檔案中更新密碼。在升級主控台中輸入 r 以繼續升級。
輸入 i 以忽略錯誤訊息並繼續安裝。升級完成之後,更新 /home/novell/.pgpass 檔案中的密碼,然後執行主控台中的 Zypper 修補程式以完成升級程序。
若您使用 WebYaST 進行升級:
登入裝置主控台。
更新 /home/novell/.pgpass 檔案中的 dbauser 密碼。
在 WebYaST 中,按一下以繼續進行升級程序。
升級完成之後,將會在 WebYaST 中顯示「系統已處於最新狀態」訊息。