アーティクル - CS398758
ThingWorx のアップグレードが「リソース 'execute[アップグレード パス インストーラが DB スクリプトを実行しています: "XXXX/thingworx/update/update_postgres.sh"] でアクション `run` の実行中にエラーが発生しました」というエラーで失敗します
修正日: 02-Oct-2025
適用対象
- ThingWorx Platform 9.0 to 9.7
説明
- ThingWorx のアップグレードが、foundation-xxxx.logに次のエラーを表示して失敗します。
- execute the ruby block Retrieve DB passowrd
* execute[upgrade path installer running db scripts: "/XXXX/ThingWorxFoundation/thingworx/update/update_postgres.sh"] action run[2023-08-09T21:17:18+05:30] INFO: Processing execute[upgrade path installer running db scripts: "/XXXX/ThingWorxFoundation/thingworx/update/update_postgres.sh"] action run (twx_foundation::database line 76)
================================================================================
Error executing action `run` on resource 'execute[upgrade path installer running db scripts: "/XXXX/ThingWorxFoundation/thingworx/update/update_postgres.sh"]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Command execution failed. STDOUT/STDERR suppressed for sensitive resource- ThingWorx Foundation のインプレースアップグレードを実行しようとすると、foundation-xxxx.logに次のエラーが記録され、繰り返し失敗します。
[31mError executing action `run` on resource 'execute[upgrade path installer running db scripts: "<Thingworx_Home>/thingworx/update/update_mssql.ps1"]' - シングルサインオン(SSO)を無効にしてすべての前提条件に従った後でも問題が解決しない
- ThingWorxFoundation_upgrade.logまたはbitrock_xxx.logに以下のメッセージが記録されます。
Script stderr: child process exited abnormally Error running cinc-client -z --config "/XXXX/ThingWorxFoundation/installer/foundation/knife.rb" -j "/XXXX/ThingWorxFoundation/installer/foundation.json" -L "/XXXX/ThingWorxFoundation/installer/logs/foundation-ZZZZ.log": child process exited abnormally
- ThingWorx インストーラー UI がエラーを報告します:
Error: The upgrade was not successful. The installer attempted to roll back changes to your file system, but database changes could not be rolled back. You may need to restore your database from your manual backup. Before running the upgrade installer again, check the installer logs to see why this upgrade attempt failed.
- インストーラーは Windows 環境で PowerShell コマンドを呼び出します。
powershell .\update_postgres.ps1 -h 192.168.11.3 -p 5432 -d thingworx -s public -u twadmin --update_all -y
- エラーが返されます:
update_postgres.ps1 : The term 'update_postgres.ps1' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + update_postgres.ps1 -h 192.168.11.3 -p 5432 -d thingworx -s public -u ... + ~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (update_postgres.ps1:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
最新バージョンはこちらを参照ください CS398758