- 基本情報
- 要件
- ベスト プラクティス
- インストール
- 更新
- Identity Server
- 起動エラーのトラブルシューティング
Webhook の例外
起動中に発生する一般的な Webhook サービスの例外とアセンブリの読み込みエラー
500.30 ASP.NET Core app failed to start - System.TypeInitializationException: The type initializer for 'System.Threading.Tasks.Task' threw an exception
Exception
Exception Info: System.TypeInitializationException: The type initializer for 'System.Threading.Tasks.Task' threw an exception.
---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Threading.Tasks, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.
File name: 'System.Threading.Tasks, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at Dynatrace.OneAgent.Introspection.TaskEventHandler.NotifyCreated(Object taskObject, Object stateObject)
at System.Threading.Tasks.Task..ctor(Boolean canceled, TaskCreationOptions creationOptions, CancellationToken ct)
at System.Threading.Tasks.Task..cctor()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.get_CompletedTask()
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.Diagnostics.StackTraceSymbols.TryOpenFile(String path)
at UiPath.IdentityServer.Web.Program.<Main>(String[] args)
Exception Info: System.TypeInitializationException: The type initializer for 'System.Threading.Tasks.Task' threw an exception.
---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Threading.Tasks, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.
File name: 'System.Threading.Tasks, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at Dynatrace.OneAgent.Introspection.TaskEventHandler.NotifyCreated(Object taskObject, Object stateObject)
at System.Threading.Tasks.Task..ctor(Boolean canceled, TaskCreationOptions creationOptions, CancellationToken ct)
at System.Threading.Tasks.Task..cctor()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.get_CompletedTask()
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.Diagnostics.StackTraceSymbols.TryOpenFile(String path)
at UiPath.IdentityServer.Web.Program.<Main>(String[] args)
原因
この問題は、アプリケーション パフォーマンス モニタリング (APM) を担当する Dynatrace エージェントが原因で発生します。
解決策
最新のスタンドアロン バージョンまたはサポート対象の最小バージョンにアップグレードします。詳しくは、「プロダクト ライフサイクル」をご覧ください。
OR
AppInsights、Dynatrace、NewRelic、DataDog を無効化します。
500.30 ASP.NET Core app failed to start - Managed server didn't initialize after X ms
Exception
Application '/LM/W3SVC/1/ROOT' with physical root 'C:\Program Files (x86)\UiPath\APPLICATIONNAME\' failed to load coreclr. Exception message:
Managed server didn't initialize after X ms.
Application '/LM/W3SVC/1/ROOT' with physical root 'C:\Program Files (x86)\UiPath\APPLICATIONNAME\' failed to load coreclr. Exception message:
Managed server didn't initialize after X ms.
原因
起動制限時間は、CPU 使用率の高さやメモリ消費量の多さに影響を受ける環境で制限がかかり、ダウンタイムが発生することがあります。
解決策
20.10.5+ にアップグレードして、起動制限時間を 300 秒に増やします。
これでも不十分な場合は、サーバーが何かを実行しようとしていて、デッドロックが発生していることを意味します。これは通常、EnableMigrations パラメーターが True に設定され、メインスレッドをハングさせる大規模な移行がある場合に発生しています。
フラグが False に設定されている場合は、メモリ ダンプを収集し、顧客の担当者に送信します。
500.30 ASP.NET Core app failed to start - System.ApplicationException: Ledger subscriber could not be started (コア アプリの起動に失敗しました - System.ApplicationException: Ledger サブスクライバーを開始できませんでした)
Exception
Exception Info: System.ApplicationException: Ledger subscriber could not be started.
Exception Info: System.ApplicationException: Ledger subscriber could not be started.
通常、この例外の前には、アプリケーション イベント ログの前に Microsoft.Data.SqlClient.SqlException (エラー 40) と "SQL Server is shutting down" エントリが表示されます。
Ledger サブスクライバー例外の直前にアプリケーション イベント ログで SQL 接続エラーが発生していないか確認し、原因を確認します。
原因
Webhook が Ledger サブスクライバーを起動しようとしたときに SQL Server が使用できませんでした。これは、SQL Server が Orchestrator と同じマシン上で実行されていて、OS の再起動後に Orchestrator が起動したときに起動が完了していない場合に発生します。
解決策
- SQL Server が実行されていて、接続を受け入れていることを確認します。
- IIS マネージャーで Orchestrator サイトを停止します。
- IIS マネージャーで Orchestrator サイトを起動します。
- 500.30 ASP.NET Core app failed to start - System.TypeInitializationException: The type initializer for 'System.Threading.Tasks.Task' threw an exception
- Exception
- 原因
- 解決策
- 500.30 ASP.NET Core app failed to start - Managed server didn't initialize after X ms
- Exception
- 原因
- 解決策
- 500.30 ASP.NET Core app failed to start - System.ApplicationException: Ledger subscriber could not be started (コア アプリの起動に失敗しました - System.ApplicationException: Ledger サブスクライバーを開始できませんでした)
- Exception
- 原因
- 解決策