アーティクル - CS398758

ThingWorxのアップグレードが「リソース 'execute[upgrade path installer running db scripts: "XXXX/thingworx/update/update_postgres.sh"]' でアクション `run` の実行中にエラーが発生しました」というエラーで失敗します。

修正日: 14-Apr-2026   


注記:ここに記載されている情報は、お客様の利便性向上のため機械翻訳ソフトを使用しています。PTCは、ここに記載されている情報の翻訳の正確性について、一切の責任を負いませんので、ご了承ください。英語の原文を参照するには、こちら。この機械翻訳に関する詳細は、こちら。
お知らせいただき、ありがとうございます。この機械翻訳をレビューします。

適用対象

  • ThingWorx Platform 9.0 to 10.1

説明

  • 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[<date_time>] 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 <DB_Host> -p <DB_Port> -d <DB_Name> -s <Schema_Name> -u <DB_User> --update_all -y
E.g.,:
powershell .\update_postgres.ps1 -h myhost -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 <DB_Host> -p <DB_Port> -d <DB_Name> -s <Schema_Name> -u ... + ~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (update_postgres.ps1:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException

最新バージョンはこちらを参照ください CS398758