技术文章 - CS298675

当使用 root 用户启动 PSI 时,独立索引搜索 (SOLR) 安装失败,并出现“java.lang.Exception: Subinstaller failed”错误

已修改: 24-Oct-2025   


注意:本文已使用机器翻译软件翻译,以方便非英语客户阅读。但翻译内容可能包含语法错误或不准确之处。请注意, PTC对本文所含信息的翻译准确性及使用后果不承担任何责任。请在 此处 查看本文的英文原始版本以便参考。有关机器翻译的更多详情,请单击 此处
感谢您告诉我们。我们将尽快审阅此译文。

适用于

  • Windchill PDMLink 11.1 to 13.1
  • Windchill PartsLink 11.1 to 12.1
  • Red Hat Linux/Unix

说明

  • Windchill Index Search (Solr) 在 Linux/Unix 上安装失败,错误信息为“ java.lang.Exception: Subinstaller failed
  • 无法在 Windchill PDMLink 上安装 Solr,并出现错误“ java.lang.Exception: Subinstaller failed”
  • 在独立 SOLR 安装期间,PSI 失败并出现错误“ java.lang.Exception: Subinstaller failed
  • 使用root用户启动 PSI 时 SOLR 独立安装失败,弹出以下错误
  • PSI GUI 报告以下错误
Installation Aborting
The following 2 logs contain information that may be useful for diagnosing installation problems. Include them in your support requests. Shutdown the installer before accessing any logs to ensure that they are up to date.
 /app/ptc/Windchill_###/PSI/installer/logs/PTCSOLNINSTALLER_PtcInstall.log
 /app/ptc/Windchill_###/PSI/installer/logs/PTCSOLNINSTALLER_InstallLog.xml
