Anybody who can give me a favor on this issue?
I deployed the application to another server with a new database, it happened again, it really is a confused problem, make me crazy.
Does it related to IdentityServer4 settings? IdentityServer4 settings enabled by default, and all the configuration are also default from the template.
Yes, it is a common requirement, it should implemented by 2 steps save changes on the repository side, and a better UI action to select multi navigation properties, look forward to get this.
It is a random behavior, without a specified duration or a concurrency request, it also not happened on a specified action, sometimes I am visiting a very simple action it also could lose response then the whole application seems dead.
No antivirus or firewall setting block the communication on the server.
below are the odd behaviors, MVC request no response, see the Account/Login action redirect, but at the same time the API service could get result to client, but not all of the services could get result to client.
It seems the response blocked after validation the state.
INFO 2018-06-27 01:22:17,313 [99 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://mydomain/
INFO 2018-06-27 01:22:17,320 [99 ] ore.Mvc.Internal.ControllerActionInvoker - Route matched with {action = "Index", controller = "Home", area = ""}. Executing action Viewtance.SRP.Web.Controllers.HomeController.Index (Viewtance.SRP.Web.Mvc)
INFO 2018-06-27 01:22:17,322 [99 ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method Viewtance.SRP.Web.Controllers.HomeController.Index (Viewtance.SRP.Web.Mvc) with arguments (, False) - Validation state: Valid
INFO 2018-06-27 01:22:17,322 [99 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action method Viewtance.SRP.Web.Controllers.HomeController.Index (Viewtance.SRP.Web.Mvc), returned result Microsoft.AspNetCore.Mvc.RedirectToActionResult in 0.0264ms.
INFO 2018-06-27 01:22:17,331 [99 ] ft.AspNetCore.Mvc.RedirectToActionResult - Executing RedirectResult, redirecting to /Account/Login.
INFO 2018-06-27 01:22:17,331 [99 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action Viewtance.SRP.Web.Controllers.HomeController.Index (Viewtance.SRP.Web.Mvc) in 10.5059ms
INFO 2018-06-27 01:22:17,331 [99 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 18.2885ms 302
INFO 2018-06-27 01:22:17,466 [35 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://mydomain/Account/Login
INFO 2018-06-27 01:22:17,473 [35 ] ore.Mvc.Internal.ControllerActionInvoker - Route matched with {action = "Login", controller = "Account", area = ""}. Executing action Viewtance.SRP.Web.Controllers.AccountController.Login (Viewtance.SRP.Web.Mvc)
INFO 2018-06-27 01:22:17,501 [35 ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method Viewtance.SRP.Web.Controllers.AccountController.Login (Viewtance.SRP.Web.Mvc) with arguments (, , , ) - Validation state: Valid
INFO 2018-06-27 01:22:17,502 [35 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action method Viewtance.SRP.Web.Controllers.AccountController.Login (Viewtance.SRP.Web.Mvc), returned result Microsoft.AspNetCore.Mvc.ViewResult in 0.2948ms.
INFO 2018-06-27 01:22:17,510 [111 ] Core.Mvc.ViewFeatures.ViewResultExecutor - Executing ViewResult, running view Login.
INFO 2018-06-27 01:28:36,504 [16 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://mydomain/Account/Login
INFO 2018-06-27 01:28:36,512 [16 ] ore.Mvc.Internal.ControllerActionInvoker - Route matched with {action = "Login", controller = "Account", area = ""}. Executing action Viewtance.SRP.Web.Controllers.AccountController.Login (Viewtance.SRP.Web.Mvc)
INFO 2018-06-27 01:28:36,540 [16 ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method Viewtance.SRP.Web.Controllers.AccountController.Login (Viewtance.SRP.Web.Mvc) with arguments (, , , ) - Validation state: Valid
INFO 2018-06-27 01:28:36,540 [16 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action method Viewtance.SRP.Web.Controllers.AccountController.Login (Viewtance.SRP.Web.Mvc), returned result Microsoft.AspNetCore.Mvc.ViewResult in 0.3075ms.
INFO 2018-06-27 01:28:36,553 [35 ] Core.Mvc.ViewFeatures.ViewResultExecutor - Executing ViewResult, running view Login.
INFO 2018-06-27 01:29:43,442 [15 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://mydomain/School/Students
INFO 2018-06-27 01:29:43,473 [15 ] ore.Mvc.Internal.ControllerActionInvoker - Route matched with {area = "School", action = "Index", controller = "Students"}. Executing action Viewtance.SRP.Web.Areas.School.Controllers.StudentsController.Index (Viewtance.SRP.Web.Mvc)
INFO 2018-06-27 01:29:43,474 [15 ] uthorization.DefaultAuthorizationService - Authorization was successful.
INFO 2018-06-27 01:29:43,488 [15 ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method Viewtance.SRP.Web.Areas.School.Controllers.StudentsController.Index (Viewtance.SRP.Web.Mvc) - Validation state: Valid
INFO 2018-06-27 01:31:58,710 [95 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://mydomain/api/services/crm/InfoPath/GetAll?SkipCount=0&MaxResultCount=100 application/json
INFO 2018-06-27 01:31:58,792 [95 ] uthentication.JwtBearer.JwtBearerHandler - Successfully validated the token.
INFO 2018-06-27 01:31:58,861 [95 ] ore.Mvc.Internal.ControllerActionInvoker - Route matched with {area = "crm", action = "GetAll", controller = "InfoPath"}. Executing action Viewtance.CRM.InfoPaths.InfoPathAppService.GetAll (Viewtance.CRM.Application)
INFO 2018-06-27 01:31:59,109 [95 ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method Viewtance.CRM.InfoPaths.InfoPathAppService.GetAll (Viewtance.CRM.Application) with arguments (Viewtance.CRM.InfoPaths.Dtos.GetAllInfoPathsInput) - Validation state: Valid
INFO 2018-06-27 01:31:59,276 [14 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action method Viewtance.CRM.InfoPaths.InfoPathAppService.GetAll (Viewtance.CRM.Application), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 167.0071ms.
INFO 2018-06-27 01:31:59,286 [50 ] .Mvc.Infrastructure.ObjectResultExecutor - Executing ObjectResult, writing value of type 'Abp.Web.Models.AjaxResponse'.
INFO 2018-06-27 01:31:59,298 [50 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action Viewtance.CRM.InfoPaths.InfoPathAppService.GetAll (Viewtance.CRM.Application) in 436.6494ms
INFO 2018-06-27 01:31:59,298 [50 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 588.662ms 200 application/json; charset=utf-8
INFO 2018-06-27 01:32:54,910 [117 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://mydomain/api/services/school/Leaves/GetAll application/json
INFO 2018-06-27 01:32:54,912 [117 ] uthentication.JwtBearer.JwtBearerHandler - Successfully validated the token.
INFO 2018-06-27 01:32:54,918 [117 ] ore.Mvc.Internal.ControllerActionInvoker - Route matched with {area = "school", action = "GetAll", controller = "Leaves"}. Executing action Viewtance.School.Approvals.LeavesAppService.GetAll (Viewtance.School.Application)
INFO 2018-06-27 01:32:54,932 [117 ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method Viewtance.School.Approvals.LeavesAppService.GetAll (Viewtance.School.Application) with arguments (Viewtance.School.Approvals.Dtos.GetAllLeavesInput) - Validation state: Valid
The strange is that no exception system log recorded, the application logs could found the request has been received.
On the client, the status is no response from the server, no other response.
If the dotnet process dead or no reponse, then the IIS proxy will throw a message that cannot get response from the upstream server, but in my case it seems upstream dotnet process received the requests, only cannot response result to client.
After clean the solution and rebuild, local debug could hit the break point, but still cannot access some service via WebAPI after deployed to Server
It is running based on ZERO v5.5 (MVC&jQuery version) on windows server 2016
Updated.
when visit a service, suddenly, the server lost response, below logs recorded the request event, before server lost response I am visiting the GetAll method of the Bunk Service, then a Error Redirect action be recorded, but client cannot get any response from server, and other requests all blocked there, event the application received the request, but no response sent to client.
Any logs for the error redirection could be recorded? there is no error or exception system logs on the OS.
INFO 2018-06-24 10:32:31,355 [14 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://mydomain.com/api/services/ga/Bunk/GetAll?filter=115&numberFilter=&descriptionFilter=&roomNameFilter=&userNameFilter=&stateIdFilter=&maxCheckInTimeFilter=&minCheckInTimeFilter=&maxCheckOutTimeFilter=&minCheckOutTimeFilter=&nameFilter=&sorting=bunk.number%20asc&skipCount=0&maxResultCount=10 application/json
INFO 2018-06-24 10:32:31,364 [14 ] ore.Mvc.Internal.ControllerActionInvoker - Route matched with {area = "ga", action = "GetAll", controller = "Bunk"}. Executing action Viewtance.GA.Dormitories.BunkAppService.GetAll (Viewtance.GA.Application)
INFO 2018-06-24 10:32:31,376 [14 ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method Viewtance.GA.Dormitories.BunkAppService.GetAll (Viewtance.GA.Application) with arguments (Viewtance.GA.Dormitories.Dtos.GetAllBunksInput) - Validation state: Valid
INFO 2018-06-24 10:32:31,470 [14 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action method Viewtance.GA.Dormitories.BunkAppService.GetAll (Viewtance.GA.Application), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 93.4549ms.
INFO 2018-06-24 10:32:31,480 [14 ] .Mvc.Infrastructure.ObjectResultExecutor - Executing ObjectResult, writing value of type 'Abp.Web.Models.AjaxResponse'.
INFO 2018-06-24 10:32:31,480 [14 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action Viewtance.GA.Dormitories.BunkAppService.GetAll (Viewtance.GA.Application) in 116.1856ms
INFO 2018-06-24 10:32:31,480 [14 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 125.3737ms 200 application/json; charset=utf-8
INFO 2018-06-24 10:32:46,420 [63 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://mydomain.com/api/services/ga/Bunk/GetAll?filter=115&numberFilter=&descriptionFilter=&roomNameFilter=&userNameFilter=&stateIdFilter=&maxCheckInTimeFilter=&minCheckInTimeFilter=&maxCheckOutTimeFilter=&minCheckOutTimeFilter=&nameFilter=&sorting=bunkStateName%20asc&skipCount=0&maxResultCount=10 application/json
INFO 2018-06-24 10:32:46,434 [63 ] ore.Mvc.Internal.ControllerActionInvoker - Route matched with {area = "ga", action = "GetAll", controller = "Bunk"}. Executing action Viewtance.GA.Dormitories.BunkAppService.GetAll (Viewtance.GA.Application)
INFO 2018-06-24 10:32:46,447 [63 ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method Viewtance.GA.Dormitories.BunkAppService.GetAll (Viewtance.GA.Application) with arguments (Viewtance.GA.Dormitories.Dtos.GetAllBunksInput) - Validation state: Valid
INFO 2018-06-24 10:32:46,532 [19 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action method Viewtance.GA.Dormitories.BunkAppService.GetAll (Viewtance.GA.Application), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 84.7127ms.
INFO 2018-06-24 10:32:46,541 [19 ] .Mvc.Infrastructure.ObjectResultExecutor - Executing ObjectResult, writing value of type 'Abp.Web.Models.AjaxResponse'.
INFO 2018-06-24 10:32:46,542 [19 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action Viewtance.GA.Dormitories.BunkAppService.GetAll (Viewtance.GA.Application) in 107.9084ms
INFO 2018-06-24 10:32:46,542 [19 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 121.5354ms 200 application/json; charset=utf-8
DEBUG 2018-06-24 10:36:02,352 [19 ] Viewtance.SRP.Web.Chat.SignalR.ChatHub - A client is disconnected: eXd406xHH5rdND1JdyuEQA
INFO 2018-06-24 10:36:02,352 [19 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 526880.4817ms 101
INFO 2018-06-24 10:36:26,913 [19 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://mydomain.com/api/services/ga/Bunk/GetAll?filter=115&numberFilter=&descriptionFilter=&roomNameFilter=&userNameFilter=&stateIdFilter=&maxCheckInTimeFilter=&minCheckInTimeFilter=&maxCheckOutTimeFilter=&minCheckOutTimeFilter=&nameFilter=&sorting=bunk.number%20asc&skipCount=0&maxResultCount=10 application/json
INFO 2018-06-24 10:36:26,941 [63 ] ore.Mvc.Internal.ControllerActionInvoker - Route matched with {area = "ga", action = "GetAll", controller = "Bunk"}. Executing action Viewtance.GA.Dormitories.BunkAppService.GetAll (Viewtance.GA.Application)
INFO 2018-06-24 10:36:26,954 [63 ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method Viewtance.GA.Dormitories.BunkAppService.GetAll (Viewtance.GA.Application) with arguments (Viewtance.GA.Dormitories.Dtos.GetAllBunksInput) - Validation state: Valid
INFO 2018-06-24 10:36:50,686 [14 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://mydomain.com/lib/@aspnet/signalr/dist/browser/signalr.min.js/signalr.min.js.map
INFO 2018-06-24 10:36:50,694 [14 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 8.0557ms 302
INFO 2018-06-24 10:36:50,732 [37 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://mydomain.com/Error?statusCode=404
INFO 2018-06-24 10:36:50,741 [37 ] ore.Mvc.Internal.ControllerActionInvoker - Route matched with {action = "Index", controller = "Error", area = ""}. Executing action Viewtance.SRP.Web.Controllers.ErrorController.Index (Viewtance.SRP.Web.Mvc)
INFO 2018-06-24 10:36:50,742 [37 ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method Viewtance.SRP.Web.Controllers.ErrorController.Index (Viewtance.SRP.Web.Mvc) with arguments (404) - Validation state: Valid
INFO 2018-06-24 10:36:50,743 [37 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action method Viewtance.SRP.Web.Controllers.ErrorController.Index (Viewtance.SRP.Web.Mvc), returned result Microsoft.AspNetCore.Mvc.ViewResult in 0.0196ms.
INFO 2018-06-24 10:36:50,744 [37 ] Core.Mvc.ViewFeatures.ViewResultExecutor - Executing ViewResult, running view Error404.
INFO 2018-06-24 10:38:24,545 [39 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://mydomain.com/GA/Dormitory/Rooms
INFO 2018-06-24 10:38:24,554 [39 ] ore.Mvc.Internal.ControllerActionInvoker - Route matched with {area = "GA", action = "Rooms", controller = "Dormitory"}. Executing action Viewtance.SRP.Web.Areas.GA.Controllers.DormitoryController.Rooms (Viewtance.SRP.Web.Mvc)
INFO 2018-06-24 10:38:24,555 [39 ] uthorization.DefaultAuthorizationService - Authorization was successful.
INFO 2018-06-24 10:38:24,570 [39 ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method Viewtance.SRP.Web.Areas.GA.Controllers.DormitoryController.Rooms (Viewtance.SRP.Web.Mvc) - Validation state: Valid
INFO 2018-06-24 10:38:24,570 [39 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action method Viewtance.SRP.Web.Areas.GA.Controllers.DormitoryController.Rooms (Viewtance.SRP.Web.Mvc), returned result Microsoft.AspNetCore.Mvc.ViewResult in 0.0352ms.
INFO 2018-06-24 10:38:24,585 [19 ] Core.Mvc.ViewFeatures.ViewResultExecutor - Executing ViewResult, running view Rooms.
Please reference this #5267, it seems we encountered the same issue.