Проблема с коммуникацией http2 в Openshift - PullRequest
0 голосов
/ 01 апреля 2020

У меня проблема со связью http2 в Openshift между модулями. Версия:

[root@localhost ~]# minishift version
minishift v1.34.2+2410ad2
CDK v3.12.0-1

Я маршрутизирую приложение клиента на сервер через порт 443, маршрутизатор меняет порт на 31111. Я тоже пробовал этот параметр:

  oc set env dc/grpcserver ROUTER_ENABLE_HTTP2=true

Какие журналы можно проверить на предмет расследования (может быть, какие o c команды я могу использовать)? Теперь я получаю следующую ошибку:

Servlet.service () для сервлета [dispatcherServlet] в контексте с путем [] вызвала исключение [Ошибка обработки запроса; вложенное исключение: io.grp c .StatusRuntimeException: UNAVAILABLE: сеть закрыта по неизвестной причине] с root причиной io.grp c .StatusRuntimeException: UNAVAILABLE: сеть закрыта по неизвестной причине в io.grp c .stub .ClientCalls.toStatusRuntimeException (ClientCalls. java: 240) ~ [grp c -stub-1.28.0.jar! /: 1.28.0] в io.grp c .stub.ClientCalls.getUnchecked (ClientCalls. java: 221) ~ [grp c -stub-1.28.0.jar! /: 1.28.0] по адресу io.grp c .stub.ClientCalls.blockingUnaryCall (ClientCalls. java: 140) ~ [grp c -stub-1.28.0.jar! /: 1.28.0] в com.grp c .getAccountsClasses.AccountServiceGrpc $ AccountServiceBlockingStub.findAccountByIban (AccountServiceGrp c. java: 375) ~ [классы ! /: 0.0.1-SNAPSHOT] в com.example.democlient.controller.TestClientController.findAccountByIban (TestClientController. java: 90) ~ [классы! /: 0.0.1-SNAPSHOT] в sun.reflect.NativeMetholAccess0 (Собственный метод) ~ [na: 1.8.0_242] at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl. java: 62) ~ [na: 1.8.0_242] в sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl. java: 43) ~ [na: 1.8.0_242] в java .lang.reflect.Method.invoke (Метод. java: 498) ~ [na: 1.8.0_242] в org.springframework.web.method.support.InvocableHandlerMethod.doInvoke (InvocableHandlerMethod. java: 190) ~ [spring-web-5.2.1. RELEASE.jar! /: 5.2.1.RELEASE] at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest (InvocableHandlerMethod. java: 138) ~ [spring-web-5.2.1.RELEASE.jar! : 5.2.1.RELEASE] at org.springframework.web.servlet. mvc .method.annotation.ServletInvocableHandlerMethod.invokeAndHandle (ServletInvocableHandlerMethod. java: 106) ~ [пружинная сеть * 1039 .jar! /: 5.2.1.RELEASE] в org.springframework.web.servlet. mvc .method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod (RequestMappingHandlerAdapter. java: 888) ~ [spring-web * 1042 .1.RELEASE.jar! /: 5.2.1.RELEASE] в org.springframework.web.servlet. mvc .method.annotation.Request MappingHandlerAdapter.handleInternal (RequestMappingHandlerAdapter. java: 793) ~ [spring-web mvc -5.2.1.RELEASE.jar! /: 5.2.1.RELEASE] по адресу org.springframework.web.servlet. mvc. method.AbstractHandlerMethodAdapter.handle (AbstractHandlerMethodAdapter. java: 87) ~ [spring-web mvc -5.2.1.RELEASE.jar! /: 5.2.1.RELEASE] в org.springframework.web.servlet.DispatcherServlet. doDispatch (DispatcherServlet. java: 1040) ~ [spring-web mvc -5.2.1.RELEASE.jar! /: 5.2.1.RELEASE] в org.springframework.web.servlet.DispatcherServlet.doService (DispatcherServlet. java: 943) ~ [spring-web mvc -5.2.1.RELEASE.jar! /: 5.2.1.RELEASE] в org.springframework.web.servlet.FrameworkServlet.processRequest (FrameworkServlet. java: 1006) ~ [spring-web mvc -5.2.1.RELEASE.jar! /: 5.2.1.RELEASE] в org.springframework.web.servlet.FrameworkServlet.doGet (FrameworkServlet. java: 898) ~ [ spring-web mvc -5.2.1.RELEASE.jar! /: 5.2.1.RELEASE] по адресу javax.servlet.http.HttpServlet.service (HttpServlet. java: 634) ~ [tomcat-embed-core- ! 9.0.27.jar /: 9. 0.27] at org.springframework.web.servlet.FrameworkServlet.service (FrameworkServlet. java: 883) ~ [spring-web mvc -5.2.1.RELEASE.jar! /: 5.2.1.RELEASE] в javax .servlet.http.HttpServlet.service (HttpServlet. java: 741) ~ [tomcat-embed-core-9.0.27.jar! /: 9.0.27] at org. apache .catalina.core.ApplicationFilterChain. internalDoFilter (ApplicationFilterChain. java: 231) ~ [tomcat-embed-core-9.0.27.jar! /: 9.0.27] в орг. apache .catalina.core. ApplicationFilterChain.doFilter (ApplicationFilterChain. java: 166) ~ [tomcat-embed-core-9.0.27.jar! /: 9.0.27] в орг. apache .tomcat.websocket.server.WsFilter.doFilter (WsFilter . java: 53) ~ [tomcat-embed-websocket-9.0.27.jar! /: 9.0.27] at org. apache .catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain. java: 193) ~ [tomcat-embed-core-9.0.27.jar! /: 9.0.27] в орг. apache .catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain. java: 166) ~ [tomcat-embed-core -9.0.27.jar! /: 9.0.27] at org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter (FilterChainProxy. java: 320) ~ [spring-security-web-5.2.1.RELEASE. jar! /: 5.2.1.RELEASE] в org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke (FilterSecurityInterceptor. java: 126) ~ [spring-security-web-5.2.1.RELEASE.jar ! /: 5.2.1.RELEASE] at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter (FilterSecurityInterceptor. java: 90) ~ [spring-security -web-5.2.1.RELEASE.jar! /: 5.2.1.RELEASE] в org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter (FilterChainProxy. java: 334) ~ [spring-security-web- 5.2.1.RELEASE.jar! /: 5.2.1.RELEASE] в org.springframework.security.web.access.ExceptionTranslationFilter.doFilter (ExceptionTranslationFilter. java: 118) ~ [spring-security-web-5.2.1 .RELEASE.jar! /: 5.2.1.RELEASE] at org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter (FilterChainProxy. java: 334) ~ [spring-security-web-5.2.1.RELEASE. jar! /: 5.2.1.RELEASE] в org.springframework.security.web.session.SessionManagementFilter.doFilter (SessionManagementFilter. java: 137) ~ [spring-security-web-5.2.1.RELEASE.jar! / : 5.2.1.RELEASE] at org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter (FilterChainProxy. java: 334) ~ [spring-security-web-5.2.1.RELEASE.jar! /: 5.2. 1.RELEASE] at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter (AnonymousAuthenticationF ilter. java: 111) ~ [spring-security-web-5.2.1.RELEASE.jar! /: 5.2.1.RELEASE] в org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter (FilterChainProxy. java: 334) ~ [spring-security-web-5.2.1.RELEASE.jar! /: 5.2.1.RELEASE] в org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter (SecurityContextHolderAwareRequestFilter: *. 158) ~ [spring-security-web-5.2.1.RELEASE.jar! /: 5.2.1.RELEASE] в org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter (FilterChainProxy. java: 334) ~ [spring-security-web-5.2.1.RELEASE.jar! /: 5.2.1.RELEASE] в org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter (RequestCacheAwareFilter. java: 63) ~ [spring- security-web-5.2.1.RELEASE.jar! /: 5.2.1.RELEASE] в org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter (FilterChainProxy. java: 334) ~ [spring-security-web -5.2.1.RELEASE.jar! /: 5.2.1.RELEASE] на org.springframework.security.web.authentic ation.logout.LogoutFilter.doFilter (LogoutFilter. java: 116) ~ [spring-security-web-5.2.1.RELEASE.jar! /: 5.2.1.RELEASE] в org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter (FilterChainProxy. java: 334) ~ [spring-security-web-5.2.1.RELEASE.jar! /: 5.2.1.RELEASE] в org.springframework.security.web.header.HeaderWriterFilter. doHeadersAfter (HeaderWriterFilter. java: 92) ~ [spring-security-web-5.2.1.RELEASE.jar! /: 5.2.1.RELEASE] в org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal (HeaderWriterFilter) . java: 77) ~ [spring-security-web-5.2.1.RELEASE.jar! /: 5.2.1.RELEASE] по адресу org.springframework.web.filter.OncePerRequestFilter.doFilter (OncePerRequestFilter. java: 119) ~ [spring-web-5.2.1.RELEASE.jar! /: 5.2.1.RELEASE] в org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter (FilterChainProxy. java: 334) ~ [spring -security-web-5.2.1.RELEASE.jar! /: 5.2.1.RELEASE] на org.springframework. security.web.context.SecurityContextPersistenceFilter.doFilter (SecurityContextPersistenceFilter. java: 105) ~ [spring-security-web-5.2.1.RELEASE.jar! /: 5.2.1.RELEASE] в org.springframework.security.web .FilterChainProxy $ VirtualFilterChain.doFilter (FilterChainProxy. java: 334) ~ [spring-security-web-5.2.1.RELEASE.jar! /: 5.2.1.RELEASE] по адресу org.springframework.security.web.context. request.asyn c .WebAsyncManagerIntegrationFilter.doFilterInternal (WebAsyncManagerIntegrationFilter. java: 56) ~ [spring-security-web-5.2.1.RELEASE.jar! /: 5.2.1.RELEASE] в org.springframework.web. filter.OncePerRequestFilter.doFilter (OncePerRequestFilter. java: 119) ~ [spring-web-5.2.1.RELEASE.jar! /: 5.2.1.RELEASE] в org.springframework.security.web.FilterChainProxy $ VirtualFilterChain. (FilterChainProxy. java: 334) ~ [spring-security-web-5.2.1.RELEASE.jar! /: 5.2.1.RELEASE] в org.springframework.security.web.FilterChainProxy.doFilterInternal (FilterChainProxy. java: 215) ~ [spring-security-web-5.2.1.RELEASE.jar! /: 5 .2.1.RELEASE] at org.springframework.security.web.FilterChainProxy.doFilter (FilterChainProxy. java: 178) ~ [spring-security-web-5.2.1.RELEASE.jar! /: 5.2.1.RELEASE] в org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate (DelegatingFilterProxy. java: 358) ~ [spring-web-5.2.1.RELEASE.jar! /: 5.2.1.RELEASE] в org.springframework.web. filter.DelegatingFilterProxy.doFilter (DelegatingFilterProxy. java: 271) ~ [spring-web-5.2.1.RELEASE.jar! /: 5.2.1.RELEASE] в орг. apache .catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain. java: 193) ~ [tomcat-embed-core-9.0.27.jar! /: 9.0.27] в org. apache .catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain. java: 166) ~ [tomcat-embed-core-9.0.27.jar! /: 9.0.27] на org.springframework.web.filter.RequestContextFilter.doFilterInternal (RequestContextFilter. java: 100) ~ [spring-web-5.2 .1.RELEASE.jar! /: 5.2.1.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter (OncePerRequestFilter. java: 119) ~ [весна -web-5.2.1.RELEASE.jar! /: 5.2.1.RELEASE] at org. apache .catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain. java: 193) ~ [tomcat-embed-core- 9.0.27.jar! /: 9.0.27] at org. apache .catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain. java: 166) ~ [tomcat-embed-core-9.0.27.jar! / : 9.0.27] at org.springframework.web.filter.FormContentFilter.doFilterInternal (FormContentFilter. java: 93) ~ [spring-web-5.2.1.RELEASE.jar! /: 5.2.1.RELEASE] в org .springframework.web.filter.OncePerRequestFilter.doFilter (OncePerRequestFilter. java: 119) ~ [spring-web-5.2.1.RELEASE.jar! /: 5.2.1.RELEASE] в орг. apache .catalina. core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain. java: 193) ~ [tomcat-embed-core-9.0.27.jar! /: 9.0.27] в орг. apache .catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChater. . java: 166) ~ [tomcat-embed-core-9.0.27.jar! /: 9.0.27] в org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal (CharacterEncodingFilter. java: 201 ) ~ [spring-web-5.2.1.RELEASE.jar! /: 5.2.1.RELEASE] в org.springframework.web.filter.OncePerRequestFilter.doFilter (OncePerRequestFilter. java: 119) ~ [spring-web- 5.2.1.RELEASE.jar! /: 5.2.1.RELEASE] at org. apache .catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain. java: 193) ~ [tomcat-embed-core-9.0.27 .jar! /: 9.0.27] at org. apache .catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain. java: 166) ~ [tomcat-embed-core-9.0.27.jar! /: 9.0. 27] at org. apache .catalina.core.StandardWrapperValve.invoke (StandardWrapperValve. java: 202) ~ [tomcat-embed-core-9.0.27.jar! /: 9.0.27] в орг. apache .catalina.core.StandardContextValve.invoke (StandardContextValve. java: 96) [tomcat-embed-core-9.0.27.jar! /: 9.0.27] в орг. apache .catalina.authenticator.AuthenticatorBase. invoke (AuthenticatorBase. java: 526) [tomcat-embed-core-9.0.27.jar! /: 9.0.27] в org. apache .catalina.core.StandardHostValve.invoke (StandardHostValve. java: 139) [tomcat-embed-core-9.0.27.jar! /: 9.0.27] в орг. apache .catalina.valves.ErrorReportValve.invoke (ErrorReportValve. java: 92) [tomcat -embed-core-9.0.27.jar! /: 9.0.27] в орг. apache .catalina.core.StandardEngineValve.invoke (StandardEngineValve. java: 74) [tomcat-embed-core-9.0.27 .jar! /: 9.0.27] at org. apache .catalina.valves.RemoteIpValve.invoke (RemoteIpValve. java: 747) [tomcat-embed-core-9.0.27.jar! /: 9.0.27 ] в орг. apache .catalina.connector.CoyoteAdapter.service (CoyoteAdapter. java: 343) [tomcat-embed-core-9.0.27.jar! /: 9.0.27] в орг. apache. coyote.http11.Http11Processor.service (Http11Processor. java: 408) [tomcat-embed-core-9.0.27.jar! /: 9.0.27] at org. apache .coyote.AbstractProcessorLight.process (AbstractProcessorLight. java: 66) [tomcat-embed-core-9.0.27.jar! /: 9.0.27] в орг. apache .coyote.AbstractProtocol $ ConnectionHandler.process (AbstractProtocol. java: 861) [tomcat -embed-core-9.0.27.jar! /: 9.0.27] в орг. apache .tomcat.util. net .NioEndpoint $ SocketProcessor.doRun (NioEndpoint. * 114 7 *: 1579) [tomcat-embed-core-9.0.27.jar! /: 9.0.27] at org. apache .tomcat.util. net .SocketProcessorBase.run (SocketProcessorBase. java: 49 ) [tomcat-embed-core-9.0.27.jar! /: 9.0.27] в java .util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor. java: 1149) [na: 1.8.0_242] в java .util.concurrent.ThreadPoolExecutor $ Worker.run (ThreadPoolExecutor. java: 624) [na: 1.8.0_242] в орг. apache .tomcat.util.threads.TaskThread $ WrappingRunnable.run (TaskThread. java: 61) [tomcat-embed-core-9.0.27.jar! /: 9.0.27] в java .lang.Thread.run (Тема. java: 748) [na: 1.8.0_242]

Спасибо за все ответы

...