| | 70 | == Result |
| | 71 | Exceptions as shown in original report. (`OSError: [Errno 9] Bad file descriptor`) |
| | 72 | After a few runs runserver stops serving requests completely, all requests, even sequential ones from a browser, get a 500 with this traceback. |
| | 73 | |
| | 74 | {{{ |
| | 75 | Traceback (most recent call last): |
| | 76 | File "venv/lib/python3.12/site-packages/asgiref/sync.py", line 518, in thread_handler |
| | 77 | raise exc_info[1] |
| | 78 | File "venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 42, in inner |
| | 79 | response = await get_response(request) |
| | 80 | File "venv/lib/python3.12/site-packages/asgiref/sync.py", line 518, in thread_handler |
| | 81 | raise exc_info[1] |
| | 82 | File "/venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 253, in _get_response_async |
| | 83 | response = await wrapped_callback( |
| | 84 | File "venv/lib/python3.12/site-packages/asgiref/sync.py", line 468, in __call__ |
| | 85 | ret = await asyncio.shield(exec_coro) |
| | 86 | File ".../Frameworks/Python.framework/Versions/3.12/lib/python3.12/concurrent/futures/thread.py", line 58, in run |
| | 87 | result = self.fn(*self.args, **self.kwargs) |
| | 88 | File "/venv/lib/python3.12/site-packages/asgiref/sync.py", line 522, in thread_handler |
| | 89 | return func(*args, **kwargs) |
| | 90 | File "mysite/polls/views.py", line 20, in index |
| | 91 | incr() |
| | 92 | File "mysite/polls/views.py", line 11, in incr |
| | 93 | val = cache.incr(key, 1) |
| | 94 | File "venv/lib/python3.12/site-packages/django/core/cache/backends/memcached.py", line 110, in incr |
| | 95 | val = self._cache.incr(key, delta) |
| | 96 | File "venv/lib/python3.12/site-packages/pymemcache/client/hash.py", line 350, in incr |
| | 97 | return self._run_cmd("incr", key, False, *args, **kwargs) |
| | 98 | File "venv/lib/python3.12/site-packages/pymemcache/client/hash.py", line 314, in _run_cmd |
| | 99 | client = self._get_client(key) |
| | 100 | File "venv/lib/python3.12/site-packages/pymemcache/client/hash.py", line 182, in _get_client |
| | 101 | raise MemcacheError("All servers seem to be down right now") |
| | 102 | |
| | 103 | pymemcache.exceptions.MemcacheError: All servers seem to be down right now |