mod_wsgi: RuntimeError: log object has expired in mod_wsgi 5.0.1 with Django 5.0.9 python 3.13.0
Summary
I’m encountering a RuntimeError: log object has expired when using mod_wsgi with Django 5.0.9. The issue appears in the Apache logs when rendering certain pages.
Environment
- mod_wsgi version: 5.0.1
- Django version: 5.0.9
- Python version: 3.13.0
- Apache version: 2.4.57
- Operating System: Windows Server 2024
Steps to Reproduce
- Set up a Django 5.0.9 application with mod_wsgi and Apache.
- Visit a specific page or make an API request.
- Check the Apache error log.
Error Log
[Tue Oct 15 11:55:47.997506 2024] [wsgi ] [pid 8404 1060] [client xx:43833] File “C:\Apache24\htdocs\ERPapp.venv\Lib\site-packages\django\template\engine.py”, line 20, in init [Tue Oct 15 11:55:47.997506 2024] [wsgi ] [pid 8404 1060] [client xx:43833] RuntimeError: log object has expired
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 18 (10 by maintainers)
Commits related to this issue
- Install mod_wsgi from updates-testing in service (#2680) Install mod_wsgi from updates-testing in service See GrahamDumpleton/mod_wsgi#912. Can be reverted when https://bodhi.fedoraproject.org/updat... — committed to packit/packit-service by softwarefactory-project-zuul[bot] 2 years ago
Change with hopeful fix released in mod_wsgi 5.0.2.