The installation is aborting due to an unexpected error.
java.lang.Exception: Subinstaller failed
    at com.ptc.windchill.install.suite.subinstaller.AbstractLightweightSubinstaller.run(AbstractLightweightSubinstaller.java:146)
    at com.ptc.windchill.install.suite.SubInstallerManagerImpl.executeInstaller(SubInstallerManagerImpl.java:881)
    at com.ptc.windchill.install.suite.SubInstallerManagerImpl.process(SubInstallerManagerImpl.java:379)
    at com.ptc.windchill.install.suite.SubInstallerManager.process(SubInstallerManager.java:24)
    at com.ptc.windchill.install.framework.InstallAction.run(InstallAction.java:468)
    at com.ptc.windchill.install.framework.InstallAction.install(InstallAction.java:313)
    at com.zerog.ia.installer.actions.CustomAction.installSelf(Unknown Source)
    at com.zerog.ia.installer.InstallablePiece.install(Unknown Source)
    at com.zerog.ia.installer.InstallablePiece.install(Unknown Source)
    at com.zerog.ia.installer.InstallablePiece.install(Unknown Source)
    at com.zerog.ia.installer.GhostDirectory.install(Unknown Source)
    at com.zerog.ia.installer.InstallablePiece.install(Unknown Source)
    at com.zerog.ia.installer.Installer.install(Unknown Source)
    at com.zerog.ia.installer.actions.InstallProgressAction.ae(Unknown Source)
    at com.zerog.ia.installer.actions.ProgressPanelAction$1.run(Unknown Source)
  • PSI 日志报告以下错误
    • 错误 1
       INFO   23-10-2025 23:38:58 - checkSolrServerStatus: 
      INFO   23-10-2025 23:38:58 -      [java] Running in same VM Executing 'com.ptc.search.util.automation.SolrServerStatusChecker' with arguments: 
      INFO   23-10-2025 23:38:58 -      [java] '/opt/ptc/IndexSearch/SolrServer' 
      INFO   23-10-2025 23:38:58 -      [java]  
      INFO   23-10-2025 23:38:58 -      [java] The ' characters around the executable and arguments are 
      INFO   23-10-2025 23:38:58 -      [java] not part of the command. 
      INFO   23-10-2025 23:38:59 -      [java] ERROR [main] 23:38:59,119 com.ptc.search.util.automation.SolrServerStatusChecker Unexpected exception while pinging solr 
      INFO   23-10-2025 23:38:59 -      [java] java.net.ConnectException: Connection refused 
      INFO   23-10-2025 23:38:59 -      [java] 	at java.base/sun.nio.ch.Net.connect0(Native Method) ~[?:?] 
      INFO   23-10-2025 23:38:59 -      [java] 	at java.base/sun.nio.ch.Net.connect(Net.java:589) ~[?:?] 
      ...
      INFO   23-10-2025 23:39:09 -      [java] ERROR [main] 23:39:09,141 com.ptc.search.util.automation.SolrServerStatusChecker Unexpected exception while pinging solr 
      INFO   23-10-2025 23:39:09 -      [java] java.net.ConnectException: Connection refused 
      ...
      ERROR  23-10-2025 23:41:59 - failed to install (solrserver) 
      ERROR  23-10-2025 23:41:59 - error details: 
      java.lang.Exception: Subinstaller failed
      	at com.ptc.windchill.install.suite.subinstaller.AbstractLightweightSubinstaller.run(AbstractLightweightSubinstaller.java:148) [installer.zip:?]
      	at com.ptc.windchill.install.suite.SubInstallerManagerImpl.executeInstaller(SubInstallerManagerImpl.java:1248) [installer.zip:?]
      	at com.ptc.windchill.install.suite.SubInstallerManagerImpl.process(SubInstallerManagerImpl.java:442) [installer.zip:?]
      	at com.ptc.windchill.install.suite.SubInstallerManager.process(SubInstallerManager.java:24) [installer.zip:?]
      	at com.ptc.windchill.install.framework.InstallAction.run(InstallAction.java:512) [installer.zip:?]
      	at com.ptc.windchill.install.framework.InstallAction.install(InstallAction.java:330) [installer.zip:?]
      	at com.zerog.ia.installer.actions.CustomAction.installSelf(Unknown Source) [installer.zip:?]
      	at com.zerog.ia.installer.InstallablePiece.install(Unknown Source) [installer.zip:?]
      ...
      DEBUG  23-10-2025 23:41:59 - Processing subinstaller assembly (solrserver): timer.stop. Elapsed time = 00:03:49 -- 229 sec 
      DEBUG  23-10-2025 23:41:59 - java.lang.Exception: Subinstaller failed 
      DEBUG  23-10-2025 23:41:59 - at com.ptc.windchill.install.suite.subinstaller.AbstractLightweightSubinstaller.run(AbstractLightweightSubinstaller.java:148) 
      DEBUG  23-10-2025 23:41:59 - at com.ptc.windchill.install.suite.SubInstallerManagerImpl.executeInstaller(SubInstallerManagerImpl.java:1248) 
      DEBUG  23-10-2025 23:41:59 - at com.ptc.windchill.install.suite.SubInstallerManagerImpl.process(SubInstallerManagerImpl.java:442) 
      ...
      DEBUG  23-10-2025 23:41:59 - Exiting with return code -1 
    • 错误 2
 checkSolrServerStatus: 
     [java] running com.ptc.search.util.automation.SolrServerStatusChecker with default permissions (exit forbidden) 
     [java] Running in same VM Executing 'com.ptc.search.util.automation.SolrServerStatusChecker' with arguments: 
     [java] 'http://solrhost.domain.com:8085/solr/wblib/' 
     [java] 'solradmin' 
     [java] 'ts' 
     [java] ' /app/ptc/Windchill_##.#/SolrServer' 
     [java]  
     [java] The ' characters around the executable and arguments are 
     [java] not part of the command. 
     [java] SLF4J: Class path contains multiple SLF4J bindings. 
     [java] SLF4J: Found binding in [jar:file: /app/ptc/Windchill_11.1/SolrServer/srclib/slf4j-log4j12.jar!/org/slf4j/impl/StaticLoggerBinder.class] 
     [java] SLF4J: Found binding in [jar:file: /app/ptc/Windchill_11.1/SolrServer/codebase/WEB-INF/lib/slf4j-log4j12.jar!/org/slf4j/impl/StaticLoggerBinder.class] 
     [java] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. 
     [java] SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory] 
  [antcall] Exiting  /app/ptc/Windchill_##.#/SolrServer/installer/solrserver/SolrServer/deploy.xml. 
  [antcall] Exiting  /app/ptc/Windchill_##.#/SolrServer/installer/solrserver/SolrServer/deploy.xml. 
  [antcall] Exiting  /app/ptc/Windchill_##.#/SolrServer/installer/solrserver/SolrServer/deploy.xml. 
  [antcall] Exiting  /app/ptc/Windchill_##.#/SolrServer/installer/solrserver/SolrServer/deploy.xml. 
  [antcall] Exiting  /app/ptc/Windchill_##.#/SolrServer/installer/solrserver/SolrServer/deploy.xml. 
      [ant] Exiting  /app/ptc/Windchill_##.#/SolrServer/installer/solrserver/SolrServer/deploy.xml. 
      [ant] Exiting  /app/ptc/Windchill_##.#/SolrServer/bin/installModules.xml. 
 
