- Primeros pasos
- Requisitos
- Mejores prácticas
- Instalación
- Actualizando
- Servidor de identidad
- Solución de problemas de errores de inicio
Excepciones de Webhooks
Excepciones comunes del servicio de Webhooks y errores de carga de ensamblados encontrados durante el inicio
500.30 ASP.NET Core app failed to start - System.TypeInitializationException: The type initializer for 'System.Threading.Tasks.Task' threw an exception
Excepción
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)
Causa
El problema es causado por el agente de Dynatrace responsable de la supervisión del rendimiento de las aplicaciones (APM).
Solución
Actualiza a la última versión independiente o a la versión mínima compatible. Consulta la página Ciclo de vida del producto para obtener más información.
O
Deshabilita AppInsights, Dynatrace, NewRelic, DataDog.
500.30 ASP.NET Core app failed to start - Managed server didn't initialize after X ms
Excepción
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.
Causa
El límite de tiempo de inicio puede berestrictive y causar tiempo de inactividad en entornos afectados por un alto uso de CPU y consumo de memoria.
Solución
Actualiza a 20.10.5+ para aumentar el límite de tiempo de inicio a 300 segundos.
Si esto es insuficiente, significa que el servidor está intentando ejecutar algo y tiene un bloqueo . e suele ser el caso cuando el EnableMigrationsparámetro se establece en True, y hay una gran migración colgando el hilo principal.
Si el marcador se establece en False, recopila un volcado de memoria y lo envía a tu representante de cliente.
La aplicación 500.30 ASP.NET Core no se pudo iniciar: System.ApplicationException: no se pudo iniciar el suscriptor del libro mayor
Excepción
Exception Info: System.ApplicationException: Ledger subscriber could not be started.
Exception Info: System.ApplicationException: Ledger subscriber could not be started.
Esta excepción suele ir precedida en el registro de eventos de la aplicación por una Microsoft.Data.SqlClient.SqlException (error 40) y un mensaje "SQL Server se está apagando" entrada.
Consulta el registro de eventos de la aplicación para ver si hay un error de conexión SQL inmediatamente antes de la excepción del suscriptor del libro mayor para confirmar la causa.
Causa
SQL Server no estaba disponible cuando Webhooks intentaba iniciar el suscriptor de Ledger. Esto sucede cuando SQL Server se ejecuta en la misma máquina que Orchestrator y no ha terminado de iniciarse cuando Orchestrator se inicia después de reiniciar el sistema operativo.
Solución
- Confirma que SQL Server se está ejecutando y aceptando conexiones.
- Detén el sitio de Orchestrator en el Administrador de IIS.
- Inicia el sitio de Orchestrator en el Administrador de IIS.
- 500.30 ASP.NET Core app failed to start - System.TypeInitializationException: The type initializer for 'System.Threading.Tasks.Task' threw an exception
- Excepción
- Causa
- Solución
- 500.30 ASP.NET Core app failed to start - Managed server didn't initialize after X ms
- Excepción
- Causa
- Solución
- La aplicación 500.30 ASP.NET Core no se pudo iniciar: System.ApplicationException: no se pudo iniciar el suscriptor del libro mayor
- Excepción
- Causa
- Solución