WebSphere WebSphere Enterprise Service Bus, Version 6.0.1 作業系統: AIX, HP-UX, Linux, Solaris, Windows

疑難排解安裝

在您安裝 WebSphere ESB 時如果遇到問題,您可以使用一系列活動和工具來疑難排解和解決問題。

執行這項作業的原因和時機

當安裝未順利完成時,請使用這個主題來診斷可能的問題。安裝程式會將以下的成功指示器記錄在主要日誌檔尾端, 這可在 install_root/logs/wbi/log.txt(若為 Linux 與 UNIX 平台)或 install_root\logs\wbi\log.txt(若為 Windows 平台)中找到: 如果結果是 INSTCONFPARTIALSUCCESSINSTCONFFAILED, 請遵循下列這些步驟,繼續分析問題:

這項作業的步驟

  1. 如果安裝程序顯示任何錯誤訊息,請檢查錯誤訊息:安裝、設定檔的建立和擴增以取得說明。

    如果訊息對應至上述任一項,請更正問題,清理任何已安裝的部分, 然後試著重新安裝。

    有關如何在重新安裝之前,解除安裝任何仍已安裝的部分, 請參閱在解除安裝失敗後準備重新安裝

  2. 判斷 WebSphere Application Server Network Deployment 是否安裝成功。 如果 WebSphere ESB 安裝失敗, 請先檢查 install_root/logs/log.txt(若為 Linux 與 UNIX 平台)或 install_root\logs\log.txt(若為 Windows 平台)中是否有錯誤, 以判斷 WebSphere Application Server Network Deployment 是否安裝成功。
    • 如果 WebSphere Application Server Network Deployment 安裝失敗, 請檢視 WebSphere Application Server Network Deployment疑難排解安裝資訊。請使用該處中的資訊來更正問題, 然後再試著重新安裝 WebSphere ESB
    • 如果 WebSphere Application Server Network Deployment 安裝成功,但 WebSphere ESB 安裝失敗, 請使用以下的疑難排解資訊來更正問題。
  3. 在安裝後,請檢查 WebSphere ESB 安裝日誌檔,看看有無錯誤。

    請參閱日誌檔,取得所建立之各種日誌檔的名稱、位置和說明。請依序檢查如下的日誌檔:

    LINUX platforms UNIX platforms Linux 與 UNIX 平台:
    1. install_root/logs/wbi
    2. %tmp%(如果在 install_root/logs/wbi 中找不到任何檔案的話)
    3. install_root/logs/wasprofile/wasprofile_create_ profile_name.log install_root/logs/wasprofile/wasprofile_augment_ profile_name.log。 如果您執行的是「完整安裝」(這會建立一個名為 default 的獨立式伺服器), 則 profile_name 的值會是 default
    4. 安裝動作所產生的其他任何日誌或追蹤檔。請查看 install_root/logs/wbi, 找出在安裝(或解除安裝)程序期間所產生的追蹤檔。請查看 profile_root/logs, 找出設定檔建立或擴增程序所產生的這些檔案,其中 profile_root 代表 WebSphere ESB 設定檔的安裝位置(依預設,在 Linux 與 UNIX 平台上為 install_root/profiles/profile_name)。這些檔案主要是供 IBM 技術支援人員使用。
    For Windows platforms Windows 平台:
    1. install_root\logs\wbi
    2. %tmp%(如果在 install_root\logs\wbi 中找不到任何檔案的話)
    3. install_root\logs\wasprofile\wasprofile_create_ profile_name.log install_root\logs\wasprofile\wasprofile_augment_ profile_name.log。 如果您執行的是「完整安裝」(這會建立一個名為 default 的獨立式伺服器), 則 profile_name 的值會是 default
    4. 安裝動作所產生的其他任何日誌檔。請查看 install_root\logs\wbi, 找出在安裝(或解除安裝)程序期間所產生的追蹤檔。請查看 profile_root\logs, 找出設定檔建立或擴增程序所產生的這些檔案,其中 profile_root 代表 WebSphere ESB 設定檔的安裝位置(依預設,在 Windows 平台上為 install_root\profiles\profile_name)。這些檔案主要是供 IBM 技術支援人員使用。
  4. 如果安裝日誌中沒有任何資訊,請在回應檔中使用 -log 參數。
    某些事件可能會使 InstallShield for Multiplatforms (ISMP) 無法啟動安裝精靈。比方說,沒有足夠的磁碟空間來啟動安裝精靈之類的事件。如果安裝失敗, 但安裝日誌中沒有資訊, 請在回應檔中使用 -log 參數來記錄導致 ISMP 程式無法啟動安裝精靈的事件項目。這會使用下列任何回應檔之一:
    • responsefile.esb.txt
    • responsefile.pcaw.esb.standAloneProfile.txt
    • responsefile.pcaw.esb.dmgrProfile.txt
    • responsefile.pcaw.esb.managedProfile.txt

    如需回應檔的相關資訊,請參閱無聲自動安裝 WebSphere ESB

    您必須將 WebSphere ESB CD 1 中的回應檔複製到您系統的硬碟上以便使用它。有關可記載這類事件的 install 指令語法, 請見下列範例(您的回應檔和日誌檔路徑,以及實際的回應檔名稱可能不同):

    For AIX platforms AIX 平台:
    install -options "/usr/IBM/WebSphere/silentFiles/myresponsefile.txt" 
            -silent -log # !/usr/IBM/WebSphere/myOptionFiles/log.txt  @ALL
    LINUX platforms Solaris platforms HP-UX、Linux 和 Solaris 平台:
    install -options "/opt/IBM/WebSphere/silentFiles/myresponsefile.txt" 
            -silent -log # !/opt/IBM/WebSphere/myOptionFiles/log.txt  @ALL
    For Windows platforms Windows 平台:
    install.exe -options "C:\IBM\WebSphere\silentFiles\myresponsefile.txt" 
                -silent -log # !C:\IBM\WebSphere\silentFiles\log.txt  @ALL
  5. 判斷安裝問題是否是因配置 Script 執行失敗所致。

    install_root/logs/wbi/instconfig.log 檔(若為 Linux 與 UNIX 平台)或 install_root\logs\wbi\instconfig.log 檔(若為 Windows 平台)會指出可能讓產品無法正確運作的配置問題。請在動作失敗字串中找出失敗之配置 Script 的名稱。

  6. 確認 install_root/classes 目錄中沒有檔案存在。

    IBM 支援中心有時候會將客戶的工作排入佇列中,提供測試或除錯修正程式。修正程式的一般位置是在 install_root/classes 目錄下。

    依預設,會先在 WebSphere ESB 類別路徑上挑選 install_root/classes 目錄, 用它來置換其他類別。

    在這個目錄中放置修正程式,可讓您確認修正程式的確可以解決您的問題。 在確認修正程式可解決問題之後,您應從 install_root/classes 目錄中刪除修正程式, 使系統回到工作狀態。

    如果您沒有從 install_root/classes 目錄中移除修正程式,則會發生錯誤。

  7. 如果錯誤日誌所含的資訊不足以判斷造成問題的原因, 請解除安裝該產品、清除任何遺留的日誌檔或其他構件,並重新安裝,然後啟用追蹤功能。
    • -is:javaconsole 參數新增至 install 指令, 以便向主控台視窗報告 stdoutstderr 日誌:
      • LINUX platforms UNIX platforms Linux 與 UNIX 平台:
        install -is:javaconsole
        利用下列指令將串流擷取至檔案中:
        install -is:javaconsole > captureFileName.txt 2>&1
      • For Windows platforms Windows 平台:
        install.exe -is:javaconsole
        利用下列指令將串流擷取至檔案中:
        install.exe -is:javaconsole > drive:\captureFileName.txt
    • 使用 -is:log file_name 選項,將其他資訊擷取到您所選擇的日誌中。
    • -W Setup.product.install.logAllEvents="true" 參數傳遞給 install 指令來開啟其他的安裝記載功能:
      • LINUX platforms UNIX platforms Linux 與 UNIX 平台:
        install -W Setup.product.install.logAllEvents="true"
      • For Windows platforms Windows 平台:
        install.exe -W Setup.product.install.logAllEvents="true"
  8. 如果您已順利建立伺服器設定檔, 請利用「首要步驟」主控台或指令行方法來啟動伺服器。
    針對特定節點啟動「首要步驟」主控台 (其中 profile_root 代表 WebSphere ESB 設定檔的安裝位置; 依預設,在 Linux 與 UNIX 平台上為 install_root/profiles/profile_name, 在 Windows 平台上為 install_root\profiles\profile_name):
    • LINUX platforms UNIX platforms Linux 與 UNIX 平台: profile_root/firststeps/esb/firststeps.sh
    • For Windows platforms Windows 平台: profile_root\firststeps\esb\firststeps.bat
    從指令行啟動伺服器:
    1. 將目錄切換至設定檔中的 profile_root/bin 目錄。
    2. 啟動伺服器程序。
      • LINUX platforms UNIX platforms Linux 與 UNIX 平台: ./startServer.sh server_name
      • For Windows platforms Windows 平台: startServer.bat server_name
  9. 尋找執行中的 Java 程序,並在 SystemOut.logSystemErr.log 檔中尋找開啟以進行電子商業訊息,以驗證伺服器已正常啟動和載入。

    如果沒有 Java 程序或是上述訊息未出現,請檢查相同的日誌檔,找出各種可能的錯誤。請更正所有錯誤,再重試一次。

    您可以在下列平台專用目錄中找到 SystemOut.logSystemErr.log 檔:
    • LINUX platforms UNIX platforms Linux 與 UNIX 平台: profile_root/logs/server_name
    • For Windows platforms Windows 平台: profile_root\profiles\logs\server_name
  10. 利用「首要步驟」主控台或指令行方法, 來停止伺服器 server_name,如果正在執行以及啟動部署管理程式(如果有的話)。
    若要從指令行來停止 server_name,請執行下列動作:
    • LINUX platforms UNIX platforms Linux 與 UNIX 平台: profile_root/bin/stopServer.sh server_name
    • For Windows platforms Windows 平台: profile_root\bin\stopServer.bat server_name
    如果您啟用安全,請指定指令的 -user 和 -password 參數。
    如果要從指令行啟動部署管理程式:
    • LINUX platforms UNIX platforms Linux 與 UNIX 平台: profile_root/bin/startManager.sh
    • For Windows platforms Windows 平台: profile_root\bin\startManager.bat
  11. 尋找執行中的 Java 程序,並在 profile_root/logs/server_name/SystemOut.log 檔中尋找 已開啟 dmgr 伺服器以進行電子商業訊息,以驗證伺服器已正常啟動和載入。
    LINUX platforms UNIX platforms Linux 與 UNIX 平台:開啟指令視窗, 並發出 top 指令以查看執行中程序的顯示畫面。如果 top 指令在系統上無法使用,請改用 ps 指令:
    ps -ef | grep java

    For Windows platforms Windows 平台:Ctrl+Alt+Delete 並輸入 T 來開啟「工作管理員」。按一下程序標籤和影像名稱直欄標頭,依照影像名稱排序。請尋找名稱為 java.exe 的程序。

    如果沒有 Java 程序或是上述訊息未出現,請檢查相同的日誌檔,找出各種可能的錯誤。更正錯誤,然後重試啟動部署管理程式。

下一步

如果要從 IBM 支援中心中取得已知問題及其解決方案的最新資訊,請參閱 IBM WebSphere ESB 支援中心網頁。


Task topic

使用條款 | 此頁的評等

Timestamp icon前次更新: 5 Mar 2006
http://publib.boulder.ibm.com/infocenter/dmndhelp/v6rxmx/index.jsp?topic=/com.ibm.websphere.wesb.doc.nl1_6.0.1\doc\tins_trouble.html

(C) Copyright IBM Corporation 2005. All Rights Reserved.
本資訊中心採用 Eclipse 技術。(http://www.eclipse.org)