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

[v2.6.4]对于连接到ssl加密的mongodb数据库,all&&full模式报错,但是incr同步正常。 #628

Closed
Steloj-shaw opened this issue Sep 16, 2021 · 3 comments

Comments

@Steloj-shaw
Copy link

源端:mongodb v3.2.22 社区版
同步软件: mongoshake v2.6.4
目标端: mongodb v3.4.23 社区版

源端mongodb加密配置:
ssl:
mode: requireSSL
PEMKeyFile: /mongodb/data_32/tls/server.pem
CAFile: /mongodb/data_32/tls/cafile.pem
allowConnectionsWithoutCertificates : true

mongoshake相关ssl配置

enable source ssl

mongo_ssl_root_ca_file = /mongoshake/tls/cafile.pem

目标端mongodb无加密

=========================================================================
mongoshake以all,或者fall模式启动,启动命令:/mongoshake/mongoshake/264/collector.linux -conf=/mongoshake/conf/mongoshake.conf
运行一分钟左右后终端页面报错,并指令终止:
start document replication failed: ping to mongodb://mongoshake_reader:@mongodbtest01:23636/admin failed: server selection error: server selection timeout, current topology: { Type: Unknown, Servers: [{ Addr: mongodbtest01:23636, Type: Unknown, State: Connected, Average RTT: 0, Last error: connection() : connection(mongodbtest01:23636[-64]) incomplete read of message header: EOF }, ] }
[21:07:38 CST 2021/09/16] [CRIT] (main.startup:140) run replication failed: start document replication failed: ping to mongodb://mongoshake_reader:
@mongodbtest01:23636/admin failed: server selection error: server selection timeout, current topology: { Type: Unknown, Servers: [{ Addr: mongodbtest01:23636, Type: Unknown, State: Connected, Average RTT: 0, Last error: connection() : connection(mongodbtest01:23636[-64]) incomplete read of message header: EOF }, ] }

连接期间源端加密数据库日志报错:
Thu Sep 16 21:16:33.932 I NETWORK [initandlisten] connection accepted from 192.168.1.41:50412 #2865 (3 connections now open)
Thu Sep 16 21:16:33.932 I NETWORK [conn2865] AssertionException handling request, closing client connection: 17189 The server is configured to only allow SSL connections
Thu Sep 16 21:16:34.432 I NETWORK [initandlisten] connection accepted from 192.168.1.41:50414 #2866 (3 connections now open)
Thu Sep 16 21:16:34.433 I NETWORK [conn2866] AssertionException handling request, closing client connection: 17189 The server is configured to only allow SSL connections

=========================================================================
mongoshake以incr模式启动
数据同步、DDL同步一切正常。

@zhangst
Copy link
Collaborator

zhangst commented Sep 17, 2021

这个应该是全量同步建立分析集合名称的时候,没有支持SSL。
我在下一个版本中补上这点。

@zhangst
Copy link
Collaborator

zhangst commented Sep 25, 2021

It's not work now. There is a problem in the version, we will fix it in the next version

@zhangst
Copy link
Collaborator

zhangst commented Nov 23, 2021

e2b7a08

@zhangst zhangst closed this as completed Nov 23, 2021
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