cancel
Showing results for 
Search instead for 
Did you mean: 

Starting Ims website

Peter_Roth
Level 2
Hi!

We are setting up an internal test environment for Decipher and Interact.
Last session we came to page 47 in the installation guide for Interact:
https://bpdocs.blueprism.com/hub-interact/4-1/en-us/z-pdf/4-1/v4.1%20Install%20Guide%20-%20Interact.pdf
Everything looked good and we could reach everything,

We was going to continue the work today and booted up the involved Azure servers. BP works fine. When we try to start the ims site we get to the log in screen. After entering the admin+default password we get an error saying "Something went wrong". The message says nothing about what went wrong. We tried to put in random text for username and pw and that gives the same error message. We found the IMS log file and it says the following:
--------------------------------

[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)

------------------------------

We are stuck and do not find a way forward. 

We got a valid license and everything worked when we ended the session last week. We can see in the SQL trace that the db communication works.

Has anyone been through this or knows what could be wrong?

Thank you in advance.

------------------------------
Peter Roth
------------------------------
1 BEST ANSWER

Best Answers

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"



------------------------------
Zdeněk Kabátek
Head of Professional Services
NEOOPS
http://www.neoops.com/
Europe/Prague
------------------------------

View answer in original post

2 REPLIES 2

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"



------------------------------
Zdeněk Kabátek
Head of Professional Services
NEOOPS
http://www.neoops.com/
Europe/Prague
------------------------------

Hi Zdeněk,

We only recycled "Blue Prism - IMS" before i started the thread. Why didnt we think of this. 🙂

It worked after recycling all the apppools. Problem solved. Thank you for your fast help!


------------------------------
Peter Roth
------------------------------