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

ServerSelectionTimeoutError: #918

Open
Simpson877 opened this issue Mar 9, 2021 · 0 comments
Open

ServerSelectionTimeoutError: #918

Simpson877 opened this issue Mar 9, 2021 · 0 comments

Comments

@Simpson877
Copy link

there is a error when i want to save a oplog.timestmap ,here is command:
mongo-connector -m 'mongodb://user:password@192.168.166.1:27017,192.168.166.2:27017,192.168.166.3:27017/admin?authSource=admin&replicaSet=replica&readPreference=secondary' --no-dump

There error is :
ServerSelectionTimeoutError: 192.168.166.10:27017: [Errno 110] Connection timed out, Timeout: 30s, Topology Description: <TopologyDescription id: 60472a1dc68f740f4a2d4012, topology_type: ReplicaSetNoPrimary, servers: [<ServerDescription (u'192.168.166.10', 27017) server_type: Unknown, rtt: None, error=AutoReconnect(u'192.168.166.10:27017: [Errno 110] Connection timed out',)>]>

The host 192.168.166.10 is not my mongodb machine,it's seem that mongo-connector choose a server to connect by random,what should i can deal with?

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

1 participant