Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-2457

Fix single topology errors

    • Fully Compatible

      [2020-11-27 06:34:54.640] W, [2020-11-27T06:34:54.639937 #3921]  WARN -- : MONGODB | TLS certificate of 'localhost' could not be definitively verified via OCSP: For responders http://localhost:9001/power/level, http://localhost:8100/status with a timeout of 5 seconds: OCSP request to http://localhost:9001/power/level failed: Errno::ECONNREFUSED: Failed to open TCP connection to localhost:9001 (Connection refused - connect(2) for "localhost" port 9001), OCSP response from http://localhost:8100/status had a non-definitive status: 2
      [2020-11-27 06:34:54.649] W, [2020-11-27T06:34:54.649061 #3921]  WARN -- : MONGODB | Error running ismaster on a:27017: SocketError: getaddrinfo: No address associated with hostname
      [2020-11-27 06:34:54.649] #<Thread:0x00007f3e5c2434b0 /data/mci/a230a600dc1e08ea368a4c67dddab242/src/lib/mongo/background_thread.rb:98 run> terminated with exception (report_on_exception is true):
      [2020-11-27 06:34:54.649] /data/mci/a230a600dc1e08ea368a4c67dddab242/src/lib/mongo/cluster/topology/single.rb:136:in `validate_options': Cannot instantiate a single topology with more than one server in the cluster: localhost:27017, a (ArgumentError)
      [2020-11-27 06:34:54.649] 	from /data/mci/a230a600dc1e08ea368a4c67dddab242/src/lib/mongo/cluster/topology/base.rb:54:in `initialize'
      [2020-11-27 06:34:54.649] 	from /data/mci/a230a600dc1e08ea368a4c67dddab242/src/lib/mongo/cluster/sdam_flow.rb:489:in `new'
      [2020-11-27 06:34:54.649] 	from /data/mci/a230a600dc1e08ea368a4c67dddab242/src/lib/mongo/cluster/sdam_flow.rb:489:in `commit_changes'
      [2020-11-27 06:34:54.649] 	from /data/mci/a230a600dc1e08ea368a4c67dddab242/src/lib/mongo/cluster/sdam_flow.rb:181:in `server_description_changed'
      [2020-11-27 06:34:54.649] 	from /data/mci/a230a600dc1e08ea368a4c67dddab242/src/lib/mongo/cluster.rb:614:in `block in run_sdam_flow'
      [2020-11-27 06:34:54.649] 	from /data/mci/a230a600dc1e08ea368a4c67dddab242/src/lib/mongo/cluster.rb:611:in `synchronize'
      [2020-11-27 06:34:54.649] 	from /data/mci/a230a600dc1e08ea368a4c67dddab242/src/lib/mongo/cluster.rb:611:in `run_sdam_flow'
      [2020-11-27 06:34:54.649] 	from /data/mci/a230a600dc1e08ea368a4c67dddab242/src/lib/mongo/server/monitor.rb:213:in `block in run_sdam_flow'
      [2020-11-27 06:34:54.649] 	from /data/mci/a230a600dc1e08ea368a4c67dddab242/src/lib/mongo/server/monitor.rb:207:in `synchronize'
      [2020-11-27 06:34:54.649] 	from /data/mci/a230a600dc1e08ea368a4c67dddab242/src/lib/mongo/server/monitor.rb:207:in `run_sdam_flow'
      [2020-11-27 06:34:54.649] 	from /data/mci/a230a600dc1e08ea368a4c67dddab242/src/lib/mongo/server/monitor.rb:202:in `block in scan!'
      [2020-11-27 06:34:54.649] 	from /data/mci/a230a600dc1e08ea368a4c67dddab242/src/lib/mongo/server/monitor.rb:197:in `synchronize'
      [2020-11-27 06:34:54.649] 	from /data/mci/a230a600dc1e08ea368a4c67dddab242/src/lib/mongo/server/monitor.rb:197:in `scan!'
      [2020-11-27 06:34:54.649] 	from /data/mci/a230a600dc1e08ea368a4c67dddab242/src/lib/mongo/server/monitor.rb:132:in `do_work'
      [2020-11-27 06:34:54.649] 	from /data/mci/a230a600dc1e08ea368a4c67dddab242/src/lib/mongo/background_thread.rb:101:in `block (2 levels) in start!'
      [2020-11-27 06:34:54.649] 	from /data/mci/a230a600dc1e08ea368a4c67dddab242/src/lib/mongo/background_thread.rb:99:in `catch'
      [2020-11-27 06:34:54.649] 	from /data/mci/a230a600dc1e08ea368a4c67dddab242/src/lib/mongo/background_thread.rb:99:in `block in start!'
      [2020-11-27 06:34:54.654] 127.0.0.1 - - [27/Nov/2020 06:34:54] "POST /status HTTP/1.1" 200 -
      [2020-11-27 06:34:54.654] W, [2020-11-27T06:34:54.654797 #3921]  WARN -- : MONGODB | TLS certificate of 'localhost' could not be definitively verified via OCSP: For responders http://localhost:9001/power/level, http://localhost:8100/status with a timeout of 5 seconds: OCSP request to http://localhost:9001/power/level failed: Errno::ECONNREFUSED: Failed to open TCP connection to localhost:9001 (Connection refused - connect(2) for "localhost" port 9001), OCSP response from http://localhost:8100/status had a non-definitive status: 2
      [2020-11-27 06:34:54.682]
      [2020-11-27 06:34:54.682]   1) Mongo::Cluster#add when topology is Single does not add discovered servers to the cluster
      [2020-11-27 06:34:54.682]      Failure/Error: raise ArgumentError, "Cannot instantiate a single topology with more than one server in the cluster: #{cluster.servers_list.map(&:address).map(&:seed).join(', ')}"
      [2020-11-27 06:34:54.682]      
      [2020-11-27 06:34:54.682]      ArgumentError:
      [2020-11-27 06:34:54.682]        Cannot instantiate a single topology with more than one server in the cluster: localhost:27017, a
      [2020-11-27 06:34:54.682]      # ./lib/mongo/cluster/topology/single.rb:136:in `validate_options'
      [2020-11-27 06:34:54.682]      # ./lib/mongo/cluster/topology/base.rb:54:in `initialize'
      [2020-11-27 06:34:54.682]      # ./lib/mongo/cluster/sdam_flow.rb:489:in `new'
      [2020-11-27 06:34:54.682]      # ./lib/mongo/cluster/sdam_flow.rb:489:in `commit_changes'
      [2020-11-27 06:34:54.682]      # ./lib/mongo/cluster/sdam_flow.rb:181:in `server_description_changed'
      [2020-11-27 06:34:54.682]      # ./lib/mongo/cluster.rb:614:in `block in run_sdam_flow'
      [2020-11-27 06:34:54.682]      # ./lib/mongo/cluster.rb:611:in `synchronize'
      [2020-11-27 06:34:54.682]      # ./lib/mongo/cluster.rb:611:in `run_sdam_flow'
      [2020-11-27 06:34:54.682]      # ./lib/mongo/server/monitor.rb:213:in `block in run_sdam_flow'
      [2020-11-27 06:34:54.682]      # ./lib/mongo/server/monitor.rb:207:in `synchronize'
      [2020-11-27 06:34:54.682]      # ./lib/mongo/server/monitor.rb:207:in `run_sdam_flow'
      [2020-11-27 06:34:54.682]      # ./lib/mongo/server/monitor.rb:202:in `block in scan!'
      [2020-11-27 06:34:54.682]      # ./lib/mongo/server/monitor.rb:197:in `synchronize'
      [2020-11-27 06:34:54.682]      # ./lib/mongo/server/monitor.rb:197:in `scan!'
      [2020-11-27 06:34:54.682]      # ./lib/mongo/server/monitor.rb:132:in `do_work'
      [2020-11-27 06:34:54.682]      # ./lib/mongo/background_thread.rb:101:in `block (2 levels) in start!'
      [2020-11-27 06:34:54.682]      # ./lib/mongo/background_thread.rb:99:in `catch'
      [2020-11-27 06:34:54.682]      # ./lib/mongo/background_thread.rb:99:in `block in start!'
      [2020-11-27 06:34:54.682]
      

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: