Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

com.alibaba.otter.canal.common.CanalException: com.alibaba.otter.canal.common.CanalException: instance : example config is not found #5308

Open
idealzouhu opened this issue Oct 29, 2024 · 1 comment

Comments

@idealzouhu
Copy link

Problem Description

Using Docker to start the server, the instance was not created successfully.

docker run -d ^
  --name canal-server ^
  --restart always ^
  -p 11111:11111 ^
  --privileged=true ^
  -e canal.destinations=example ^
  -e canal.instance.mysql.slaveId=1234  ^
  -e canal.instance.master.address=host.docker.internal:3306 ^
  -e canal.instance.dbUsername=canal ^
  -e canal.instance.dbPassword=canal ^
  -e canal.instance.connectionCharset=UTF-8 ^
  -e canal.instance.tsdb.enable=true ^
  -e canal.instance.gtidon=false ^
  -e canal.instance.filter.regex=.\*\\\\..\* ^
  -e canal.admin.manager=host.docker.internal:8089 ^
  -e canal.admin.port=11110 ^
  -e canal.admin.user=admin ^
  -e canal.admin.passwd=4ACFE3202A5FF5CF467898FC58AAB1D615029441 ^
  -m 4096m ^
  canal/canal-server:v1.1.7

Error Message

sh-4.2# tail /home/admin/canal-server/logs/canal/canal.log
        at com.alibaba.otter.canal.server.embedded.CanalServerWithEmbedded.start(CanalServerWithEmbedded.java:130)
        at com.alibaba.otter.canal.deployer.CanalController$1.processActiveEnter(CanalController.java:159)
        at com.alibaba.otter.canal.common.zookeeper.running.ServerRunningMonitor.processActiveEnter(ServerRunningMonitor.java:247)
        at com.alibaba.otter.canal.common.zookeeper.running.ServerRunningMonitor.start(ServerRunningMonitor.java:100)
        at com.alibaba.otter.canal.deployer.CanalController.start(CanalController.java:538)
        at com.alibaba.otter.canal.deployer.CanalStarter.start(CanalStarter.java:88)
        at com.alibaba.otter.canal.deployer.CanalLauncher.main(CanalLauncher.java:124)
Caused by: com.alibaba.otter.canal.common.CanalException: com.alibaba.otter.canal.common.CanalException: instance : example config is not found
Caused by: com.alibaba.otter.canal.common.CanalException: instance : example config is not found
2024-10-29 04:09:07.835 [main] INFO  com.alibaba.otter.canal.deployer.CanalStarter - ## the canal server is running now ......
@dyrnq
Copy link

dyrnq commented Nov 1, 2024

https://github.com/alibaba/canal/wiki/Canal-Admin-Guide 文档里有提,需要在canal-admin的后台操作新增example instance 的配置

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants