Open Closed

Identity Server is very slow on Azure AppService #742


User avatar
0
Femi.madariola created

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

  • ABP Framework version: v3.3.1
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Seperated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:

I have deployed the Identity Server to Azure Appservice.

When we try to get a token from the service using (/connect/token), it is quite erratic (i.e. it works some times and atimes it doesn't work (times out no error message)). When it works, it also behaves in an erratic fashion (i.e. can be very fast and also very slow atimes).

Is there something I can do to make it faster.


8 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    See https://support.abp.io/QA/Questions/102/Identity-Server-running-slow

  • User Avatar
    0
    Femi.madariola created

    Hello,

    I have installed Redis already and put in the connection string in the appsettings.json file.

    The log in page loads in a decent time but when you input your credentials and click on login it takes a very long time before it logs in.

    Also, when I make a direct call via Post man to fetch a token, it is very slow.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Can you share the application logs?

  • User Avatar
    0
    Femi.madariola created

    Logs are below: but this call does not show up on the logs, it feels like the call did not get to the server at all.

    2020-12-30 08:17:42.184 +00:00 [INF] Request starting HTTP/1.1 GET https://agromallidentityserver.azurewebsites.net/Abp/ServiceProxyScript 2020-12-30 08:17:42.262 +00:00 [INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController.GetAll (Volo.Abp.AspNetCore.Mvc)' 2020-12-30 08:17:42.263 +00:00 [INF] Route matched with {area = "Abp", action = "GetAll", controller = "AbpServiceProxyScript", page = ""}. Executing controller action with signature Microsoft.AspNetCore.Mvc.ActionResult GetAll(Volo.Abp.AspNetCore.Mvc.ProxyScripting.ServiceProxyGenerationModel) on controller Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController (Volo.Abp.AspNetCore.Mvc). 2020-12-30 08:17:42.263 +00:00 [INF] Executing action method Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController.GetAll (Volo.Abp.AspNetCore.Mvc) - Validation state: "Valid" 2020-12-30 08:17:42.280 +00:00 [INF] Executed action method Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController.GetAll (Volo.Abp.AspNetCore.Mvc), returned result Microsoft.AspNetCore.Mvc.ContentResult in 16.3285ms. 2020-12-30 08:17:42.280 +00:00 [INF] Executing ContentResult with HTTP Response ContentType of application/javascript 2020-12-30 08:17:42.280 +00:00 [INF] Executed action Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController.GetAll (Volo.Abp.AspNetCore.Mvc) in 17.0714ms 2020-12-30 08:17:42.280 +00:00 [INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController.GetAll (Volo.Abp.AspNetCore.Mvc)' 2020-12-30 08:17:42.280 +00:00 [INF] Request finished in 95.8192ms 200 application/javascript 2020-12-30 08:17:46.129 +00:00 [INF] Executed action method Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationScriptController.Get (Volo.Abp.AspNetCore.Mvc), returned result Microsoft.AspNetCore.Mvc.ContentResult in 3972.924ms. 2020-12-30 08:17:46.129 +00:00 [INF] Executing ContentResult with HTTP Response ContentType of application/javascript 2020-12-30 08:17:46.254 +00:00 [INF] Executed action Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationScriptController.Get (Volo.Abp.AspNetCore.Mvc) in 4100.1609ms 2020-12-30 08:17:46.254 +00:00 [INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationScriptController.Get (Volo.Abp.AspNetCore.Mvc)' 2020-12-30 08:17:46.255 +00:00 [INF] Request finished in 4182.9981ms 200 application/javascript 2020-12-30 08:19:45.743 +00:00 [INF] Request starting HTTP/1.1 POST https://agromallidentityserver.azurewebsites.net/connect/token application/x-www-form-urlencoded 120 2020-12-30 08:19:46.539 +00:00 [INF] Invoking IdentityServer endpoint: IdentityServer4.Endpoints.TokenEndpoint for /connect/token 2020-12-30 08:19:46.923 +00:00 [INF] {"ClientId":"MP_App","AuthenticationMethod":"SharedSecret","Category":"Authentication","Name":"Client Authentication Success","EventType":"Success","Id":1010,"Message":null,"ActivityId":"80000007-0000-ea00-b63f-84710c7967bb","TimeStamp":"2020-12-30T08:19:46.0000000Z","ProcessId":7016,"LocalIpAddress":"10.21.0.22:443","RemoteIpAddress":"129.205.124.183","$type":"ClientAuthenticationSuccessEvent"} 2020-12-30 08:19:47.510 +00:00 [WRN] Ldap login feature is not enabled! 2020-12-30 08:19:47.625 +00:00 [INF] Credentials validated for username: admin 2020-12-30 08:19:47.626 +00:00 [INF] {"Username":"admin","Provider":null,"ProviderUserId":null,"SubjectId":"583ddaf7-98e0-cb46-f7d2-39f9545c8f80","DisplayName":"admin","Endpoint":"Token","ClientId":null,"Category":"Authentication","Name":"User Login Success","EventType":"Success","Id":1000,"Message":null,"ActivityId":"80000007-0000-ea00-b63f-84710c7967bb","TimeStamp":"2020-12-30T08:19:47.0000000Z","ProcessId":7016,"LocalIpAddress":"10.21.0.22:443","RemoteIpAddress":"129.205.124.183","$type":"UserLoginSuccessEvent"} 2020-12-30 08:19:47.771 +00:00 [INF] {"Username":"admin","Provider":null,"ProviderUserId":null,"SubjectId":"583ddaf7-98e0-cb46-f7d2-39f9545c8f80","DisplayName":null,"Endpoint":"Token","ClientId":"MP_App","Category":"Authentication","Name":"User Login Success","EventType":"Success","Id":1000,"Message":null,"ActivityId":"80000007-0000-ea00-b63f-84710c7967bb","TimeStamp":"2020-12-30T08:19:47.0000000Z","ProcessId":7016,"LocalIpAddress":"10.21.0.22:443","RemoteIpAddress":"129.205.124.183","$type":"UserLoginSuccessEvent"} 2020-12-30 08:19:47.780 +00:00 [INF] Token request validation success, {"ClientId":"MP_App","ClientName":"MP_App","GrantType":"password","Scopes":"MP offline_access","AuthorizationCode":null,"RefreshToken":null,"UserName":"admin","AuthenticationContextReferenceClasses":null,"Tenant":null,"IdP":null,"Raw":{"client_id":"MP_App","client_secret":"<i>REDACTED</i>","username":"admin","password":"<i>REDACTED</i>","grant_type":"password","scope":"offline_access MP"},"$type":"TokenRequestValidationLog"} 2020-12-30 08:19:48.182 +00:00 [INF] {"ClientId":"MP_App","ClientName":"MP_App","RedirectUri":null,"Endpoint":"Token","SubjectId":"583ddaf7-98e0-cb46-f7d2-39f9545c8f80","Scopes":"MP offline_access","GrantType":"password","Tokens":[{"TokenType":"refresh_token","TokenValue":"****G5ak","$type":"Token"},{"TokenType":"access_token","TokenValue":"****xJyA","$type":"Token"}],"Category":"Token","Name":"Token Issued Success","EventType":"Success","Id":2000,"Message":null,"ActivityId":"80000007-0000-ea00-b63f-84710c7967bb","TimeStamp":"2020-12-30T08:19:48.0000000Z","ProcessId":7016,"LocalIpAddress":"10.21.0.22:443","RemoteIpAddress":"129.205.124.183","$type":"TokenIssuedSuccessEvent"} 2020-12-30 08:19:48.205 +00:00 [INF] Request finished in 2462.4289ms 200 application/json; charset=UTF-8 2020-12-30 08:20:05.208 +00:00 [INF] Request starting HTTP/1.1 POST https://agromallidentityserver.azurewebsites.net/connect/token application/x-www-form-urlencoded 121

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Can I check it remotely(UTC+8)? shiwei.liang@volosoft.com

  • User Avatar
    0
    Femi.madariola created

    Hello shiwei.liang@volosoft.com

    Sorry I missed this, what other time can we do this?

  • User Avatar
    0
    Femi.madariola created

    Hellooooooooooo

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    I did not receive your email. please email to me.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 05, 2024, 12:19