技术文章 - CS329897
使用 Foundation 安装程序安装 ThingWorx Platform 时,会看到以下错误信息:“发生错误。ThingWorx Foundation 安装失败。请检查日志。应用程序即将退出。”
已修改: 31-Oct-2025
适用于
- ThingWorx Platform 8.5 to 10.0
- Microsoft Windows
- Microsoft SQL Server
- PostgreSQL
说明
- 尝试配置 SSL,但失败。密钥库已创建,服务器上的端口也已打开。通过安装程序安装 ThingWorx for Microsoft SQL Server (mssql) 时出现此错误。
- 通过安装程序升级时发生错误
- 安装在最后阶段中止
- 使用安装程序安装 ThingWorx 失败,并出现以下错误之一:
There has been an error. ThingWorx Foundation installation failed. Please check the logs. The application will exit now. There has been an error. No supported version of Java detected. Please install a supported version of Java, and ensure that the Java bin directory is in the system PATH variable. For more information about the compatibility of Java and ThingWorx versions, see the ThingWorx help center.
- 错误信息出现在<thingworx_installation_folder>\installer_Failed_installs\ThingWorxFoundation_install.log或C:\Users\<用户名>\AppData\Local\Temp\ThingWorxFoundation_Failed_installs\ThingWorxFoundation_install.log 中:
Error running <chef>\bin\chef-client -z --config "<thingworx_installation_folder>\installer\foundation\knife.rb" -j "<thingworx_installation_folder>\installer\foundation.json" -L "<thingworx_installation_folder>\installer\logs\foundation-YYYYMMDDhhmmss.log": Program ended with an error exit code
Unknown error while running ***unknown variable ccif.dir.openssl.runnable***openssl req -config ***unknown variable ccif.dir.openssl.config***openssl.cnf -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem -subj "/C=US/ST=New COUNTRY/L=SOMEWHERE /O=.../OU=.../CN=.../emailAddress=..." Failed to configure installation Runtime Step install via chef script failed :: 1 Abort Foundation component CCIF Services functions: stop ThingWorx-Foundation Setting variable service_pid from sc queryex "ThingWorx-Foundation" | findstr PID Script exit code: 1或以下错误:
ERROR: Exception handlers complete Cinc Client failed. 30 resources updated in 25 seconds FATAL: Stacktrace dumped to <Thingworx installer>/foundation/local-mode-cache/cache/cinc-stacktrace.out FATAL: Please provide the contents of the stacktrace.out file if you file a bug report FATAL: Mixlib::ShellOut::ShellCommandFailed: twx_keystore_secret[encrypt_db_password] (twx_foundation::database line 47) had an error: Mixlib::ShellOut::ShellCommandFailed: execute[secret ] (<Thingworx installer>/foundation/local-mode-cache/cache/cookbooks/twx_keystore/resources/secret.rb line 36) had an error: Mixlib::ShellOut::ShellCommandFailed: Command execution failed. STDOUT/STDERR suppressed for sensitive resource
- 安装程序失败, foundation-XXXXXXXXXX.log 文件中出现以下错误:
FATAL: Mixlib::ShellOut::ShellCommandFailed: twx_keystore_secret[encrypt_db_password] (twx_foundation::database line 47) had an error: Mixlib::ShellOut::ShellCommandFailed: execute[secret ] (<Thingworx installer>/foundation/local-mode-cache/cache/cookbooks/twx_keystore/resources/secret.rb line 36) had an error: Mixlib::ShellOut::ShellCommandFailed: Command execution failed. STDOUT/STDERR suppressed for sensitive resource
- 安装程序失败, ThingWorxFoundation_installer.log中出现以下错误:
Error running cinc-client -z --config "<twx_installation_path>\installer\foundation\knife.rb" -j "<twx_installation_path>\installer\foundation.json" -L "<twx_installation_path>\installer\logs\foundation-XXXXXX.log": Program ended with an error exit code
- 安装程序失败, foundation-YYYYYYY 安装程序日志文件中出现以下错误:
The JAVA_HOME environment variable is not defined correctly This environment variable is needed to run this program; NB: JAVA_HOME should point to a JDK not a JRE
- ThingWorxFoundation_installer.log文件中显示以下安装程序失败错误
Error running S:\Thingworx_9.7.1\Foundation/installer/functions_files/json/read_json "-configfile=S:\Thingworx_9.7.1\Foundation/ThingworxPlatform/platform-settings.json" "-jsonpath=PlatformSettingsConfig.LicensingConnectionSettings.timeout": YY/MM/DD HH:MM:SS PlatformSettingsConfig.LicensingConnectionSettings.timeout does not exist Wait 560s for /\[[^\]]+Thingworx.war\][^\n]*\[[^\]]+\]/ in "S:\Thingworx_9.7.1\Foundation\tomcat\current\logs\thingworx-foundation-stderr.2025-07-23.log" waiting 5s waiting 5s - 尝试使用 MSSQL 安装 ThingWorx 实例,但失败了。
这是文章 329897 的 PDF 版本,可能已过期。最新版本 CS329897