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

  • SEARCH
  • Home
  • 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 7496161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T18:30:48+00:00 2026-05-29T18:30:48+00:00

I am using django-1.2 and python-2.6 and I am using mysql server. After working

  • 0

I am using django-1.2 and python-2.6 and I am using mysql server.

After working for a while – selecting and updating records, I got this error:

Exception in thread Thread-269:
Traceback (most recent call last):
  File "/usr/lib64/python2.6/threading.py", line 532, in __bootstrap_inner
  File "dispatcher.py", line 42, in run
  File "/usr/lib/python2.6/site-packages/django/db/models/query.py", line 80, in __len__  
  File "/usr/lib/python2.6/site-packages/django/db/models/query.py", line 271, in iterator  
  File "/usr/lib/python2.6/site-packages/django/db/models/sql/compiler.py", line 677, in results_iter  
  File "/usr/lib/python2.6/site-packages/django/db/models/sql/compiler.py", line 731, in execute_sql  
  File "/usr/lib/python2.6/site-packages/django/db/backends/__init__.py", line 75, in cursor  
  File "/usr/lib/python2.6/site-packages/django/db/backends/mysql/base.py", line 297, in _cursor  
  File "/usr/lib64/python2.6/site-packages/MySQLdb/__init__.py", line 81, in Connect  
  File "/usr/lib64/python2.6/site-packages/MySQLdb/connections.py", line 187, in __init__  
OperationalError: (2001, "Can't create UNIX socket (24)")

here are lines 41,42 of my dispatcher.py:

dataList = Mydata.objects.filter(date__isnull=True)[:chunkSize]
print '%s - DB worker finished reading %s entrys' % (datetime.now(),len(dataList))

Any clue why I get this error?
I tried googling but could not find an answer.

I am connecting to the db using django – (I am using localhost)

  • 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-29T18:30:51+00:00Added an answer on May 29, 2026 at 6:30 pm

    On my machine, errno==24 is defined like

    #define EMFILE          24      /* Too many open files */
    

    Which means you are running out of filedescriptors. Your app is “leaking” filedescriptors by opening them (and not closing them) again and again.

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

Sidebar

Related Questions

I am working on a web application using Python (Django) and would like to
I'm fairly new to both Django and Python. This is my first time using
To deploy a site with Python/Django/MySQL I had to do these on the server
I'm starting a GeoDjango project using Python 2.5, Django 1.2, MySQL and Apache. The
I am developing a web application using Python, Django and MySql. I have a
I have a Django application using django-mssql to communicate w/ SQL Server. This works
I have built a site using Django and I am receiving this annoying error
I'm using django-tables (http://pypi.python.org/pypi/django-tables/0.2) to render the contents of a MySQL table. The model
I am building search app using django & sphinx. I got the setup working
I'm using Django and Python 2.6, and I want to grow my application using

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.