アーティクル - CS321777
ThingWorx Platform のネットワーク共有に ThingworxStorage ディレクトリを設定すると、「java.io.IOException: プラットフォーム ストレージの初期化中にエラーが発生しました」というエラーが表示されます。
修正日: 01-Jul-2025
適用対象
- ThingWorx Platform 8.1 to 9.6
説明
- ThingWorx Composer にアクセスできません
- 作曲家が示すもの:
HTTP Status 404 – Not Found Type Status Report Message /Thingworx/#### Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
- Apache Tomcatサービスは開始されますが、ThingWorx にアクセスできません
- 最近、 <Apache Tomcat>\bin内のsetenv.sh (Linux ) またはsetenv.bat (Windows)を変更したため、ThingWorx が起動しなくなりました。
- Apache Tomcat の起動時にカスタム ThingworxPlatform の場所を使用できない
- Apache Tomcat は正しい THINGWORX_PLATFORM_SETTINGS ディレクトリを見つけられないため、デフォルトの場所 (C:\ThingworxPlatform、/ThingworxPlatform) で起動しようとします。
- ThingWorx High Availability を構成するには、ThingworxStorage をネットワーク共有に配置する必要がありますが、Apache は起動していません。
- ThingworxStorage をネットワーク上の場所に設定しようとすると、この変更により Apache Tomcat が起動に失敗する
- platform-settings.jsonのBasicSettings > Storageキー値を更新し、ThingworxStorage をネットワーク ドライブに配置すると、Tomcat の実行が継続されなくなります。
- 必要な権限を設定し、Windows ベースの ThingWorx プラットフォーム ホスト上のドライブ文字にネットワーク ドライブをマップしましたが、 platform-settings.jsonでThingworxStorage の場所を更新した後、Apache Tomcat が実行されません。
- OS アップグレード後に ThingWorx が起動できず、エラー コード 4が表示される
- Linux でサービス <Tomcat サービス名> ステータスを実行すると、次のように表示されます。
<Date Time> <Hostname> startup.sh[]: <Apache Tomcat>/bin/setenv.sh: line 3: $'\r': command not found <Date Time> <Hostname> startup.sh[]: <Apache Tomcat>/bin/setenv.sh: line 8: syntax error: unexpected end of file
- <Apache Tomcat>\logsにあるthingworx-foundation-stdout.logまたはtomcat9-stdout.logファイル内に次のエラーが表示されます。
-ERROR in ch.qos.logback.core.joran.spi.Interpreter@3:88 - RuntimeException in Action for tag [contextListener] com.thingworx.exceptions.ConfigurationException: java.io.IOException: error trying to initialize Platform storage [setting: <ThingworxStorage location>\####] at com.thingworx.exceptions.ConfigurationException: java.io.IOException: error trying to initialize Platform storage [setting: <ThingworxStorage location>\####] at at com.thingworx.system.configuration.PlatformSettings.getInstance(PlatformSettings.java:3390) at at com.thingworx.logging.LogbackUtilities.loadLogbackConfiguration(LogbackUtilities.java:54) ... Caused by: java.io.IOException: error trying to initialize Platform storage [setting: <ThingworxStorage location>\####] at at com.thingworx.system.configuration.PlatformSettings.prepareLocation(PlatformSettings.java:3299) at at com.thingworx.system.configuration.PlatformSettings.setStorageRoot(PlatformSettings.java:3075) at at com.thingworx.system.configuration.PlatformSettings.<init>(PlatformSettings.java:2235) ... Caused by: java.io.IOException: THINGWORX WARNING: could not create directory: <ThingworxStorage location>\#### at at com.thingworx.common.utils.DefaultPathUtility.createPath(DefaultPathUtility.java:39) at at com.thingworx.system.configuration.PlatformSettings.prepareLocation(PlatformSettings.java:3296) at ... 65 common frames omitted 16:59:03,496 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration. 16:59:03,497 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@67502e7f - Registering current configuration as safe fallback point >>>>>>>> TERMINATING JVM <<<<<<<<<< >>>>>>>> CALLING SYSTEM EXIT <<<<<<<<<<
最新バージョンはこちらを参照ください CS321777