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

  1. Set up a Django 5.0.9 application with mod_wsgi and Apache.
  2. Visit a specific page or make an API request.
  3. 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

Most upvoted comments

Change with hopeful fix released in mod_wsgi 5.0.2.