Skip to content

instance 起不来 #5585

@13567436138

Description

@13567436138
  • I have searched the issues of this repository and believe that this is not a duplicate.
  • I have checked the FAQ of this repository and believe that this is not a duplicate.

environment

  • canal version
  • mysql version

Issue Description

[root@canal-server-0 canal]# cat canal.log 
2026-04-20 04:23:17.082 [main] INFO  com.alibaba.otter.canal.deployer.CanalLauncher - ## set default uncaught exception handler
2026-04-20 04:23:17.088 [main] INFO  com.alibaba.otter.canal.deployer.CanalLauncher - ## load canal configurations
2026-04-20 04:23:17.710 [main] INFO  com.alibaba.otter.canal.deployer.CanalStarter - ## start the canal server.
2026-04-20 04:23:17.935 [main] INFO  com.alibaba.otter.canal.deployer.CanalController - ## start the canal server[10.251.0.59(10.251.0.59):11111]
2026-04-20 04:23:18.004 [main] INFO  com.alibaba.otter.canal.deployer.CanalStarter - ## the canal server is running now ......
2026-04-20 04:56:19.078 [New I/O server worker #1-3] ERROR com.alibaba.otter.canal.admin.handler.SessionHandler - something goes wrong with channel:[id: 0x16b8040c, /192.168.10.124:60514 => /10.251.0.59:11110], exception=java.lang.NegativeArraySizeException
        at org.jboss.netty.buffer.HeapChannelBuffer.<init>(HeapChannelBuffer.java:47)
        at org.jboss.netty.buffer.BigEndianHeapChannelBuffer.<init>(BigEndianHeapChannelBuffer.java:39)
        at org.jboss.netty.buffer.ChannelBuffers.buffer(ChannelBuffers.java:139)
        at org.jboss.netty.buffer.HeapChannelBufferFactory.getBuffer(HeapChannelBufferFactory.java:73)
        at org.jboss.netty.buffer.AbstractChannelBuffer.readBytes(AbstractChannelBuffer.java:306)
        at org.jboss.netty.handler.codec.replay.ReplayingDecoderBuffer.readBytes(ReplayingDecoderBuffer.java:369)
        at com.alibaba.otter.canal.server.netty.handler.FixedHeaderFrameDecoder.decode(FixedHeaderFrameDecoder.java:19)
        at com.alibaba.otter.canal.server.netty.handler.FixedHeaderFrameDecoder.decode(FixedHeaderFrameDecoder.java:15)
        at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:470)
        at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:443)
        at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:274)
        at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:261)
        at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:351)
        at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:282)
        at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:202)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:750)
[root@canal-admin-7b6467f785-q8ln2 logs]# tail -f admin.log 
2026-04-20 03:43:34.179 [main] INFO  com.alibaba.otter.canal.admin.CanalAdminApplication - Started CanalAdminApplication in 2.241 seconds (JVM running for 2.691)
2026-04-20 03:43:40.208 [http-nio-8089-exec-2] INFO  o.a.catalina.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring DispatcherServlet 'dispatcherServlet'
2026-04-20 03:43:40.209 [http-nio-8089-exec-2] INFO  org.springframework.web.servlet.DispatcherServlet - Initializing Servlet 'dispatcherServlet'
2026-04-20 03:43:40.210 [http-nio-8089-exec-2] INFO  org.springframework.web.servlet.DispatcherServlet - Completed initialization in 1 ms
2026-04-20 03:45:01.357 [pool-2-thread-1] ERROR c.a.otter.canal.admin.connector.SimpleAdminConnectors - connect to ip:10.251.0.59,port:11110,user:admin,password:123*****, failed
2026-04-20 03:45:01.358 [pool-2-thread-1] ERROR c.a.otter.canal.admin.connector.SimpleAdminConnectors - java.net.ConnectException: Connection refused
2026-04-20 04:10:14.621 [pool-3-thread-1] ERROR c.a.otter.canal.admin.connector.SimpleAdminConnectors - connect to ip:10.251.0.59,port:11110,user:admin,password:123*****, failed
2026-04-20 04:10:14.622 [pool-3-thread-1] ERROR c.a.otter.canal.admin.connector.SimpleAdminConnectors - java.net.ConnectException: Connection refused
2026-04-20 04:16:55.977 [pool-4-thread-1] ERROR c.a.otter.canal.admin.connector.SimpleAdminConnectors - connect to ip:10.251.0.59,port:11110,user:admin,password:123*****, failed
2026-04-20 04:16:55.978 [pool-4-thread-1] ERROR c.a.otter.canal.admin.connector.SimpleAdminConnectors - java.net.ConnectException: Connection refused

Steps to reproduce

Expected behaviour

Actual behaviour

# 配置你要监听的数据库
canal.instance.master.address=mysql.mysql.svc.cluster.local:3306
canal.instance.dbUsername=root
canal.instance.dbPassword=tXVC;Vo0cKERj7O2

# 过滤监听哪些表
canal.instance.filter.regex=test\\.user_actions

# 如果是推送到rabbitmq,需要配置 Routing Key
canal.mq.topic=mydb_binlog

If there is an exception, please attach the exception trace:

Just put your stack trace here!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions