Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-2928

Test failures with mod_wsgi

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Unknown
    • Resolution: Fixed
    • None
    • 4.0
    • Tests
    • None

    Description

       [2021/09/27 22:53:10.081] Resolving localhost (localhost)... 127.0.0.1
       [2021/09/27 22:53:10.081] Connecting to localhost (localhost)|127.0.0.1|:8080... connected.
       [2021/09/27 22:53:13.251] HTTP request sent, awaiting response... 500 Internal Server Error
       [2021/09/27 22:53:13.251] 2021-09-27 22:53:13 ERROR 500: Internal Server Error.
       [2021/09/27 22:53:13.253] [Mon Sep 27 22:53:10 2021] [notice] Apache/2.2.34 (Unix) mod_wsgi/4.7.1 Python/3.8 configured -- resuming normal operations
       [2021/09/27 22:53:13.253] [Mon Sep 27 22:53:13 2021] [error] [client 127.0.0.1] mod_wsgi (pid=28228): Exception occurred processing WSGI script '/data/mci/8efedbe7a8f190f10bdc7ff2bf604d9e/src/test/mod_wsgi_test/mod_wsgi_test.wsgi'.
       [2021/09/27 22:53:13.253] [Mon Sep 27 22:53:13 2021] [error] [client 127.0.0.1] Traceback (most recent call last):
       [2021/09/27 22:53:13.253] [Mon Sep 27 22:53:13 2021] [error] [client 127.0.0.1]   File "/data/mci/8efedbe7a8f190f10bdc7ff2bf604d9e/src/test/mod_wsgi_test/mod_wsgi_test.wsgi", line 53, in application
       [2021/09/27 22:53:13.253] [Mon Sep 27 22:53:13 2021] [error] [client 127.0.0.1]     results = list(collection.find().batch_size(10))
       [2021/09/27 22:53:13.253] [Mon Sep 27 22:53:13 2021] [error] [client 127.0.0.1]   File "/data/mci/8efedbe7a8f190f10bdc7ff2bf604d9e/src/pymongo/cursor.py", line 1159, in next
       
       [2021/09/27 22:53:13.253] [Mon Sep 27 22:53:13 2021] [error] [client 127.0.0.1]     if len(self.__data) or self._refresh():
       
       [2021/09/27 22:53:13.253] [Mon Sep 27 22:53:13 2021] [error] [client 127.0.0.1]   File "/data/mci/8efedbe7a8f190f10bdc7ff2bf604d9e/src/pymongo/cursor.py", line 1080, in _refresh
       
       [2021/09/27 22:53:13.253] [Mon Sep 27 22:53:13 2021] [error] [client 127.0.0.1]     self.__send_message(q)
       
       [2021/09/27 22:53:13.253] [Mon Sep 27 22:53:13 2021] [error] [client 127.0.0.1]   File "/data/mci/8efedbe7a8f190f10bdc7ff2bf604d9e/src/pymongo/cursor.py", line 971, in __send_message
       
       [2021/09/27 22:53:13.253] [Mon Sep 27 22:53:13 2021] [error] [client 127.0.0.1]     response = client._run_operation(
       
       [2021/09/27 22:53:13.253] [Mon Sep 27 22:53:13 2021] [error] [client 127.0.0.1]   File "/data/mci/8efedbe7a8f190f10bdc7ff2bf604d9e/src/pymongo/mongo_client.py", line 1284, in _run_operation
       
       [2021/09/27 22:53:13.253] [Mon Sep 27 22:53:13 2021] [error] [client 127.0.0.1]     return self._retryable_read(
       
       [2021/09/27 22:53:13.253] [Mon Sep 27 22:53:13 2021] [error] [client 127.0.0.1]   File "/data/mci/8efedbe7a8f190f10bdc7ff2bf604d9e/src/pymongo/mongo_client.py", line 1374, in _retryable_read
       
       [2021/09/27 22:53:13.253] [Mon Sep 27 22:53:13 2021] [error] [client 127.0.0.1]     server = self._select_server(
       
       [2021/09/27 22:53:13.253] [Mon Sep 27 22:53:13 2021] [error] [client 127.0.0.1]   File "/data/mci/8efedbe7a8f190f10bdc7ff2bf604d9e/src/pymongo/mongo_client.py", line 1195, in _select_server
       [2021/09/27 22:53:13.253] [Mon Sep 27 22:53:13 2021] [error] [client 127.0.0.1]     topology = self._get_topology()
       [2021/09/27 22:53:13.253] [Mon Sep 27 22:53:13 2021] [error] [client 127.0.0.1]   File "/data/mci/8efedbe7a8f190f10bdc7ff2bf604d9e/src/pymongo/mongo_client.py", line 1155, in _get_topology
       [2021/09/27 22:53:13.253] [Mon Sep 27 22:53:13 2021] [error] [client 127.0.0.1]     self._topology.open()
       [2021/09/27 22:53:13.253] [Mon Sep 27 22:53:13 2021] [error] [client 127.0.0.1]   File "/data/mci/8efedbe7a8f190f10bdc7ff2bf604d9e/src/pymongo/topology.py", line 173, in open
       [2021/09/27 22:53:13.253] [Mon Sep 27 22:53:13 2021] [error] [client 127.0.0.1]     self._ensure_opened()
       [2021/09/27 22:53:13.253] [Mon Sep 27 22:53:13 2021] [error] [client 127.0.0.1]   File "/data/mci/8efedbe7a8f190f10bdc7ff2bf604d9e/src/pymongo/topology.py", line 559, in _ensure_opened
       [2021/09/27 22:53:13.253] [Mon Sep 27 22:53:13 2021] [error] [client 127.0.0.1]     raise InvalidOperation("Once a MongoClient is closed, "
       [2021/09/27 22:53:13.253] [Mon Sep 27 22:53:13 2021] [error] [client 127.0.0.1] pymongo.errors.InvalidOperation: Once a MongoClient is closed, all operations will fail. Please create a new client object if you wish to reconnect.
       [2021/09/27 22:53:13.253] + STATUS=8
      

      Above is the stack trace for the failures in mod_wsgi.

      Attachments

        Activity

          People

            julius.park@mongodb.com Julius Park
            julius.park@mongodb.com Julius Park
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: