zhongjiajie commented on pull request #6269:
URL: https://github.com/apache/dolphinscheduler/pull/6269#issuecomment-953469430


   When I run python define code, I could see workflow was created and process 
instance start but failed. The screenshot as below
   
![image](https://user-images.githubusercontent.com/15820530/139180610-34240641-ce72-4636-8b07-ec7c7d86203f.png)
   
   And I see some error log look like
   
   ```log
   2021-10-28 11:17:07.160  INFO 30083 --- [tp905404580-123] 
o.a.d.a.service.impl.LoggerServiceImpl   : log host : 192.168.1.102 , logPath : 
 , logServer port : 50051
   2021-10-28 11:17:07.160  INFO 30083 --- [tp905404580-123] 
o.a.d.service.log.LogClientService       : roll view log, host : 192.168.1.102, 
port : 50051, path , skipLineNum 0 ,limit 1000
   2021-10-28 11:17:07.193  WARN 30083 --- [tp905404580-123] 
o.a.d.remote.NettyRemotingClient         : connect to 
Host{address='192.168.1.102:50051', ip='192.168.1.102', port=50051} error
   
   io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection 
refused: /192.168.1.102:50051
   Caused by: java.net.ConnectException: Connection refused
        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) 
~[na:1.8.0_231]
        at 
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) 
~[na:1.8.0_231]
        at 
io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:330)
 ~[netty-all-4.1.53.Final.jar:4.1.53.Final]
        at 
io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:334)
 ~[netty-all-4.1.53.Final.jar:4.1.53.Final]
        at 
io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:702) 
~[netty-all-4.1.53.Final.jar:4.1.53.Final]
        at 
io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:650)
 ~[netty-all-4.1.53.Final.jar:4.1.53.Final]
        at 
io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:576) 
~[netty-all-4.1.53.Final.jar:4.1.53.Final]
        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493) 
~[netty-all-4.1.53.Final.jar:4.1.53.Final]
        at 
io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
 ~[netty-all-4.1.53.Final.jar:4.1.53.Final]
        at 
io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) 
~[netty-all-4.1.53.Final.jar:4.1.53.Final]
        at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_231]
   
   2021-10-28 11:17:07.206 ERROR 30083 --- [tp905404580-123] 
o.a.d.service.log.LogClientService       : roll view log error
   
   org.apache.dolphinscheduler.remote.exceptions.RemotingException: connect to 
: Host{address='192.168.1.102:50051', ip='192.168.1.102', port=50051} fail
        at 
org.apache.dolphinscheduler.remote.NettyRemotingClient.sendSync(NettyRemotingClient.java:257)
 ~[classes/:na]
        at 
org.apache.dolphinscheduler.service.log.LogClientService.rollViewLog(LogClientService.java:94)
 ~[classes/:na]
        at 
org.apache.dolphinscheduler.api.service.impl.LoggerServiceImpl.queryLog(LoggerServiceImpl.java:108)
 [classes/:na]
        at 
org.apache.dolphinscheduler.api.controller.LoggerController.queryLog(LoggerController.java:82)
 [classes/:na]
        at 
org.apache.dolphinscheduler.api.controller.LoggerController$$FastClassBySpringCGLIB$$95a745ef.invoke(<generated>)
 [classes/:na]
        at 
org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) 
[spring-core-5.1.19.RELEASE.jar:5.1.19.RELEASE]
        at 
org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:752)
 [spring-aop-5.1.19.RELEASE.jar:5.1.19.RELEASE]
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
 [spring-aop-5.1.19.RELEASE.jar:5.1.19.RELEASE]
        at 
org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:88)
 [spring-aop-5.1.19.RELEASE.jar:5.1.19.RELEASE]
        at 
org.apache.dolphinscheduler.api.aspect.AccessLogAspect.doAround(AccessLogAspect.java:87)
 [classes/:na]
        at sun.reflect.GeneratedMethodAccessor182.invoke(Unknown Source) 
~[na:na]
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[na:1.8.0_231]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_231]
        at 
org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:644)
 [spring-aop-5.1.19.RELEASE.jar:5.1.19.RELEASE]
        at 
org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:633)
 [spring-aop-5.1.19.RELEASE.jar:5.1.19.RELEASE]
        at 
org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70)
 [spring-aop-5.1.19.RELEASE.jar:5.1.19.RELEASE]
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)
 [spring-aop-5.1.19.RELEASE.jar:5.1.19.RELEASE]
        at 
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:93)
 [spring-aop-5.1.19.RELEASE.jar:5.1.19.RELEASE]
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
 [spring-aop-5.1.19.RELEASE.jar:5.1.19.RELEASE]
        at 
org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:691)
 [spring-aop-5.1.19.RELEASE.jar:5.1.19.RELEASE]
        at 
org.apache.dolphinscheduler.api.controller.LoggerController$$EnhancerBySpringCGLIB$$2a60e4db.queryLog(<generated>)
 [classes/:na]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
~[na:1.8.0_231]
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
~[na:1.8.0_231]
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[na:1.8.0_231]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_231]
        at 
org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190)
 [spring-web-5.1.19.RELEASE.jar:5.1.19.RELEASE]
        at 
org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)
 [spring-web-5.1.19.RELEASE.jar:5.1.19.RELEASE]
        at 
org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:105)
 [spring-webmvc-5.1.19.RELEASE.jar:5.1.19.RELEASE]
        at 
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:892)
 [spring-webmvc-5.1.19.RELEASE.jar:5.1.19.RELEASE]
        at 
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)
 [spring-webmvc-5.1.19.RELEASE.jar:5.1.19.RELEASE]
        at 
org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
 [spring-webmvc-5.1.19.RELEASE.jar:5.1.19.RELEASE]
        at 
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040)
 [spring-webmvc-5.1.19.RELEASE.jar:5.1.19.RELEASE]
        at 
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)
 [spring-webmvc-5.1.19.RELEASE.jar:5.1.19.RELEASE]
        at 
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
 [spring-webmvc-5.1.19.RELEASE.jar:5.1.19.RELEASE]
        at 
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898)
 [spring-webmvc-5.1.19.RELEASE.jar:5.1.19.RELEASE]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) 
[javax.servlet-api-3.1.0.jar:3.1.0]
        at 
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
 [spring-webmvc-5.1.19.RELEASE.jar:5.1.19.RELEASE]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) 
[javax.servlet-api-3.1.0.jar:3.1.0]
        at 
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:763) 
[jetty-servlet-9.4.33.v20201020.jar:9.4.33.v20201020]
        at 
org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1633)
 [jetty-servlet-9.4.33.v20201020.jar:9.4.33.v20201020]
        at 
com.github.xiaoymin.swaggerbootstrapui.filter.SecurityBasicAuthFilter.doFilter(SecurityBasicAuthFilter.java:84)
 [swagger-bootstrap-ui-1.9.3.jar:na]
        at 
org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193) 
[jetty-servlet-9.4.33.v20201020.jar:9.4.33.v20201020]
        at 
org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1609)
 [jetty-servlet-9.4.33.v20201020.jar:9.4.33.v20201020]
        at 
com.github.xiaoymin.swaggerbootstrapui.filter.ProductionSecurityFilter.doFilter(ProductionSecurityFilter.java:53)
 [swagger-bootstrap-ui-1.9.3.jar:na]
        at 
org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193) 
[jetty-servlet-9.4.33.v20201020.jar:9.4.33.v20201020]
        at 
org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1609)
 [jetty-servlet-9.4.33.v20201020.jar:9.4.33.v20201020]
        at 
org.springframework.web.filter.CorsFilter.doFilterInternal(CorsFilter.java:97) 
[spring-web-5.1.19.RELEASE.jar:5.1.19.RELEASE]
        at 
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
 [spring-web-5.1.19.RELEASE.jar:5.1.19.RELEASE]
        at 
org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193) 
[jetty-servlet-9.4.33.v20201020.jar:9.4.33.v20201020]
        at 
org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1609)
 [jetty-servlet-9.4.33.v20201020.jar:9.4.33.v20201020]
        at 
org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
 [spring-web-5.1.19.RELEASE.jar:5.1.19.RELEASE]
        at 
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
 [spring-web-5.1.19.RELEASE.jar:5.1.19.RELEASE]
        at 
org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193) 
[jetty-servlet-9.4.33.v20201020.jar:9.4.33.v20201020]
        at 
org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1609)
 [jetty-servlet-9.4.33.v20201020.jar:9.4.33.v20201020]
        at 
org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
 [spring-web-5.1.19.RELEASE.jar:5.1.19.RELEASE]
        at 
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
 [spring-web-5.1.19.RELEASE.jar:5.1.19.RELEASE]
        at 
org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193) 
[jetty-servlet-9.4.33.v20201020.jar:9.4.33.v20201020]
        at 
org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1609)
 [jetty-servlet-9.4.33.v20201020.jar:9.4.33.v20201020]
        at 
org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:94)
 [spring-web-5.1.19.RELEASE.jar:5.1.19.RELEASE]
        at 
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
 [spring-web-5.1.19.RELEASE.jar:5.1.19.RELEASE]
        at 
org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193) 
[jetty-servlet-9.4.33.v20201020.jar:9.4.33.v20201020]
        at 
org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1609)
 [jetty-servlet-9.4.33.v20201020.jar:9.4.33.v20201020]
        at 
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
 [spring-web-5.1.19.RELEASE.jar:5.1.19.RELEASE]
        at 
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
 [spring-web-5.1.19.RELEASE.jar:5.1.19.RELEASE]
        at 
org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193) 
[jetty-servlet-9.4.33.v20201020.jar:9.4.33.v20201020]
        at 
org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1609)
 [jetty-servlet-9.4.33.v20201020.jar:9.4.33.v20201020]
        at 
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:561) 
[jetty-servlet-9.4.33.v20201020.jar:9.4.33.v20201020]
        at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) 
[jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]
        at 
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:602) 
[jetty-security-9.4.33.v20201020.jar:9.4.33.v20201020]
        at 
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) 
[jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]
        at 
org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
 [jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]
        at 
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1612)
 [jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]
        at 
org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
 [jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]
        at 
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1434)
 [jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]
        at 
org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
 [jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]
        at 
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501) 
[jetty-servlet-9.4.33.v20201020.jar:9.4.33.v20201020]
        at 
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1582)
 [jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]
        at 
org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
 [jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]
        at 
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1349)
 [jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]
        at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) 
[jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]
        at 
org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:766) 
[jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]
        at 
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) 
[jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]
        at org.eclipse.jetty.server.Server.handle(Server.java:516) 
[jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]
        at 
org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383) 
[jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]
        at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:556) 
[jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375) 
[jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]
        at 
org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:273) 
~[jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]
        at 
org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
 ~[jetty-io-9.4.33.v20201020.jar:9.4.33.v20201020]
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) 
~[jetty-io-9.4.33.v20201020.jar:9.4.33.v20201020]
        at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104) 
~[jetty-io-9.4.33.v20201020.jar:9.4.33.v20201020]
        at 
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)
 ~[jetty-util-9.4.33.v20201020.jar:9.4.33.v20201020]
        at 
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)
 ~[jetty-util-9.4.33.v20201020.jar:9.4.33.v20201020]
        at 
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)
 ~[jetty-util-9.4.33.v20201020.jar:9.4.33.v20201020]
        at 
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)
 ~[jetty-util-9.4.33.v20201020.jar:9.4.33.v20201020]
        at 
org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:375)
 ~[jetty-util-9.4.33.v20201020.jar:9.4.33.v20201020]
        at 
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:773)
 ~[jetty-util-9.4.33.v20201020.jar:9.4.33.v20201020]
        at 
org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:905)
 ~[jetty-util-9.4.33.v20201020.jar:9.4.33.v20201020]
        at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_231]
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to