Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6931319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:33:41+00:00 2026-05-27T11:33:41+00:00

I have a Django app running on Apache with wsgi module. After few hours

  • 0

I have a Django app running on Apache with wsgi module.
After few hours of inactivity I get that error and I have to restart the Apache.

Any ideas?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T11:33:42+00:00Added an answer on May 27, 2026 at 11:33 am

    This error message mean that the database server has closed the connection to you. I guess this is caused because the connection is idle.

    I believe you can get this fixed by adjusting the wait_timeout inside the configuration file of your mysql database server. The file is most commonly named “my.cnf”.

    This, however, is not considered as a good practice. I would like to suggest you to optimize the application you are writing to open the connection to mysql on demand – there’s no point to keep it open if you are not actively using it for a long time.

    If you need a quick fix, use the mysql_ping() function to check whether the connection is still alive and re-open if necessary.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Django app running on Windows (via Apache + mod_wsgi) that's CPU-bound.
This is probably a setting error somewhere. I have a django app that works
We have a Django app running on apache server (mod_python) on a windows machine
I am trying to get a Django app running on Apache with mod_wsgi. I
HI I have a django application running on app engine and I want to
I have a Django app that gets it's data completely from an external source
I have a Django app that use a django-tagging. I need to port this
I have written a Django app that makes use of Python threading to create
I have configured my Django app to run under Apache+FastCGI on Linux (Ubuntu, if
I have a Django app running on a shared server using FCGI. When I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.