12-03-21 12:27 PM
[2021/03/12 11:25:30.033]ERROR ImsServer.BusinessLogic.Services.LicenseInfoProvider - Response status code does not indicate success: 500 (Internal Server Error).
System.Net.Http.HttpRequestException: Response status code does not indicate success: 500 (Internal Server Error).
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at ImsServer.BusinessLogic.Services.LicenseInfoProvider.GetAllAsync() in C:\agent\_work\330\s\backend\ImsServer\ImsServer.BusinessLogic\Services\LicenseInfoProvider.cs:line 40
[2021/03/12 11:25:30.039]ERROR Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware - An unhandled exception has occurred while executing the request.
System.Net.Http.HttpRequestException: Response status code does not indicate success: 500 (Internal Server Error).
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at ImsServer.BusinessLogic.Services.LicenseInfoProvider.GetAllAsync() in C:\agent\_work\330\s\backend\ImsServer\ImsServer.BusinessLogic\Services\LicenseInfoProvider.cs:line 40
at ImsServer.BusinessLogic.Services.LicenseInfoProviderCache.GetAllAsync() in C:\agent\_work\330\s\backend\ImsServer\ImsServer.BusinessLogic\Services\LicenseInfoProviderCache.cs:line 28
at ImsServer.BusinessLogic.Services.UserPermissionsViewer.HasFormsPermissionAsync() in C:\agent\_work\330\s\backend\ImsServer\ImsServer.BusinessLogic\Services\UserPermissionsViewer.cs:line 23
at ImsServer.Web.Controllers.SystemInitializationController.GetUserConfigurations() in C:\agent\_work\330\s\backend\ImsServer\ImsServer.Web\Controllers\SystemInitializationController.cs:line 51
at lambda_method(Closure , Object )
at Microsoft.Extensions.Internal.ObjectMethodExecutorAwaitable.Awaiter.GetResult()
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Logged|12_1(ControllerActionInvoker invoker)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|24_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|19_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at IdentityServer4.Hosting.IdentityServerMiddleware.Invoke(HttpContext context, IEndpointRouter router, IUserSession session, IEventService events)
at IdentityServer4.Hosting.MutualTlsTokenEndpointMiddleware.Invoke(HttpContext context, IAuthenticationSchemeProvider schemes)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at IdentityServer4.Hosting.BaseUrlMiddleware.Invoke(HttpContext context)
at NWebsec.AspNetCore.Middleware.Middleware.CspMiddleware.Invoke(HttpContext context)
at NWebsec.AspNetCore.Middleware.Middleware.MiddlewareBase.Invoke(HttpContext context)
at NWebsec.AspNetCore.Middleware.Middleware.MiddlewareBase.Invoke(HttpContext context)
at NWebsec.AspNetCore.Middleware.Middleware.MiddlewareBase.Invoke(HttpContext context)
at NWebsec.AspNetCore.Middleware.Middleware.MiddlewareBase.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)
[2021/03/12 11:25:30.039]ERROR ImsServer.Web.Startup - Error while processing request.
System.Net.Http.HttpRequestException: Response status code does not indicate success: 500 (Internal Server Error).
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at ImsServer.BusinessLogic.Services.LicenseInfoProvider.GetAllAsync() in C:\agent\_work\330\s\backend\ImsServer\ImsServer.BusinessLogic\Services\LicenseInfoProvider.cs:line 40
at ImsServer.BusinessLogic.Services.LicenseInfoProviderCache.GetAllAsync() in C:\agent\_work\330\s\backend\ImsServer\ImsServer.BusinessLogic\Services\LicenseInfoProviderCache.cs:line 28
at ImsServer.BusinessLogic.Services.UserPermissionsViewer.HasFormsPermissionAsync() in C:\agent\_work\330\s\backend\ImsServer\ImsServer.BusinessLogic\Services\UserPermissionsViewer.cs:line 23
at ImsServer.Web.Controllers.SystemInitializationController.GetUserConfigurations() in C:\agent\_work\330\s\backend\ImsServer\ImsServer.Web\Controllers\SystemInitializationController.cs:line 51
at lambda_method(Closure , Object )
at Microsoft.Extensions.Internal.ObjectMethodExecutorAwaitable.Awaiter.GetResult()
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Logged|12_1(ControllerActionInvoker invoker)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|24_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|19_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at IdentityServer4.Hosting.IdentityServerMiddleware.Invoke(HttpContext context, IEndpointRouter router, IUserSession session, IEventService events)
at IdentityServer4.Hosting.MutualTlsTokenEndpointMiddleware.Invoke(HttpContext context, IAuthenticationSchemeProvider schemes)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at IdentityServer4.Hosting.BaseUrlMiddleware.Invoke(HttpContext context)
at NWebsec.AspNetCore.Middleware.Middleware.CspMiddleware.Invoke(HttpContext context)
at NWebsec.AspNetCore.Middleware.Middleware.MiddlewareBase.Invoke(HttpContext context)
at NWebsec.AspNetCore.Middleware.Middleware.MiddlewareBase.Invoke(HttpContext context)
at NWebsec.AspNetCore.Middleware.Middleware.MiddlewareBase.Invoke(HttpContext context)
at NWebsec.AspNetCore.Middleware.Middleware.MiddlewareBase.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)
------------------------------Answered! Go to Answer.
12-03-21 02:15 PM
Hi, Peter,
there can be many reasons for this :). I am running it locally in my VM and every time I boot the machine I have to restart the application pools. I am having a batch file which I always run after booting the VM and it contains removing old logs so that I am not confused by old logs and restarts the application pools. I am providing the content of the batch file below.
Try it and let me know.
Regards,
rem Clearing the logs
del /F "c:\Program Files (x86)\Blue Prism\Hub\Logs_Hub\*.log"
del /F "c:\Program Files (x86)\Blue Prism\IADA\Logs_WindowsIada\*.log"
del /F "c:\Program Files (x86)\Blue Prism\IMS\Logs_IMS\*.log"
del /F "c:\Program Files (x86)\Blue Prism\Interact\Logs_Interact\*.log"
del /F "c:\Program Files (x86)\Blue Prism\Interact Remote API\Logs_InteractRemoteApi\*.log"
del /F "c:\Program Files (x86)\Blue Prism\SignalR\Logs_Inbox\*.log"
rem restarting AppPools
%systemroot%\system32\inetsrv\appcmd recycle apppool "Blue Prism - IMS"
%systemroot%\system32\inetsrv\appcmd recycle apppool "Blue Prism - Hub"
%systemroot%\system32\inetsrv\appcmd recycle apppool "Blue Prism - IADA"
%systemroot%\system32\inetsrv\appcmd recycle apppool "Blue Prism - Interact"
%systemroot%\system32\inetsrv\appcmd recycle apppool "Blue Prism - Interact Remote API"
%systemroot%\system32\inetsrv\appcmd recycle apppool "Blue Prism - SignalR"
12-03-21 02:15 PM
Hi, Peter,
there can be many reasons for this :). I am running it locally in my VM and every time I boot the machine I have to restart the application pools. I am having a batch file which I always run after booting the VM and it contains removing old logs so that I am not confused by old logs and restarts the application pools. I am providing the content of the batch file below.
Try it and let me know.
Regards,
rem Clearing the logs
del /F "c:\Program Files (x86)\Blue Prism\Hub\Logs_Hub\*.log"
del /F "c:\Program Files (x86)\Blue Prism\IADA\Logs_WindowsIada\*.log"
del /F "c:\Program Files (x86)\Blue Prism\IMS\Logs_IMS\*.log"
del /F "c:\Program Files (x86)\Blue Prism\Interact\Logs_Interact\*.log"
del /F "c:\Program Files (x86)\Blue Prism\Interact Remote API\Logs_InteractRemoteApi\*.log"
del /F "c:\Program Files (x86)\Blue Prism\SignalR\Logs_Inbox\*.log"
rem restarting AppPools
%systemroot%\system32\inetsrv\appcmd recycle apppool "Blue Prism - IMS"
%systemroot%\system32\inetsrv\appcmd recycle apppool "Blue Prism - Hub"
%systemroot%\system32\inetsrv\appcmd recycle apppool "Blue Prism - IADA"
%systemroot%\system32\inetsrv\appcmd recycle apppool "Blue Prism - Interact"
%systemroot%\system32\inetsrv\appcmd recycle apppool "Blue Prism - Interact Remote API"
%systemroot%\system32\inetsrv\appcmd recycle apppool "Blue Prism - SignalR"
12-03-21 03:29 PM