BUILD FAILED 
 /app/ptc/Windchill_##.#/SolrServer/bin/installModules.xml:135: The following error occurred while executing this line: 
 /app/ptc/Windchill_##.#/SolrServer/bin/installModules.xml:158: The following error occurred while executing this line: 
 /app/ptc/Windchill_##.#/SolrServer/bin/commonImport.xml:277: The following error occurred while executing this line: 
 /app/ptc/Windchill_##.#/SolrServer/bin/installModules.xml:691: The following error occurred while executing this line: 
 /app/ptc/Windchill_##.#/SolrServer/bin/installModules.xml:702: The following error occurred while executing this line: 
 /app/ptc/Windchill_##.#1/SolrServer/installer/solrserver/SolrServer/deploy.xml:33: The following error occurred while executing this line: 
 /app/ptc/Windchill_11.1/SolrServer/installer/solrserver/SolrServer/deploy.xml:69: The following error occurred while executing this line: 
 /app/ptc/Windchill_11.1/SolrServer/installer/solrserver/SolrServer/deploy.xml:89: The following error occurred while executing this line: 
 /app/ptc/Windchill_11.1/SolrServer/installer/solrserver/SolrServer/solrServer.xml:16: The following error occurred while executing this line: 
 /app/ptc/Windchill_11.1/SolrServer/installer/solrserver/SolrServer/solrServer.xml:32: The following error occurred while executing this line: 
 /app/ptc/Windchill_11.1/SolrServer/installer/solrserver/SolrServer/solrServer.xml:84: java.lang.Exception: Solr Server failed to start up within 180 seconds 
    at com.ptc.search.util.automation.SolrServerStatusChecker.main(SolrServerStatusChecker.java:61) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
......
Total time: 5 minutes 52 seconds 
done calling run - result: 1 
failed to install (solrserver) 
error details: 
java.lang.Exception: Subinstaller failed
    at com.ptc.windchill.install.suite.subinstaller.AbstractLightweightSubinstaller.run(AbstractLightweightSubinstaller.java:146)
    at com.ptc.windchill.install.suite.SubInstallerManagerImpl.executeInstaller(SubInstallerManagerImpl.java:881)
    at com.ptc.windchill.install.suite.SubInstallerManagerImpl.process(SubInstallerManagerImpl.java:379)
    at com.ptc.windchill.install.suite.SubInstallerManager.process(SubInstallerManager.java:24)

Processing subinstaller assembly (solrserver): timer.stop. Elapsed time = 00:05:55 -- 355 sec 
java.lang.Exception: Subinstaller failed 
at com.ptc.windchill.install.suite.subinstaller.AbstractLightweightSubinstaller.run(AbstractLightweightSubinstaller.java:146) 
at com.ptc.windchill.install.suite.SubInstallerManagerImpl.executeInstaller(SubInstallerManagerImpl.java:881) 
at com.ptc.windchill.install.suite.SubInstallerManagerImpl.process(SubInstallerManagerImpl.java:379) 
at com.ptc.windchill.install.suite.SubInstallerManager.process(SubInstallerManager.java:24) 
...........
java.lang.Exception: Subinstaller failed 
at com.ptc.windchill.install.suite.subinstaller.AbstractLightweightSubinstaller.run(AbstractLightweightSubinstaller.java:146) 
at com.ptc.windchill.install.suite.SubInstallerManagerImpl.executeInstaller(SubInstallerManagerImpl.java:881) 
at com.ptc.windchill.install.suite.SubInstallerManagerImpl.process(SubInstallerManagerImpl.java:379) 
at com.ptc.windchill.install.suite.SubInstallerManager.process(SubInstallerManager.java:24) 
at com.ptc.windchill.install.framework.InstallAction.run(InstallAction.java:468) 
...........
The installation is aborting due to an unexpected error. 
java.lang.Exception: Subinstaller failed 
at com.ptc.windchill.install.suite.subinstaller.AbstractLightweightSubinstaller.run(AbstractLightweightSubinstaller.java:146) 
at com.ptc.windchill.install.suite.SubInstallerManagerImpl.executeInstaller(SubInstallerManagerImpl.java:881) 
at com.ptc.windchill.install.suite.SubInstallerManagerImpl.process(SubInstallerManagerImpl.java:379) 
...........
Exiting with return code -1

 - BUILD FAILED 
 - /tmp/install.dir.44687/InstallerData/psi/bin/psiDeploy.xml:24: /app/ptc/Windchill_11.1/SolrServer/bin does not exist. 
 -     at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:484) 
 -     at org.apache.tools.ant.taskdefs.ExecuteOn.runExec(ExecuteOn.java:370) 
 -     at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:496) 
 -     at org.apache.tools.ant.taskdefs.Chmod.execute(Chmod.java:182) 
 -      [java] ERROR StatusLogger Could not register mbeans 
 -      [java]  java.security.AccessControlException: access denied ("javax.management.MBeanTrustPermission" "register") 
 -      [java]     at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472) 
 -      [java]     at java.lang.SecurityManager.checkPermission(SecurityManager.java:585) 
 -      [java]     at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.checkMBeanTrustPermission(DefaultMBeanServerInterceptor.java:1848) 
 -      [java]     at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:322) 
 -      [java]     at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:522) 
这是文章 298675 的 PDF 版本,可能已过期。最新版本 CS298675