Open Closed

Side menus lost #4233


User avatar
0
mc86 created
  • ABP Framework version: v6.0.2
  • UI type: Blazor
  • DB provider: EF Core /
  • Tiered (MVC) or Identity Server Separated (Angular): yes / no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

2022-12-23 08:43:52.379 +08:00 [INF] Request finished HTTP/2 GET https://oa.aysdlrmyy.com:44314/Error?httpStatusCode=404 - - - 404 - text/html;+charset=utf-8 20.2484ms
2022-12-23 08:43:52.388 +08:00 [INF] Authorization failed. These requirements were not met:
PermissionRequirement: SettingManagement.Emailing
2022-12-23 08:43:52.388 +08:00 [INF] Authorization failed. These requirements were not met:
PermissionRequirement: AbpIdentity.SettingManagement
2022-12-23 08:43:52.388 +08:00 [INF] Authorization failed. These requirements were not met:
PermissionRequirement: AbpAccount.SettingManagement

25 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Steps to reproduce the issue

    Does your web server have WebSocket enabled?

  • User Avatar
    0
    mc86 created

    1.logged in 2. the menus didn't show 3. after a few minutes and reload it shows.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Can you share a test URL?

  • User Avatar
    0
    mc86 created

    can you remotely check this? we don't have a test URL on public network errores in administrator-service

    Microsoft.IdentityModel.Tokens.SecurityTokenExpiredException: IDX10223: Lifetime validation failed. The token is expired. ValidTo: 'System.DateTime', Current time: 'System.DateTime'.
       at Microsoft.IdentityModel.Tokens.Validators.ValidateLifetime(Nullable`1 notBefore, Nullable`1 expires, SecurityToken securityToken, TokenValidationParameters validationParameters)
       at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateTokenPayload(JwtSecurityToken jwtToken, TokenValidationParameters validationParameters)
       at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateToken(String token, TokenValidationParameters validationParameters, SecurityToken& validatedToken)
       at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync()
    
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Please clear all logs, then reproduce the problem, and share the logs(blazor, gateway, microservice, authservce).

    liming.ma@volosoft.com

    Thanks

  • User Avatar
    0
    mc86 created

    hi maliming The menu was found missing at about 2:30 I have sent the logs to your emali

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    OK, I will check your logs.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Please set IdentityModelEventSource.ShowPII = true;

    IDX10223: Lifetime validation failed. The token is expired. ValidTo: 'System.DateTime', Current time: 'System.DateTime'.

    There seems to be a problem with the application's clock

  • User Avatar
    0
    mc86 created

    hi maliming put this line to witch project?

    IdentityModelEventSource.ShowPII = true;

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    administration-service.

  • User Avatar
    0
    mc86 created

    hi Ma have sent logs to you

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    I didn't get the logs yet

  • User Avatar
    0
    mc86 created
    2022-12-23 16:38:11.279 +08:00 [INF] Failed to validate the token.
    Microsoft.IdentityModel.Tokens.SecurityTokenExpiredException: IDX10223: Lifetime validation failed. The token is expired. ValidTo: '12/23/2022 04:40:03', Current time: '12/23/2022 08:38:11'.
       at Microsoft.IdentityModel.Tokens.Validators.ValidateLifetime(Nullable`1 notBefore, Nullable`1 expires, SecurityToken securityToken, TokenValidationParameters validationParameters)
       at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateLifetime(Nullable`1 notBefore, Nullable`1 expires, JwtSecurityToken jwtToken, TokenValidationParameters validationParameters)
       at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateTokenPayload(JwtSecurityToken jwtToken, TokenValidationParameters validationParameters)
       at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateToken(String token, TokenValidationParameters validationParameters, SecurityToken& validatedToken)
       at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync()
    
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    ValidTo: '12/23/2022 04:40:03', Current time: '12/23/2022 08:38:11'.

    The time seems wrong?

  • User Avatar
    0
    mc86 created

    all of the app,microservive on the same server.

    2022-12-23 16:38:11.279 +08:00 [INF] Failed to validate the token.

    the log time is correct but....

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    2022-12-23 16:38:11.279 +08:00 Current time: '12/23/2022 08:38:11'.

    There seems to be an 8 hour time difference.

    Please check your server environment .

  • User Avatar
    0
    mc86 created

    they all in a same iis and a same server. i don't think this is a environment problem. some times it's work correctly

  • User Avatar
    0
    mc86 created

    if the logs time is corrcet i don't know why the administrator service is wrong

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can test in your dev environment without IIS.

  • User Avatar
    0
    mc86 created

    it hapens in my dev environment and product environment too. I found this problem in my dev environment run by TYE in the first and same in product environment in iis

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    ok,

    How can I reproduce the problem?

    Can you test it with a brand new template project?

  • User Avatar
    0
    mc86 created

    it happened after that i migrate id 4to openiddict. I Would like to know where the.'current time' come from which I think it's didn't come from the system time

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    I checked. The current time' is utcnow.

    Can you test it with a brand new template project?

  • User Avatar
    0
    mc86 created

    Ok maliming I will do some research Tks

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    ok

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on July 03, 2025, 08:38