mongodb - "execution expired" mongo ruby driver on connecting to replica set -


i keep getting following error while trying connect mongodb replica set. unable figure out issue here.

2.2.0 :026 > require 'mongo' 2.2.0 :026 > client = mongo::client.new(["#{db[:host]}:#{db[:port]}"], 2.2.0 :027 >       :database => db[:name], 2.2.0 :028 >       :replica_set => db[:replica_set], 2.2.0 :029 >       :user => db[:user], 2.2.0 :030 >       :password => db[:password]) d, [2016-01-27t18:20:47.883886 #3743] debug -- : mongodb | adding mongo-replica-1:27028 cluster. d, [2016-01-27t18:20:49.005494 #3743] debug -- : mongodb | execution expired d, [2016-01-27t18:20:50.376267 #3743] debug -- : mongodb | execution expired d, [2016-01-27t18:20:58.096017 #3743] debug -- : mongodb | execution expired` 

i can access replica set using mongo command bash

mongo mydb --host mongo-replica-1 --port 27028 --username myuser --password mypass 

with above command can access mongo , run read data after runnning

> db.setslaveok() 

but not able connect in first case, looks connected keep getting message "execution expired".


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -