开发者社区> 问答> 正文

集群模式,Instance 启动没反应

环境信息

canal version 1.1.4 mysql version 5.7

实际执行结果

Just put your stack trace here! 在Instance 启动没有反应.日志输出也无异常 2022-02-22 15:24:37.295 [http-nio-8089-exec-9] DEBUG o.s.boot.web.servlet.filter.OrderedRequestContextFilter - Bound request context to thread: org.apache.catalina.connector.RequestFacade@6811796f 2022-02-22 15:24:37.295 [http-nio-8089-exec-9] DEBUG org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'dispatcherServlet' processing PUT request for [/api/v1/canal/instance/status/11] 2022-02-22 15:24:37.295 [http-nio-8089-exec-9] DEBUG o.s.w.s.m.method.annotation.RequestMappingHandlerMapping - Looking up handler method for path /api/v1/canal/instance/status/11 2022-02-22 15:24:37.295 [http-nio-8089-exec-9] DEBUG o.s.w.s.m.method.annotation.RequestMappingHandlerMapping - Returning handler method [public com.alibaba.otter.canal.admin.model.BaseModel<java.lang.Boolean> com.alibaba.otter.canal.admin.controller.CanalInstanceController.instanceStart(java.lang.Long,java.lang.String,java.lang.String)] 2022-02-22 15:24:37.295 [http-nio-8089-exec-9] DEBUG o.s.beans.factory.support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'canalInstanceController' 2022-02-22 15:24:37.295 [http-nio-8089-exec-9] DEBUG org.springframework.web.cors.DefaultCorsProcessor - Skip CORS processing: response already contains "Access-Control-Allow-Origin" header 2022-02-22 15:24:37.298 [http-nio-8089-exec-9] DEBUG io.ebean.SUM - txn[1484] FindBean type[CanalInstanceConfig] origin[Dli-TS.A.A] exeMicros[703] rows[1] bind[11, ] 2022-02-22 15:24:37.299 [http-nio-8089-exec-9] DEBUG io.ebean.SUM - txn[1485] FindBean type[CanalInstanceConfig] origin[Dli-TS.A.A] exeMicros[455] rows[1] bind[11, ] 2022-02-22 15:24:37.300 [http-nio-8089-exec-9] DEBUG io.ebeaninternal.server.persist.DefaultPersister - Update skipped as bean is unchanged:com.alibaba.otter.canal.admin.model.CanalInstanceConfig@b 2022-02-22 15:24:37.302 [http-nio-8089-exec-9] DEBUG o.s.w.s.m.m.a.RequestResponseBodyMethodProcessor - Written [com.alibaba.otter.canal.admin.model.BaseModel@d8cac34] as "application/json" using [org.springframework.http.converter.json.MappingJackson2HttpMessageConverter@3a543f31] 2022-02-22 15:24:37.302 [http-nio-8089-exec-9] DEBUG org.springframework.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'dispatcherServlet': assuming HandlerAdapter completed request handling 2022-02-22 15:24:37.302 [http-nio-8089-exec-9] DEBUG org.springframework.web.servlet.DispatcherServlet - Successfully completed request 2022-02-22 15:24:37.302 [http-nio-8089-exec-9] DEBUG o.s.boot.web.servlet.filter.OrderedRequestContextFilter - Cleared thread-bound request context: org.apache.catalina.connector.RequestFacade@6811796f 2022-02-22 15:24:37.354 [http-nio-8089-exec-4] DEBUG o.s.boot.web.servlet.filter.OrderedRequestContextFilter - Bound request context to thread: org.apache.catalina.connector.RequestFacade@6811796f 2022-02-22 15:24:37.354 [http-nio-8089-exec-4] DEBUG org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'dispatcherServlet' processing GET request for [/api/v1/canal/instances] 2022-02-22 15:24:37.354 [http-nio-8089-exec-4] DEBUG o.s.w.s.m.method.annotation.RequestMappingHandlerMapping - Looking up handler method for path /api/v1/canal/instances 2022-02-22 15:24:37.354 [http-nio-8089-exec-4] DEBUG o.s.w.s.m.method.annotation.RequestMappingHandlerMapping - Returning handler method [public com.alibaba.otter.canal.admin.model.BaseModel<com.alibaba.otter.canal.admin.model.Pager<com.alibaba.otter.canal.admin.model.CanalInstanceConfig>> com.alibaba.otter.canal.admin.controller.CanalInstanceController.list(com.alibaba.otter.canal.admin.model.CanalInstanceConfig,com.alibaba.otter.canal.admin.model.Pager<com.alibaba.otter.canal.admin.model.CanalInstanceConfig>,java.lang.String)] 2022-02-22 15:24:37.354 [http-nio-8089-exec-4] DEBUG o.s.beans.factory.support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'canalInstanceController' 2022-02-22 15:24:37.354 [http-nio-8089-exec-4] DEBUG org.springframework.web.servlet.DispatcherServlet - Last-Modified value for [/api/v1/canal/instances] is: -1 2022-02-22 15:24:37.356 [http-nio-8089-exec-4] DEBUG io.ebean.SUM - txn[1487] FindCount exeMicros[503] rows[6] type[com.alibaba.otter.canal.admin.model.CanalInstanceConfig] predicates[] bind[] 2022-02-22 15:24:37.358 [http-nio-8089-exec-4] DEBUG io.ebean.SUM - txn[1488] FindMany type[CanalInstanceConfig] origin[Dli-TT.A.A] exeMicros[838] rows[6] predicates[] bind[] 2022-02-22 15:24:37.361 [pool-59-thread-1] DEBUG io.ebean.SUM - txn[1489] FindMany type[NodeServer] origin[DOnJ3y.A.A] exeMicros[1988] rows[3] predicates[t0.cluster_id = ?] bind[] 2022-02-22 15:24:37.362 [pool-48-thread-1] DEBUG io.ebean.SUM - txn[1493] FindMany type[NodeServer] origin[DOnJ3y.A.A] exeMicros[951] rows[3] predicates[t0.cluster_id = ?] bind[] 2022-02-22 15:24:37.362 [pool-54-thread-1] DEBUG io.ebean.SUM - txn[1490] FindMany type[NodeServer] origin[DOnJ3y.A.A] exeMicros[1082] rows[3] predicates[t0.cluster_id = ?] bind[] 2022-02-22 15:24:37.362 [pool-58-thread-1] DEBUG io.ebean.SUM - txn[1492] FindMany type[NodeServer] origin[DOnJ3y.A.A] exeMicros[633] rows[3] predicates[t0.cluster_id = ?] bind[] 2022-02-22 15:24:37.362 [pool-55-thread-1] DEBUG io.ebean.SUM - txn[1491] FindMany type[NodeServer] origin[DOnJ3y.A.A] exeMicros[1062] rows[3] predicates[t0.cluster_id = ?] bind[] 2022-02-22 15:24:37.362 [pool-59-thread-1] DEBUG o.s.beans.factory.support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'environment' 2022-02-22 15:24:37.362 [pool-59-thread-1] DEBUG o.s.core.env.PropertySourcesPropertyResolver - Found key 'canal.adminUser' in PropertySource 'applicationConfig: [classpath:/application.yml]' with value of type String 2022-02-22 15:24:37.362 [pool-59-thread-1] DEBUG o.s.core.env.PropertySourcesPropertyResolver - Found key 'canal.adminPasswd' in PropertySource 'applicationConfig: [classpath:/application.yml]' with value of type String 2022-02-22 15:24:37.363 [pool-48-thread-1] DEBUG o.s.beans.factory.support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'environment' 2022-02-22 15:24:37.363 [pool-48-thread-1] DEBUG o.s.core.env.PropertySourcesPropertyResolver - Found key 'canal.adminUser' in PropertySource 'applicationConfig: [classpath:/application.yml]' with value of type String 2022-02-22 15:24:37.363 [pool-48-thread-1] DEBUG o.s.core.env.PropertySourcesPropertyResolver - Found key 'canal.adminPasswd' in PropertySource 'applicationConfig: [classpath:/application.yml]' with value of type String 2022-02-22 15:24:37.363 [pool-55-thread-1] DEBUG o.s.beans.factory.support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'environment' 2022-02-22 15:24:37.363 [pool-55-thread-1] DEBUG o.s.core.env.PropertySourcesPropertyResolver - Found key 'canal.adminUser' in PropertySource 'applicationConfig: [classpath:/application.yml]' with value of type String 2022-02-22 15:24:37.363 [pool-55-thread-1] DEBUG o.s.core.env.PropertySourcesPropertyResolver - Found key 'canal.adminPasswd' in PropertySource 'applicationConfig: [classpath:/application.yml]' with value of type String 2022-02-22 15:24:37.363 [pool-58-thread-1] DEBUG o.s.beans.factory.support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'environment' 2022-02-22 15:24:37.363 [pool-58-thread-1] DEBUG o.s.core.env.PropertySourcesPropertyResolver - Found key 'canal.adminUser' in PropertySource 'applicationConfig: [classpath:/application.yml]' with value of type String 2022-02-22 15:24:37.363 [pool-58-thread-1] DEBUG o.s.core.env.PropertySourcesPropertyResolver - Found key 'canal.adminPasswd' in PropertySource 'applicationConfig: [classpath:/application.yml]' with value of type String 2022-02-22 15:24:37.364 [pool-54-thread-1] DEBUG o.s.beans.factory.support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'environment' 2022-02-22 15:24:37.364 [pool-54-thread-1] DEBUG o.s.core.env.PropertySourcesPropertyResolver - Found key 'canal.adminUser' in PropertySource 'applicationConfig: [classpath:/application.yml]' with value of type String 2022-02-22 15:24:37.364 [pool-54-thread-1] DEBUG o.s.core.env.PropertySourcesPropertyResolver - Found key 'canal.adminPasswd' in PropertySource 'applicationConfig: [classpath:/application.yml]' with value of type String 2022-02-22 15:24:37.365 [pool-4-thread-1] DEBUG io.ebean.SUM - txn[1494] FindMany type[NodeServer] origin[DOnJ3y.A.A] exeMicros[909] rows[3] predicates[t0.cluster_id = ?] bind[] 2022-02-22 15:24:37.365 [pool-4-thread-1] DEBUG o.s.beans.factory.support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'environment' 2022-02-22 15:24:37.366 [pool-4-thread-1] DEBUG o.s.core.env.PropertySourcesPropertyResolver - Found key 'canal.adminUser' in PropertySource 'applicationConfig: [classpath:/application.yml]' with value of type String 2022-02-22 15:24:37.366 [pool-4-thread-1] DEBUG o.s.core.env.PropertySourcesPropertyResolver - Found key 'canal.adminPasswd' in PropertySource 'applicationConfig: [classpath:/application.yml]' with value of type String 2022-02-22 15:24:37.367 [HikariPool-1 connection adder] DEBUG com.zaxxer.hikari.pool.HikariPool - HikariPool-1 - Added connection com.mysql.jdbc.JDBC4Connection@5e89079 2022-02-22 15:24:37.413 [pool-59-thread-1] DEBUG o.s.beans.factory.support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'environment' 2022-02-22 15:24:37.413 [pool-59-thread-1] DEBUG o.s.core.env.PropertySourcesPropertyResolver - Found key 'canal.adminUser' in PropertySource 'applicationConfig: [classpath:/application.yml]' with value of type String 2022-02-22 15:24:37.413 [pool-48-thread-1] DEBUG o.s.beans.factory.support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'environment' 2022-02-22 15:24:37.413 [pool-48-thread-1] DEBUG o.s.core.env.PropertySourcesPropertyResolver - Found key 'canal.adminUser' in PropertySource 'applicationConfig: [classpath:/application.yml]' with value of type String 2022-02-22 15:24:37.413 [pool-48-thread-1] DEBUG o.s.core.env.PropertySourcesPropertyResolver - Found key 'canal.adminPasswd' in PropertySource 'applicationConfig: [classpath:/application.yml]' with value of type String 2022-02-22 15:24:37.413 [pool-55-thread-1] DEBUG o.s.beans.factory.support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'environment' 2022-02-22 15:24:37.413 [pool-59-thread-1] DEBUG o.s.core.env.PropertySourcesPropertyResolver - Found key 'canal.adminPasswd' in PropertySource 'applicationConfig: [classpath:/application.yml]' with value of type String 2022-02-22 15:24:37.413 [pool-55-thread-1] DEBUG o.s.core.env.PropertySourcesPropertyResolver - Found key 'canal.adminUser' in PropertySource 'applicationConfig: [classpath:/application.yml]' with value of type String 2022-02-22 15:24:37.413 [pool-55-thread-1] DEBUG o.s.core.env.PropertySourcesPropertyResolver - Found key 'canal.adminPasswd' in PropertySource 'applicationConfig: [classpath:/application.yml]' with value of type String 2022-02-22 15:24:37.414 [pool-48-thread-1] ERROR c.a.otter.canal.admin.connector.SimpleAdminConnectors - java.net.ConnectException: Connection refused 2022-02-22 15:24:37.414 [pool-59-thread-1] ERROR c.a.otter.canal.admin.connector.SimpleAdminConnectors - java.net.ConnectException: Connection refused 2022-02-22 15:24:37.414 [pool-48-thread-1] DEBUG o.s.beans.factory.support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'environment' 2022-02-22 15:24:37.414 [pool-55-thread-1] ERROR c.a.otter.canal.admin.connector.SimpleAdminConnectors - java.net.ConnectException: Connection refused 2022-02-22 15:24:37.414 [pool-48-thread-1] DEBUG o.s.core.env.PropertySourcesPropertyResolver - Found key 'canal.adminUser' in PropertySource 'applicationConfig: [classpath:/application.yml]' with value of type String 2022-02-22 15:24:37.414 [pool-59-thread-1] DEBUG o.s.beans.factory.support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'environment' 2022-02-22 15:24:37.414 [pool-48-thread-1] DEBUG o.s.core.env.PropertySourcesPropertyResolver - Found key 'canal.adminPasswd' in PropertySource 'applicationConfig: [classpath:/application.yml]' with value of type String 2022-02-22 15:24:37.414 [pool-59-thread-1] DEBUG o.s.core.env.PropertySourcesPropertyResolver - Found key 'canal.adminUser' in PropertySource 'applicationConfig: [classpath:/application.yml]' with value of type String 2022-02-22 15:24:37.414 [pool-55-thread-1] DEBUG o.s.beans.factory.support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'environment' 2022-02-22 15:24:37.414 [pool-59-thread-1] DEBUG o.s.core.env.PropertySourcesPropertyResolver - Found key 'canal.adminPasswd' in PropertySource 'applicationConfig: [classpath:/application.yml]' with value of type String 2022-02-22 15:24:37.414 [pool-55-thread-1] DEBUG o.s.core.env.PropertySourcesPropertyResolver - Found key 'canal.adminUser' in PropertySource 'applicationConfig: [classpath:/application.yml]' with value of type String 2022-02-22 15:24:37.414 [pool-55-thread-1] DEBUG o.s.core.env.PropertySourcesPropertyResolver - Found key 'canal.adminPasswd' in PropertySource 'applicationConfig: [classpath:/application.yml]' with value of type String 2022-02-22 15:24:37.414 [pool-48-thread-1] ERROR c.a.otter.canal.admin.connector.SimpleAdminConnectors - java.net.ConnectException: Connection refused 2022-02-22 15:24:37.414 [pool-55-thread-1] ERROR c.a.otter.canal.admin.connector.SimpleAdminConnectors - java.net.ConnectException: Connection refused 2022-02-22 15:24:37.414 [pool-59-thread-1] ERROR c.a.otter.canal.admin.connector.SimpleAdminConnectors - java.net.ConnectException: Connection refused 2022-02-22 15:24:37.417 [pool-54-thread-1] DEBUG o.s.beans.factory.support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'environment' 2022-02-22 15:24:37.417 [pool-58-thread-1] DEBUG o.s.beans.factory.support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'environment' 2022-02-22 15:24:37.417 [pool-54-thread-1] DEBUG o.s.core.env.PropertySourcesPropertyResolver - Found key 'canal.adminUser' in PropertySource 'applicationConfig: [classpath:/application.yml]' with value of type String 2022-02-22 15:24:37.417 [pool-58-thread-1] DEBUG o.s.core.env.PropertySourcesPropertyResolver - Found key 'canal.adminUser' in PropertySource 'applicationConfig: [classpath:/application.yml]' with value of type String 2022-02-22 15:24:37.417 [pool-54-thread-1] DEBUG o.s.core.env.PropertySourcesPropertyResolver - Found key 'canal.adminPasswd' in PropertySource 'applicationConfig: [classpath:/application.yml]' with value of type String 2022-02-22 15:24:37.417 [pool-58-thread-1] DEBUG o.s.core.env.PropertySourcesPropertyResolver - Found key 'canal.adminPasswd' in PropertySource 'applicationConfig: [classpath:/application.yml]' with value of type String 2022-02-22 15:24:37.417 [pool-58-thread-1] ERROR c.a.otter.canal.admin.connector.SimpleAdminConnectors - java.net.ConnectException: Connection refused 2022-02-22 15:24:37.417 [pool-54-thread-1] ERROR c.a.otter.canal.admin.connector.SimpleAdminConnectors - java.net.ConnectException: Connection refused 2022-02-22 15:24:37.417 [pool-54-thread-1] DEBUG o.s.beans.factory.support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'environment' 2022-02-22 15:24:37.417 [pool-54-thread-1] DEBUG o.s.core.env.PropertySourcesPropertyResolver - Found key 'canal.adminUser' in PropertySource 'applicationConfig: [classpath:/application.yml]' with value of type String 2022-02-22 15:24:37.417 [pool-54-thread-1] DEBUG o.s.core.env.PropertySourcesPropertyResolver - Found key 'canal.adminPasswd' in PropertySource 'applicationConfig: [classpath:/application.yml]' with value of type String 2022-02-22 15:24:37.417 [pool-58-thread-1] DEBUG o.s.beans.factory.support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'environment' 2022-02-22 15:24:37.417 [pool-58-thread-1] DEBUG o.s.core.env.PropertySourcesPropertyResolver - Found key 'canal.adminUser' in PropertySource 'applicationConfig: [classpath:/application.yml]' with value of type String 2022-02-22 15:24:37.417 [pool-58-thread-1] DEBUG o.s.core.env.PropertySourcesPropertyResolver - Found key 'canal.adminPasswd' in PropertySource 'applicationConfig: [classpath:/application.yml]' with value of type String 2022-02-22 15:24:37.418 [pool-54-thread-1] ERROR c.a.otter.canal.admin.connector.SimpleAdminConnectors - java.net.ConnectException: Connection refused 2022-02-22 15:24:37.418 [pool-4-thread-1] DEBUG o.s.beans.factory.support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'environment' 2022-02-22 15:24:37.418 [pool-4-thread-1] DEBUG o.s.core.env.PropertySourcesPropertyResolver - Found key 'canal.adminUser' in PropertySource 'applicationConfig: [classpath:/application.yml]' with value of type String 2022-02-22 15:24:37.418 [pool-58-thread-1] ERROR c.a.otter.canal.admin.connector.SimpleAdminConnectors - java.net.ConnectException: Connection refused 2022-02-22 15:24:37.418 [pool-4-thread-1] DEBUG o.s.core.env.PropertySourcesPropertyResolver - Found key 'canal.adminPasswd' in PropertySource 'applicationConfig: [classpath:/application.yml]' with value of type String 2022-02-22 15:24:37.418 [pool-4-thread-1] ERROR c.a.otter.canal.admin.connector.SimpleAdminConnectors - java.net.ConnectException: Connection refused 2022-02-22 15:24:37.418 [pool-4-thread-1] DEBUG o.s.beans.factory.support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'environment' 2022-02-22 15:24:37.418 [pool-4-thread-1] DEBUG o.s.core.env.PropertySourcesPropertyResolver - Found key 'canal.adminUser' in PropertySource 'applicationConfig: [classpath:/application.yml]' with value of type String 2022-02-22 15:24:37.418 [pool-4-thread-1] DEBUG o.s.core.env.PropertySourcesPropertyResolver - Found key 'canal.adminPasswd' in PropertySource 'applicationConfig: [classpath:/application.yml]' with value of type String 2022-02-22 15:24:37.419 [pool-4-thread-1] ERROR c.a.otter.canal.admin.connector.SimpleAdminConnectors - java.net.ConnectException: Connection refused 2022-02-22 15:24:37.419 [http-nio-8089-exec-4] DEBUG o.s.w.s.m.m.a.RequestResponseBodyMethodProcessor - Written [com.alibaba.otter.canal.admin.model.BaseModel@20f5c4a7] as "application/json" using [org.springframework.http.converter.json.MappingJackson2HttpMessageConverter@3a543f31] 2022-02-22 15:24:37.419 [http-nio-8089-exec-4] DEBUG org.springframework.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'dispatcherServlet': assuming HandlerAdapter completed request handling 2022-02-22 15:24:37.419 [http-nio-8089-exec-4] DEBUG org.springframework.web.servlet.DispatcherServlet - Successfully completed request 2022-02-22 15:24:37.419 [http-nio-8089-exec-4] DEBUG o.s.boot.web.servlet.filter.OrderedRequestContextFilter - Cleared thread-bound request context: org.apache.catalina.connector.RequestFacade@6811796f ^C

原提问者GitHub用户kennethToyuan

展开
收起
后端老大 2023-04-26 16:33:56 298 0
1 条回答
写回答
取消 提交回答
  • 检查下canal-server有没正常按照local模式启动,链接上canal-admin地址

    原回答者GitHub用户agapple

    2023-04-26 18:59:05
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载